HxGodot / hxgodot

A Haxe GDExtension for Godot 4
MIT License
232 stars 11 forks source link

enums & default parameters not working? #44

Closed dazKind closed 1 year ago

dazKind commented 1 year ago

The internal argument should resolve into a proper default argument, which it doesnt at the moment

add_child(node:Node, force_readable_name:Bool = false, internal:Int32):Void
{
    "name": "add_child",
    "is_const": false,
    "is_vararg": false,
    "is_static": false,
    "is_virtual": false,
    "hash": 3070154285,
    "arguments": [
        {
            "name": "node",
            "type": "Node"
        },
        {
            "name": "force_readable_name",
            "type": "bool",
            "default_value": "false"
        },
        {
            "name": "internal",
            "type": "enum::Node.InternalMode",
            "default_value": "0"
        }
    ]
},
dazKind commented 1 year ago

fixed in https://github.com/HxGodot/hxgodot/commit/b527d5be7630a725ff42fd6c2eb171f0149ecbcd