diff --git a/game/addons/gdc_converter/plugin.gd b/game/addons/gdc_converter/plugin.gd index 735f4947..4e868564 100644 --- a/game/addons/gdc_converter/plugin.gd +++ b/game/addons/gdc_converter/plugin.gd @@ -269,7 +269,17 @@ class GDSScope: if scstr != "": 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: