haxe externs | editor plugin | demo | api doc | discussions
Generate Haxe/C# externs for Godot.
A generated version is available at https://github.com/HaxeGodot/godot/.
You need the commits from https://github.com/HaxeGodot/haxe/tree/cs-opt to properly generate the function overloads.
Create an input/ directory with:
GodotSharp.dll,GodotSharp.xml,GodotSharpEditor.dllandGodotSharpEditor.xmlwhich you can find in the.monofolder of a Godot C# projectGodotApi.jsongenerated fromgodot --gdnative-generate-json-api GodotApi.jsonGodot/directory of the Godot engine source code, this does not require it to be compiled
Run haxe generate.hxml, the externs are created in a godot/ directory.
If the directory exists before the generation it'll be deleted.
You can change the root directory from the current working directory by adding -D output=some/path to the haxe command.
- Mark deprecated functions
- Array access on
Vector2,Vector3,Transform,Transform2D,Quat,ColorandBasis - Missing types
Godot.DynamicGodotObjectandGodot.MarshalUtils - Explicit constructors
- Function with type parameters on
PackedScene.Instance,PackedScene.InstanceOrNull cs.system.EventHandler_1onGD.UnhandledException
The generator is MIT licensed, see <LICENSE.md>.
