Also generate a constructor, destructor, and _bind_methods.

This commit is contained in:
Relintai 2022-06-03 15:00:43 +02:00
parent 2bf79007a2
commit fcee8a2f39

View File

@ -270,6 +270,16 @@ class GDSScope:
s += scstr
s += "\n"
if type == GDScopeType.GDSCOPE_TYPE_CLASS:
s += "\n"
s += indents + scope_data + "();\n"
s += indents + "~" + scope_data + "();\n"
s += "\n"
s += indents + "protected:\n"
s += indents + "static void _bind_methods();\n"
if type == GDScopeType.GDSCOPE_TYPE_CLASS || type == GDScopeType.GDSCOPE_TYPE_ENUM:
s += "};"
else: