@@ -104,27 +104,13 @@ static func generate_csharp_script(
104104 for enum_name in ClassDB .class_get_enum_list (cls_name , true ):
105105 enums .append (_generate_enum (cls_name , enum_name ))
106106
107- var inherited_enums = PackedStringArray ()
108- if not parent_class_is_extension :
109- for inherited_class in _get_parent_classes (cls_name ):
110- for enum_name in ClassDB .class_get_enum_list (inherited_class , true ):
111- inherited_enums .append (_generate_enum (inherited_class , enum_name ))
112-
113107 # INTEGER CONSTANTS
114108 var integer_constants = PackedStringArray ()
115109 for constant_name in ClassDB .class_get_integer_constant_list (cls_name , true ):
116110 if not ClassDB .class_get_integer_constant_enum (cls_name , constant_name , true ).is_empty ():
117111 continue
118112 integer_constants .append (_generate_integer_constant (cls_name , constant_name ))
119113
120- var inherited_integer_constants = PackedStringArray ()
121- if not parent_class_is_extension :
122- for inherited_class in _get_parent_classes (cls_name ):
123- for constant_name in ClassDB .class_get_integer_constant_list (inherited_class , true ):
124- if not ClassDB .class_get_integer_constant_enum (inherited_class , constant_name , true ).is_empty ():
125- continue
126- inherited_integer_constants .append (_generate_integer_constant (inherited_class , constant_name ))
127-
128114 # PROPERTIES
129115 var properties = PackedStringArray ()
130116 var property_names = PackedStringArray ()
@@ -188,18 +174,10 @@ static func generate_csharp_script(
188174 regions .append ("#region Enums" )
189175 regions .append ("\n\n " .join (enums ))
190176 regions .append ("#endregion" )
191- if not inherited_enums .is_empty ():
192- regions .append ("#region Inherited Enums" )
193- regions .append ("\n\n " .join (inherited_enums ))
194- regions .append ("#endregion" )
195177 if not integer_constants .is_empty ():
196178 regions .append ("#region Integer Constants" )
197179 regions .append ("\n\n " .join (integer_constants ))
198180 regions .append ("#endregion" )
199- if not inherited_integer_constants .is_empty ():
200- regions .append ("#region Inherited Integer Constants" )
201- regions .append ("\n\n " .join (inherited_integer_constants ))
202- regions .append ("#endregion" )
203181 if not properties .is_empty ():
204182 regions .append ("#region Properties" )
205183 regions .append ("\n\n " .join (properties ))
0 commit comments