{"repo":"Lcbx/GdScript2All","free":true,"listed":false,"github":"https://github.com/Lcbx/GdScript2All","clone":"git clone https://github.com/Lcbx/GdScript2All.git","description":"A transpiler for GdScript (targeting C# and c++) written in Python","language":"Python","stars":315,"topics":["cpp","csharp","gdscript","godot","godot4","transpiler","python3","programming-language","scripting","scripting-language"],"license":"GPL-3.0","category":"game-templates","readme_excerpt":"GdScript2All A tool for converting Godot's GdScript to other languages (currently C# and c++) with features like type inference. Requires Python installed (tested with 3.12.5). Editor addon Available from the Asset Store tab in editor or alternatively download as zip and extract into your project. Enable in Project Settings- Plugins then you're set. To use, drag&drop files and folders from the FileSystem dock then click convert. From the command line call the main script using your favorite command line utility (add for c++) : Example script input : C# output : c++ output (header) : c++ output (implementation) : Limitations - generated code might need corrections ! - pattern matching - a complicated form of the match case statement - is not supported - when the parser encounters something unexpected it will drop the current line and resume at the next (panic mode). this might result in mangled output. - read TODO.md for missing features - C# : godot won't build C# scripts until you have created at least one C# script manually in the editor - c++ : generated code does a best guess on what whould be pointers/references - c++ : accessing/modifying parent class properties does not use getters/setters (this is a conscious choice) Updating the API definition download the offical godot repo copy it's folder and paste it into our folder install untangle (xml parsing library) if you don't have it ( ) run to generate the pickle class db profit. Adding new languages If you want to trans","default_branch":null,"files":null,"tree":[],"storefront":"/r/Lcbx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Lcbx/GdScript2All/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}