mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-08 01:49:35 +01:00
Also generate a constructor, destructor, and _bind_methods.
This commit is contained in:
parent
2bf79007a2
commit
fcee8a2f39
@ -269,7 +269,17 @@ class GDSScope:
|
|||||||
if scstr != "":
|
if scstr != "":
|
||||||
s += scstr
|
s += scstr
|
||||||
s += "\n"
|
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:
|
if type == GDScopeType.GDSCOPE_TYPE_CLASS || type == GDScopeType.GDSCOPE_TYPE_ENUM:
|
||||||
s += "};"
|
s += "};"
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user