mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-21 13:16:49 +01:00
Also generate a constructor, destructor, and _bind_methods.
This commit is contained in:
parent
2bf79007a2
commit
fcee8a2f39
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user