mirror of
https://github.com/Relintai/gdnative_python.git
synced 2024-11-12 10:25:08 +01:00
Fixed more missing conversions / enum values.
This commit is contained in:
parent
f262501f40
commit
c867c70ca1
@ -71,16 +71,23 @@ class VariantType(IntFlag):
|
|||||||
REAL = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_REAL
|
REAL = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_REAL
|
||||||
STRING = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_STRING
|
STRING = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_STRING
|
||||||
VECTOR2 = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR2
|
VECTOR2 = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR2
|
||||||
|
VECTOR2I = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR2I
|
||||||
RECT2 = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RECT2
|
RECT2 = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RECT2
|
||||||
|
RECT2I = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RECT2I
|
||||||
VECTOR3 = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR3
|
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
|
TRANSFORM2D = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_TRANSFORM2D
|
||||||
PLANE = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_PLANE
|
PLANE = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_PLANE
|
||||||
QUATERNION = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_QUATERNION
|
QUATERNION = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_QUATERNION
|
||||||
AABB = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_AABB
|
AABB = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_AABB
|
||||||
BASIS = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_BASIS
|
BASIS = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_BASIS
|
||||||
TRANSFORM = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_TRANSFORM
|
TRANSFORM = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_TRANSFORM
|
||||||
|
PROJECTION = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_PROJECTION
|
||||||
COLOR = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_COLOR
|
COLOR = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_COLOR
|
||||||
NODE_PATH = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_NODE_PATH
|
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
|
RID = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RID
|
||||||
OBJECT = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_OBJECT
|
OBJECT = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_OBJECT
|
||||||
DICTIONARY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_DICTIONARY
|
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_REAL_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_REAL_ARRAY
|
||||||
POOL_STRING_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_STRING_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_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_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
|
POOL_COLOR_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_COLOR_ARRAY
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ __methbind__{{ cls.name }}__{{ method.name }}
|
|||||||
{% macro render_method_signature(method) %}
|
{% macro render_method_signature(method) %}
|
||||||
{{ method.name }}(self,
|
{{ method.name }}(self,
|
||||||
{%- for arg in method.arguments %}
|
{%- 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 }}
|
object {{ arg.name }}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
{{ arg.type.cy_type }} {{ arg.name }}
|
{{ arg.type.cy_type }} {{ arg.name }}
|
||||||
|
Loading…
Reference in New Issue
Block a user