mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-25 14:19:19 +01:00
Put class variables to the bottom of the class.
This commit is contained in:
parent
bb178cfa54
commit
6341759d8e
@ -2,7 +2,6 @@ tool
|
|||||||
extends EditorPlugin
|
extends EditorPlugin
|
||||||
|
|
||||||
#TODO
|
#TODO
|
||||||
#CamelCase Class names
|
|
||||||
#variable transforms. -> Simple core types should be locals, the rest are pointers. Refs refs.
|
#variable transforms. -> Simple core types should be locals, the rest are pointers. Refs refs.
|
||||||
#class variables to contructors
|
#class variables to contructors
|
||||||
#getters setters from class variables
|
#getters setters from class variables
|
||||||
@ -257,18 +256,7 @@ class GDSScope:
|
|||||||
s += "\n"
|
s += "\n"
|
||||||
|
|
||||||
indents += " "
|
indents += " "
|
||||||
|
|
||||||
for l in scope_lines:
|
|
||||||
if l.begins_with("#"):
|
|
||||||
l = l.replace("#", "//")
|
|
||||||
s += indents + l + "\n"
|
|
||||||
continue
|
|
||||||
|
|
||||||
l = l.replace("#", ";//")
|
|
||||||
s += indents + l + ";\n"
|
|
||||||
|
|
||||||
s += "\n"
|
|
||||||
|
|
||||||
for subs in subscopes:
|
for subs in subscopes:
|
||||||
var scstr : String = subs.get_cpp_header_string(current_scope_level + 1)
|
var scstr : String = subs.get_cpp_header_string(current_scope_level + 1)
|
||||||
|
|
||||||
@ -284,6 +272,16 @@ class GDSScope:
|
|||||||
s += indents + "protected:\n"
|
s += indents + "protected:\n"
|
||||||
s += indents + "static void _bind_methods();\n"
|
s += indents + "static void _bind_methods();\n"
|
||||||
|
|
||||||
|
s += "\n"
|
||||||
|
|
||||||
|
for l in scope_lines:
|
||||||
|
if l.begins_with("#"):
|
||||||
|
l = l.replace("#", "//")
|
||||||
|
s += indents + l + "\n"
|
||||||
|
continue
|
||||||
|
|
||||||
|
l = l.replace("#", ";//")
|
||||||
|
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