mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-25 14:19:19 +01:00
Fix enums.
This commit is contained in:
parent
9fff3d2430
commit
54b2330447
@ -272,17 +272,26 @@ class GDSScope:
|
|||||||
s += indents + "static void _bind_methods();\n"
|
s += indents + "static void _bind_methods();\n"
|
||||||
|
|
||||||
s += "\n"
|
s += "\n"
|
||||||
|
|
||||||
for l in scope_lines:
|
if type != GDScopeType.GDSCOPE_TYPE_ENUM:
|
||||||
if l.begins_with("#"):
|
for l in scope_lines:
|
||||||
l = l.replace("#", "//")
|
if l.begins_with("#"):
|
||||||
|
l = l.replace("#", "//")
|
||||||
|
s += indents + l + "\n"
|
||||||
|
continue
|
||||||
|
|
||||||
|
if l.begins_with("var "):
|
||||||
|
s += indents + transform_variable_to_cpp(l) + ";\n"
|
||||||
|
else:
|
||||||
|
s += indents + l + ";\n"
|
||||||
|
else:
|
||||||
|
for l in scope_lines:
|
||||||
|
if l.begins_with("#"):
|
||||||
|
l = l.replace("#", "//")
|
||||||
|
s += indents + l + "\n"
|
||||||
|
continue
|
||||||
|
|
||||||
s += indents + l + "\n"
|
s += indents + l + "\n"
|
||||||
continue
|
|
||||||
|
|
||||||
if l.begins_with("var "):
|
|
||||||
s += indents + transform_variable_to_cpp(l) + ";\n"
|
|
||||||
else:
|
|
||||||
s += indents + l + ";\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 += "};"
|
||||||
|
Loading…
Reference in New Issue
Block a user