mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-08 01:49:35 +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
|
||||
|
||||
#TODO
|
||||
#CamelCase Class names
|
||||
#variable transforms. -> Simple core types should be locals, the rest are pointers. Refs refs.
|
||||
#class variables to contructors
|
||||
#getters setters from class variables
|
||||
@ -257,18 +256,7 @@ class GDSScope:
|
||||
s += "\n"
|
||||
|
||||
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:
|
||||
var scstr : String = subs.get_cpp_header_string(current_scope_level + 1)
|
||||
|
||||
@ -284,6 +272,16 @@ class GDSScope:
|
||||
s += indents + "protected:\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:
|
||||
s += "};"
|
||||
|
Loading…
Reference in New Issue
Block a user