diff --git a/generation/bindings_templates/bindings.tmpl.pyx b/generation/bindings_templates/bindings.tmpl.pyx index 47d4594..b37367f 100644 --- a/generation/bindings_templates/bindings.tmpl.pyx +++ b/generation/bindings_templates/bindings.tmpl.pyx @@ -71,16 +71,23 @@ class VariantType(IntFlag): REAL = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_REAL STRING = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_STRING VECTOR2 = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR2 + VECTOR2I = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR2I RECT2 = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RECT2 + RECT2I = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RECT2I VECTOR3 = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR3 + VECTOR3I = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR3I + VECTOR4 = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR4 + VECTOR4I = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR4I TRANSFORM2D = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_TRANSFORM2D PLANE = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_PLANE QUATERNION = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_QUATERNION AABB = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_AABB BASIS = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_BASIS TRANSFORM = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_TRANSFORM + PROJECTION = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_PROJECTION COLOR = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_COLOR NODE_PATH = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_NODE_PATH + STRING_NAME = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_STRING_NAME RID = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RID OBJECT = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_OBJECT DICTIONARY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_DICTIONARY @@ -90,7 +97,11 @@ class VariantType(IntFlag): POOL_REAL_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_REAL_ARRAY POOL_STRING_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_STRING_ARRAY POOL_VECTOR2_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_VECTOR2_ARRAY + POOL_VECTOR2I_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_VECTOR2I_ARRAY POOL_VECTOR3_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_VECTOR3_ARRAY + POOL_VECTOR3I_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_VECTOR3I_ARRAY + POOL_VECTOR4_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_VECTOR4_ARRAY + POOL_VECTOR4I_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_VECTOR4I_ARRAY POOL_COLOR_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_COLOR_ARRAY diff --git a/generation/bindings_templates/method.tmpl.pyx b/generation/bindings_templates/method.tmpl.pyx index 7c5e16a..8fe4fd5 100644 --- a/generation/bindings_templates/method.tmpl.pyx +++ b/generation/bindings_templates/method.tmpl.pyx @@ -15,7 +15,7 @@ __methbind__{{ cls.name }}__{{ method.name }} {% macro render_method_signature(method) %} {{ method.name }}(self, {%- for arg in method.arguments %} -{%- if arg.type.c_type in ("pandemonium_string", "pandemonium_node_path") %} +{%- if arg.type.c_type in ("pandemonium_string", "pandemonium_node_path", "pandemonium_string_name") %} object {{ arg.name }} {%- else %} {{ arg.type.cy_type }} {{ arg.name }}