mirror of
https://github.com/Relintai/gdnative_python.git
synced 2024-11-12 10:25:08 +01:00
Mass replace godot to pandemonium pt4.
This commit is contained in:
parent
e8bff7346e
commit
c511ce73cb
8
.github/workflows_off/build.yml
vendored
8
.github/workflows_off/build.yml
vendored
@ -11,7 +11,7 @@ on:
|
||||
# Global Settings
|
||||
env:
|
||||
PYTHON_VERSION: "3.7"
|
||||
GODOT_BINARY_VERSION: "3.2.3"
|
||||
PANDEMONIUM_BINARY_VERSION: "3.2.3"
|
||||
|
||||
|
||||
jobs:
|
||||
@ -65,7 +65,7 @@ jobs:
|
||||
pip install -U pip
|
||||
pip install -r requirements.txt
|
||||
# Configuration for scons
|
||||
echo 'pandemonium_binary = "${{ env.GODOT_BINARY_VERSION }}"' >> custom.py
|
||||
echo 'pandemonium_binary = "${{ env.PANDEMONIUM_BINARY_VERSION }}"' >> custom.py
|
||||
echo 'platform = "${{ env.PLATFORM }}"' >> custom.py
|
||||
echo 'CC = "${{ env.CC }}"' >> custom.py
|
||||
- name: 'Build project'
|
||||
@ -126,7 +126,7 @@ jobs:
|
||||
python -m pip install --user -U pip
|
||||
python -m pip install --user -r requirements.txt
|
||||
# Configuration for scons
|
||||
echo 'pandemonium_binary = "${{ env.GODOT_BINARY_VERSION }}"' >> custom.py
|
||||
echo 'pandemonium_binary = "${{ env.PANDEMONIUM_BINARY_VERSION }}"' >> custom.py
|
||||
echo 'platform = "${{ matrix.PLATFORM }}"' >> custom.py
|
||||
echo 'MSVC_USE_SCRIPT = True' >> custom.py
|
||||
echo 'TARGET_ARCH = "${{ matrix.VS_ARCH }}"' >> custom.py
|
||||
@ -198,7 +198,7 @@ jobs:
|
||||
pip install -U pip
|
||||
pip install -r requirements.txt
|
||||
# Configuration for scons
|
||||
echo 'pandemonium_binary = "${{ env.GODOT_BINARY_VERSION }}"' >> custom.py
|
||||
echo 'pandemonium_binary = "${{ env.PANDEMONIUM_BINARY_VERSION }}"' >> custom.py
|
||||
echo 'platform = "${{ env.PLATFORM }}"' >> custom.py
|
||||
echo 'CC = "${{ env.CC }}"' >> custom.py
|
||||
- name: 'Build project'
|
||||
|
@ -13,114 +13,114 @@ __ERR_MSG_BINDING_NOT_AVAILABLE = "No Pandemonium binding available"
|
||||
|
||||
|
||||
class Error(IntFlag):
|
||||
OK = pandemonium_error.GODOT_OK
|
||||
FAILED = pandemonium_error.GODOT_FAILED
|
||||
ERR_UNAVAILABLE = pandemonium_error.GODOT_ERR_UNAVAILABLE
|
||||
ERR_UNCONFIGURED = pandemonium_error.GODOT_ERR_UNCONFIGURED
|
||||
ERR_UNAUTHORIZED = pandemonium_error.GODOT_ERR_UNAUTHORIZED
|
||||
ERR_PARAMETER_RANGE_ERROR = pandemonium_error.GODOT_ERR_PARAMETER_RANGE_ERROR
|
||||
ERR_OUT_OF_MEMORY = pandemonium_error.GODOT_ERR_OUT_OF_MEMORY
|
||||
ERR_FILE_NOT_FOUND = pandemonium_error.GODOT_ERR_FILE_NOT_FOUND
|
||||
ERR_FILE_BAD_DRIVE = pandemonium_error.GODOT_ERR_FILE_BAD_DRIVE
|
||||
ERR_FILE_BAD_PATH = pandemonium_error.GODOT_ERR_FILE_BAD_PATH
|
||||
ERR_FILE_NO_PERMISSION = pandemonium_error.GODOT_ERR_FILE_NO_PERMISSION
|
||||
ERR_FILE_ALREADY_IN_USE = pandemonium_error.GODOT_ERR_FILE_ALREADY_IN_USE
|
||||
ERR_FILE_CANT_OPEN = pandemonium_error.GODOT_ERR_FILE_CANT_OPEN
|
||||
ERR_FILE_CANT_WRITE = pandemonium_error.GODOT_ERR_FILE_CANT_WRITE
|
||||
ERR_FILE_CANT_READ = pandemonium_error.GODOT_ERR_FILE_CANT_READ
|
||||
ERR_FILE_UNRECOGNIZED = pandemonium_error.GODOT_ERR_FILE_UNRECOGNIZED
|
||||
ERR_FILE_CORRUPT = pandemonium_error.GODOT_ERR_FILE_CORRUPT
|
||||
ERR_FILE_MISSING_DEPENDENCIES = pandemonium_error.GODOT_ERR_FILE_MISSING_DEPENDENCIES
|
||||
ERR_FILE_EOF = pandemonium_error.GODOT_ERR_FILE_EOF
|
||||
ERR_CANT_OPEN = pandemonium_error.GODOT_ERR_CANT_OPEN
|
||||
ERR_CANT_CREATE = pandemonium_error.GODOT_ERR_CANT_CREATE
|
||||
ERR_QUERY_FAILED = pandemonium_error.GODOT_ERR_QUERY_FAILED
|
||||
ERR_ALREADY_IN_USE = pandemonium_error.GODOT_ERR_ALREADY_IN_USE
|
||||
ERR_LOCKED = pandemonium_error.GODOT_ERR_LOCKED
|
||||
ERR_TIMEOUT = pandemonium_error.GODOT_ERR_TIMEOUT
|
||||
ERR_CANT_CONNECT = pandemonium_error.GODOT_ERR_CANT_CONNECT
|
||||
ERR_CANT_RESOLVE = pandemonium_error.GODOT_ERR_CANT_RESOLVE
|
||||
ERR_CONNECTION_ERROR = pandemonium_error.GODOT_ERR_CONNECTION_ERROR
|
||||
ERR_CANT_ACQUIRE_RESOURCE = pandemonium_error.GODOT_ERR_CANT_ACQUIRE_RESOURCE
|
||||
ERR_CANT_FORK = pandemonium_error.GODOT_ERR_CANT_FORK
|
||||
ERR_INVALID_DATA = pandemonium_error.GODOT_ERR_INVALID_DATA
|
||||
ERR_INVALID_PARAMETER = pandemonium_error.GODOT_ERR_INVALID_PARAMETER
|
||||
ERR_ALREADY_EXISTS = pandemonium_error.GODOT_ERR_ALREADY_EXISTS
|
||||
ERR_DOES_NOT_EXIST = pandemonium_error.GODOT_ERR_DOES_NOT_EXIST
|
||||
ERR_DATABASE_CANT_READ = pandemonium_error.GODOT_ERR_DATABASE_CANT_READ
|
||||
ERR_DATABASE_CANT_WRITE = pandemonium_error.GODOT_ERR_DATABASE_CANT_WRITE
|
||||
ERR_COMPILATION_FAILED = pandemonium_error.GODOT_ERR_COMPILATION_FAILED
|
||||
ERR_METHOD_NOT_FOUND = pandemonium_error.GODOT_ERR_METHOD_NOT_FOUND
|
||||
ERR_LINK_FAILED = pandemonium_error.GODOT_ERR_LINK_FAILED
|
||||
ERR_SCRIPT_FAILED = pandemonium_error.GODOT_ERR_SCRIPT_FAILED
|
||||
ERR_CYCLIC_LINK = pandemonium_error.GODOT_ERR_CYCLIC_LINK
|
||||
ERR_INVALID_DECLARATION = pandemonium_error.GODOT_ERR_INVALID_DECLARATION
|
||||
ERR_DUPLICATE_SYMBOL = pandemonium_error.GODOT_ERR_DUPLICATE_SYMBOL
|
||||
ERR_PARSE_ERROR = pandemonium_error.GODOT_ERR_PARSE_ERROR
|
||||
ERR_BUSY = pandemonium_error.GODOT_ERR_BUSY
|
||||
ERR_SKIP = pandemonium_error.GODOT_ERR_SKIP
|
||||
ERR_HELP = pandemonium_error.GODOT_ERR_HELP
|
||||
ERR_BUG = pandemonium_error.GODOT_ERR_BUG
|
||||
ERR_PRINTER_ON_FIRE = pandemonium_error.GODOT_ERR_PRINTER_ON_FIRE
|
||||
OK = pandemonium_error.PANDEMONIUM_OK
|
||||
FAILED = pandemonium_error.PANDEMONIUM_FAILED
|
||||
ERR_UNAVAILABLE = pandemonium_error.PANDEMONIUM_ERR_UNAVAILABLE
|
||||
ERR_UNCONFIGURED = pandemonium_error.PANDEMONIUM_ERR_UNCONFIGURED
|
||||
ERR_UNAUTHORIZED = pandemonium_error.PANDEMONIUM_ERR_UNAUTHORIZED
|
||||
ERR_PARAMETER_RANGE_ERROR = pandemonium_error.PANDEMONIUM_ERR_PARAMETER_RANGE_ERROR
|
||||
ERR_OUT_OF_MEMORY = pandemonium_error.PANDEMONIUM_ERR_OUT_OF_MEMORY
|
||||
ERR_FILE_NOT_FOUND = pandemonium_error.PANDEMONIUM_ERR_FILE_NOT_FOUND
|
||||
ERR_FILE_BAD_DRIVE = pandemonium_error.PANDEMONIUM_ERR_FILE_BAD_DRIVE
|
||||
ERR_FILE_BAD_PATH = pandemonium_error.PANDEMONIUM_ERR_FILE_BAD_PATH
|
||||
ERR_FILE_NO_PERMISSION = pandemonium_error.PANDEMONIUM_ERR_FILE_NO_PERMISSION
|
||||
ERR_FILE_ALREADY_IN_USE = pandemonium_error.PANDEMONIUM_ERR_FILE_ALREADY_IN_USE
|
||||
ERR_FILE_CANT_OPEN = pandemonium_error.PANDEMONIUM_ERR_FILE_CANT_OPEN
|
||||
ERR_FILE_CANT_WRITE = pandemonium_error.PANDEMONIUM_ERR_FILE_CANT_WRITE
|
||||
ERR_FILE_CANT_READ = pandemonium_error.PANDEMONIUM_ERR_FILE_CANT_READ
|
||||
ERR_FILE_UNRECOGNIZED = pandemonium_error.PANDEMONIUM_ERR_FILE_UNRECOGNIZED
|
||||
ERR_FILE_CORRUPT = pandemonium_error.PANDEMONIUM_ERR_FILE_CORRUPT
|
||||
ERR_FILE_MISSING_DEPENDENCIES = pandemonium_error.PANDEMONIUM_ERR_FILE_MISSING_DEPENDENCIES
|
||||
ERR_FILE_EOF = pandemonium_error.PANDEMONIUM_ERR_FILE_EOF
|
||||
ERR_CANT_OPEN = pandemonium_error.PANDEMONIUM_ERR_CANT_OPEN
|
||||
ERR_CANT_CREATE = pandemonium_error.PANDEMONIUM_ERR_CANT_CREATE
|
||||
ERR_QUERY_FAILED = pandemonium_error.PANDEMONIUM_ERR_QUERY_FAILED
|
||||
ERR_ALREADY_IN_USE = pandemonium_error.PANDEMONIUM_ERR_ALREADY_IN_USE
|
||||
ERR_LOCKED = pandemonium_error.PANDEMONIUM_ERR_LOCKED
|
||||
ERR_TIMEOUT = pandemonium_error.PANDEMONIUM_ERR_TIMEOUT
|
||||
ERR_CANT_CONNECT = pandemonium_error.PANDEMONIUM_ERR_CANT_CONNECT
|
||||
ERR_CANT_RESOLVE = pandemonium_error.PANDEMONIUM_ERR_CANT_RESOLVE
|
||||
ERR_CONNECTION_ERROR = pandemonium_error.PANDEMONIUM_ERR_CONNECTION_ERROR
|
||||
ERR_CANT_ACQUIRE_RESOURCE = pandemonium_error.PANDEMONIUM_ERR_CANT_ACQUIRE_RESOURCE
|
||||
ERR_CANT_FORK = pandemonium_error.PANDEMONIUM_ERR_CANT_FORK
|
||||
ERR_INVALID_DATA = pandemonium_error.PANDEMONIUM_ERR_INVALID_DATA
|
||||
ERR_INVALID_PARAMETER = pandemonium_error.PANDEMONIUM_ERR_INVALID_PARAMETER
|
||||
ERR_ALREADY_EXISTS = pandemonium_error.PANDEMONIUM_ERR_ALREADY_EXISTS
|
||||
ERR_DOES_NOT_EXIST = pandemonium_error.PANDEMONIUM_ERR_DOES_NOT_EXIST
|
||||
ERR_DATABASE_CANT_READ = pandemonium_error.PANDEMONIUM_ERR_DATABASE_CANT_READ
|
||||
ERR_DATABASE_CANT_WRITE = pandemonium_error.PANDEMONIUM_ERR_DATABASE_CANT_WRITE
|
||||
ERR_COMPILATION_FAILED = pandemonium_error.PANDEMONIUM_ERR_COMPILATION_FAILED
|
||||
ERR_METHOD_NOT_FOUND = pandemonium_error.PANDEMONIUM_ERR_METHOD_NOT_FOUND
|
||||
ERR_LINK_FAILED = pandemonium_error.PANDEMONIUM_ERR_LINK_FAILED
|
||||
ERR_SCRIPT_FAILED = pandemonium_error.PANDEMONIUM_ERR_SCRIPT_FAILED
|
||||
ERR_CYCLIC_LINK = pandemonium_error.PANDEMONIUM_ERR_CYCLIC_LINK
|
||||
ERR_INVALID_DECLARATION = pandemonium_error.PANDEMONIUM_ERR_INVALID_DECLARATION
|
||||
ERR_DUPLICATE_SYMBOL = pandemonium_error.PANDEMONIUM_ERR_DUPLICATE_SYMBOL
|
||||
ERR_PARSE_ERROR = pandemonium_error.PANDEMONIUM_ERR_PARSE_ERROR
|
||||
ERR_BUSY = pandemonium_error.PANDEMONIUM_ERR_BUSY
|
||||
ERR_SKIP = pandemonium_error.PANDEMONIUM_ERR_SKIP
|
||||
ERR_HELP = pandemonium_error.PANDEMONIUM_ERR_HELP
|
||||
ERR_BUG = pandemonium_error.PANDEMONIUM_ERR_BUG
|
||||
ERR_PRINTER_ON_FIRE = pandemonium_error.PANDEMONIUM_ERR_PRINTER_ON_FIRE
|
||||
|
||||
|
||||
class VariantType(IntFlag):
|
||||
NIL = pandemonium_variant_type.GODOT_VARIANT_TYPE_NIL
|
||||
BOOL = pandemonium_variant_type.GODOT_VARIANT_TYPE_BOOL
|
||||
INT = pandemonium_variant_type.GODOT_VARIANT_TYPE_INT
|
||||
REAL = pandemonium_variant_type.GODOT_VARIANT_TYPE_REAL
|
||||
STRING = pandemonium_variant_type.GODOT_VARIANT_TYPE_STRING
|
||||
VECTOR2 = pandemonium_variant_type.GODOT_VARIANT_TYPE_VECTOR2
|
||||
RECT2 = pandemonium_variant_type.GODOT_VARIANT_TYPE_RECT2
|
||||
VECTOR3 = pandemonium_variant_type.GODOT_VARIANT_TYPE_VECTOR3
|
||||
TRANSFORM2D = pandemonium_variant_type.GODOT_VARIANT_TYPE_TRANSFORM2D
|
||||
PLANE = pandemonium_variant_type.GODOT_VARIANT_TYPE_PLANE
|
||||
QUAT = pandemonium_variant_type.GODOT_VARIANT_TYPE_QUAT
|
||||
AABB = pandemonium_variant_type.GODOT_VARIANT_TYPE_AABB
|
||||
BASIS = pandemonium_variant_type.GODOT_VARIANT_TYPE_BASIS
|
||||
TRANSFORM = pandemonium_variant_type.GODOT_VARIANT_TYPE_TRANSFORM
|
||||
COLOR = pandemonium_variant_type.GODOT_VARIANT_TYPE_COLOR
|
||||
NODE_PATH = pandemonium_variant_type.GODOT_VARIANT_TYPE_NODE_PATH
|
||||
RID = pandemonium_variant_type.GODOT_VARIANT_TYPE_RID
|
||||
OBJECT = pandemonium_variant_type.GODOT_VARIANT_TYPE_OBJECT
|
||||
DICTIONARY = pandemonium_variant_type.GODOT_VARIANT_TYPE_DICTIONARY
|
||||
ARRAY = pandemonium_variant_type.GODOT_VARIANT_TYPE_ARRAY
|
||||
POOL_BYTE_ARRAY = pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_BYTE_ARRAY
|
||||
POOL_INT_ARRAY = pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_INT_ARRAY
|
||||
POOL_REAL_ARRAY = pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_REAL_ARRAY
|
||||
POOL_STRING_ARRAY = pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_STRING_ARRAY
|
||||
POOL_VECTOR2_ARRAY = pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_VECTOR2_ARRAY
|
||||
POOL_VECTOR3_ARRAY = pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_VECTOR3_ARRAY
|
||||
POOL_COLOR_ARRAY = pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_COLOR_ARRAY
|
||||
NIL = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_NIL
|
||||
BOOL = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_BOOL
|
||||
INT = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_INT
|
||||
REAL = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_REAL
|
||||
STRING = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_STRING
|
||||
VECTOR2 = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR2
|
||||
RECT2 = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RECT2
|
||||
VECTOR3 = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR3
|
||||
TRANSFORM2D = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_TRANSFORM2D
|
||||
PLANE = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_PLANE
|
||||
QUAT = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_QUAT
|
||||
AABB = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_AABB
|
||||
BASIS = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_BASIS
|
||||
TRANSFORM = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_TRANSFORM
|
||||
COLOR = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_COLOR
|
||||
NODE_PATH = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_NODE_PATH
|
||||
RID = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RID
|
||||
OBJECT = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_OBJECT
|
||||
DICTIONARY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_DICTIONARY
|
||||
ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_ARRAY
|
||||
POOL_BYTE_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_BYTE_ARRAY
|
||||
POOL_INT_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_INT_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_VECTOR2_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_VECTOR2_ARRAY
|
||||
POOL_VECTOR3_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_VECTOR3_ARRAY
|
||||
POOL_COLOR_ARRAY = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_COLOR_ARRAY
|
||||
|
||||
|
||||
class VariantOperator(IntFlag):
|
||||
EQUAL = pandemonium_variant_operator.GODOT_VARIANT_OP_EQUAL
|
||||
NOT_EQUAL = pandemonium_variant_operator.GODOT_VARIANT_OP_NOT_EQUAL
|
||||
LESS = pandemonium_variant_operator.GODOT_VARIANT_OP_LESS
|
||||
LESS_EQUAL = pandemonium_variant_operator.GODOT_VARIANT_OP_LESS_EQUAL
|
||||
GREATER = pandemonium_variant_operator.GODOT_VARIANT_OP_GREATER
|
||||
GREATER_EQUAL = pandemonium_variant_operator.GODOT_VARIANT_OP_GREATER_EQUAL
|
||||
ADD = pandemonium_variant_operator.GODOT_VARIANT_OP_ADD
|
||||
SUBTRACT = pandemonium_variant_operator.GODOT_VARIANT_OP_SUBTRACT
|
||||
MULTIPLY = pandemonium_variant_operator.GODOT_VARIANT_OP_MULTIPLY
|
||||
DIVIDE = pandemonium_variant_operator.GODOT_VARIANT_OP_DIVIDE
|
||||
NEGATE = pandemonium_variant_operator.GODOT_VARIANT_OP_NEGATE
|
||||
POSITIVE = pandemonium_variant_operator.GODOT_VARIANT_OP_POSITIVE
|
||||
MODULE = pandemonium_variant_operator.GODOT_VARIANT_OP_MODULE
|
||||
STRING_CONCAT = pandemonium_variant_operator.GODOT_VARIANT_OP_STRING_CONCAT
|
||||
SHIFT_LEFT = pandemonium_variant_operator.GODOT_VARIANT_OP_SHIFT_LEFT
|
||||
SHIFT_RIGHT = pandemonium_variant_operator.GODOT_VARIANT_OP_SHIFT_RIGHT
|
||||
BIT_AND = pandemonium_variant_operator.GODOT_VARIANT_OP_BIT_AND
|
||||
BIT_OR = pandemonium_variant_operator.GODOT_VARIANT_OP_BIT_OR
|
||||
BIT_XOR = pandemonium_variant_operator.GODOT_VARIANT_OP_BIT_XOR
|
||||
BIT_NEGATE = pandemonium_variant_operator.GODOT_VARIANT_OP_BIT_NEGATE
|
||||
AND = pandemonium_variant_operator.GODOT_VARIANT_OP_AND
|
||||
OR = pandemonium_variant_operator.GODOT_VARIANT_OP_OR
|
||||
XOR = pandemonium_variant_operator.GODOT_VARIANT_OP_XOR
|
||||
NOT = pandemonium_variant_operator.GODOT_VARIANT_OP_NOT
|
||||
IN = pandemonium_variant_operator.GODOT_VARIANT_OP_IN
|
||||
MAX = pandemonium_variant_operator.GODOT_VARIANT_OP_MAX
|
||||
EQUAL = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_EQUAL
|
||||
NOT_EQUAL = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_NOT_EQUAL
|
||||
LESS = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_LESS
|
||||
LESS_EQUAL = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_LESS_EQUAL
|
||||
GREATER = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_GREATER
|
||||
GREATER_EQUAL = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_GREATER_EQUAL
|
||||
ADD = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_ADD
|
||||
SUBTRACT = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_SUBTRACT
|
||||
MULTIPLY = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_MULTIPLY
|
||||
DIVIDE = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_DIVIDE
|
||||
NEGATE = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_NEGATE
|
||||
POSITIVE = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_POSITIVE
|
||||
MODULE = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_MODULE
|
||||
STRING_CONCAT = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_STRING_CONCAT
|
||||
SHIFT_LEFT = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_SHIFT_LEFT
|
||||
SHIFT_RIGHT = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_SHIFT_RIGHT
|
||||
BIT_AND = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_BIT_AND
|
||||
BIT_OR = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_BIT_OR
|
||||
BIT_XOR = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_BIT_XOR
|
||||
BIT_NEGATE = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_BIT_NEGATE
|
||||
AND = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_AND
|
||||
OR = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_OR
|
||||
XOR = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_XOR
|
||||
NOT = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_NOT
|
||||
IN = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_IN
|
||||
MAX = pandemonium_variant_operator.PANDEMONIUM_VARIANT_OP_MAX
|
||||
|
||||
|
||||
### Classes ###
|
||||
|
@ -51,32 +51,32 @@ cdef class Vector3:
|
||||
@property
|
||||
def x(self) -> pandemonium_real:
|
||||
{{ force_mark_rendered("pandemonium_vector3_get_axis") }}
|
||||
return gdapi10.pandemonium_vector3_get_axis(&self._gd_data, pandemonium_vector3_axis.GODOT_VECTOR3_AXIS_X)
|
||||
return gdapi10.pandemonium_vector3_get_axis(&self._gd_data, pandemonium_vector3_axis.PANDEMONIUM_VECTOR3_AXIS_X)
|
||||
|
||||
@x.setter
|
||||
def x(self, pandemonium_real val) -> None:
|
||||
{{ force_mark_rendered("pandemonium_vector3_set_axis") }}
|
||||
gdapi10.pandemonium_vector3_set_axis(&self._gd_data, pandemonium_vector3_axis.GODOT_VECTOR3_AXIS_X, val)
|
||||
gdapi10.pandemonium_vector3_set_axis(&self._gd_data, pandemonium_vector3_axis.PANDEMONIUM_VECTOR3_AXIS_X, val)
|
||||
|
||||
@property
|
||||
def y(self) -> pandemonium_real:
|
||||
{{ force_mark_rendered("pandemonium_vector3_get_axis") }}
|
||||
return gdapi10.pandemonium_vector3_get_axis(&self._gd_data, pandemonium_vector3_axis.GODOT_VECTOR3_AXIS_Y)
|
||||
return gdapi10.pandemonium_vector3_get_axis(&self._gd_data, pandemonium_vector3_axis.PANDEMONIUM_VECTOR3_AXIS_Y)
|
||||
|
||||
@y.setter
|
||||
def y(self, pandemonium_real val) -> None:
|
||||
{{ force_mark_rendered("pandemonium_vector3_set_axis") }}
|
||||
gdapi10.pandemonium_vector3_set_axis(&self._gd_data, pandemonium_vector3_axis.GODOT_VECTOR3_AXIS_Y, val)
|
||||
gdapi10.pandemonium_vector3_set_axis(&self._gd_data, pandemonium_vector3_axis.PANDEMONIUM_VECTOR3_AXIS_Y, val)
|
||||
|
||||
@property
|
||||
def z(self) -> pandemonium_real:
|
||||
{{ force_mark_rendered("pandemonium_vector3_get_axis") }}
|
||||
return gdapi10.pandemonium_vector3_get_axis(&self._gd_data, pandemonium_vector3_axis.GODOT_VECTOR3_AXIS_Z)
|
||||
return gdapi10.pandemonium_vector3_get_axis(&self._gd_data, pandemonium_vector3_axis.PANDEMONIUM_VECTOR3_AXIS_Z)
|
||||
|
||||
@z.setter
|
||||
def z(self, pandemonium_real val) -> None:
|
||||
{{ force_mark_rendered("pandemonium_vector3_set_axis") }}
|
||||
gdapi10.pandemonium_vector3_set_axis(&self._gd_data, pandemonium_vector3_axis.GODOT_VECTOR3_AXIS_Z, val)
|
||||
gdapi10.pandemonium_vector3_set_axis(&self._gd_data, pandemonium_vector3_axis.PANDEMONIUM_VECTOR3_AXIS_Z, val)
|
||||
|
||||
{{ render_operator_eq() | indent }}
|
||||
{{ render_operator_ne() | indent }}
|
||||
@ -143,9 +143,9 @@ cdef class Vector3:
|
||||
|
||||
{%- block python_consts %}
|
||||
AXIS = IntEnum("AXIS", {
|
||||
"X": pandemonium_vector3_axis.GODOT_VECTOR3_AXIS_X,
|
||||
"Y": pandemonium_vector3_axis.GODOT_VECTOR3_AXIS_Y,
|
||||
"Z": pandemonium_vector3_axis.GODOT_VECTOR3_AXIS_Z,
|
||||
"X": pandemonium_vector3_axis.PANDEMONIUM_VECTOR3_AXIS_X,
|
||||
"Y": pandemonium_vector3_axis.PANDEMONIUM_VECTOR3_AXIS_Y,
|
||||
"Z": pandemonium_vector3_axis.PANDEMONIUM_VECTOR3_AXIS_Z,
|
||||
})
|
||||
|
||||
ZERO = Vector3(0, 0, 0) # Zero vector.
|
||||
|
@ -295,8 +295,8 @@ class PatchedAutoPxd(AutoPxd):
|
||||
|
||||
def visit_ArrayDecl(self, node):
|
||||
# autopxd doesn't support array with an expression as size, but in:
|
||||
# typedef struct {uint8_t _dont_touch_that[GODOT_VECTOR3_SIZE];} pandemonium_vector3;
|
||||
# `GODOT_VECTOR3_SIZE` gets resolved as `sizeof(void*)` :(
|
||||
# typedef struct {uint8_t _dont_touch_that[PANDEMONIUM_VECTOR3_SIZE];} pandemonium_vector3;
|
||||
# `PANDEMONIUM_VECTOR3_SIZE` gets resolved as `sizeof(void*)` :(
|
||||
if node.type.declname == "_dont_touch_that":
|
||||
# Of course the 0 size is wrong, but it's not an issue given
|
||||
# we don't touch this array in Cython code (hence the name ^^)
|
||||
@ -373,28 +373,28 @@ cdef extern from "{header_name}" nogil:
|
||||
|
||||
\"\"\"
|
||||
typedef enum {{
|
||||
GODOT_METHOD_FLAG_NORMAL = 1,
|
||||
GODOT_METHOD_FLAG_EDITOR = 2,
|
||||
GODOT_METHOD_FLAG_NOSCRIPT = 4,
|
||||
GODOT_METHOD_FLAG_CONST = 8,
|
||||
GODOT_METHOD_FLAG_REVERSE = 16,
|
||||
GODOT_METHOD_FLAG_VIRTUAL = 32,
|
||||
GODOT_METHOD_FLAG_FROM_SCRIPT = 64,
|
||||
GODOT_METHOD_FLAG_VARARG = 128,
|
||||
GODOT_METHOD_FLAGS_DEFAULT = GODOT_METHOD_FLAG_NORMAL
|
||||
PANDEMONIUM_METHOD_FLAG_NORMAL = 1,
|
||||
PANDEMONIUM_METHOD_FLAG_EDITOR = 2,
|
||||
PANDEMONIUM_METHOD_FLAG_NOSCRIPT = 4,
|
||||
PANDEMONIUM_METHOD_FLAG_CONST = 8,
|
||||
PANDEMONIUM_METHOD_FLAG_REVERSE = 16,
|
||||
PANDEMONIUM_METHOD_FLAG_VIRTUAL = 32,
|
||||
PANDEMONIUM_METHOD_FLAG_FROM_SCRIPT = 64,
|
||||
PANDEMONIUM_METHOD_FLAG_VARARG = 128,
|
||||
PANDEMONIUM_METHOD_FLAGS_DEFAULT = PANDEMONIUM_METHOD_FLAG_NORMAL
|
||||
}} pandemonium_method_flags;
|
||||
\"\"\"
|
||||
|
||||
ctypedef enum pandemonium_method_flags:
|
||||
GODOT_METHOD_FLAG_NORMAL = 1
|
||||
GODOT_METHOD_FLAG_EDITOR = 2
|
||||
GODOT_METHOD_FLAG_NOSCRIPT = 4
|
||||
GODOT_METHOD_FLAG_CONST = 8
|
||||
GODOT_METHOD_FLAG_REVERSE = 16 # used for events
|
||||
GODOT_METHOD_FLAG_VIRTUAL = 32
|
||||
GODOT_METHOD_FLAG_FROM_SCRIPT = 64
|
||||
GODOT_METHOD_FLAG_VARARG = 128
|
||||
GODOT_METHOD_FLAGS_DEFAULT = 1 # METHOD_FLAG_NORMAL
|
||||
PANDEMONIUM_METHOD_FLAG_NORMAL = 1
|
||||
PANDEMONIUM_METHOD_FLAG_EDITOR = 2
|
||||
PANDEMONIUM_METHOD_FLAG_NOSCRIPT = 4
|
||||
PANDEMONIUM_METHOD_FLAG_CONST = 8
|
||||
PANDEMONIUM_METHOD_FLAG_REVERSE = 16 # used for events
|
||||
PANDEMONIUM_METHOD_FLAG_VIRTUAL = 32
|
||||
PANDEMONIUM_METHOD_FLAG_FROM_SCRIPT = 64
|
||||
PANDEMONIUM_METHOD_FLAG_VARARG = 128
|
||||
PANDEMONIUM_METHOD_FLAGS_DEFAULT = 1 # METHOD_FLAG_NORMAL
|
||||
|
||||
ctypedef bint bool
|
||||
|
||||
|
@ -111,7 +111,7 @@ cdef api pandemonium_error pythonscript_complete_code(
|
||||
pandemonium_bool *r_force,
|
||||
pandemonium_string *r_call_hint
|
||||
) with gil:
|
||||
return pandemonium_error.GODOT_OK
|
||||
return pandemonium_error.PANDEMONIUM_OK
|
||||
|
||||
|
||||
cdef api void pythonscript_auto_indent_code(
|
||||
|
@ -116,7 +116,7 @@ cdef api pandemonium_variant pythonscript_instance_call_method(
|
||||
# TODO: optimize this by caching pandemonium_string_name -> method lookup
|
||||
fn = instance.__exported.get(key)
|
||||
if not callable(fn):
|
||||
r_error.error = pandemonium_variant_call_error_error.GODOT_CALL_ERROR_CALL_ERROR_INVALID_METHOD
|
||||
r_error.error = pandemonium_variant_call_error_error.PANDEMONIUM_CALL_ERROR_CALL_ERROR_INVALID_METHOD
|
||||
gdapi10.pandemonium_variant_new_nil(&var_ret)
|
||||
return var_ret
|
||||
|
||||
@ -126,22 +126,22 @@ cdef api pandemonium_variant pythonscript_instance_call_method(
|
||||
try:
|
||||
pyargs = [pandemonium_variant_to_pyobj(p_args[i]) for i in range(p_argcount)]
|
||||
ret = fn(instance, *pyargs)
|
||||
r_error.error = pandemonium_variant_call_error_error.GODOT_CALL_ERROR_CALL_OK
|
||||
r_error.error = pandemonium_variant_call_error_error.PANDEMONIUM_CALL_ERROR_CALL_OK
|
||||
pyobj_to_pandemonium_variant(ret, &var_ret)
|
||||
return var_ret
|
||||
|
||||
except NotImplementedError:
|
||||
r_error.error = pandemonium_variant_call_error_error.GODOT_CALL_ERROR_CALL_ERROR_INVALID_METHOD
|
||||
r_error.error = pandemonium_variant_call_error_error.PANDEMONIUM_CALL_ERROR_CALL_ERROR_INVALID_METHOD
|
||||
|
||||
except TypeError:
|
||||
traceback.print_exc()
|
||||
# TODO: handle errors here
|
||||
r_error.error = pandemonium_variant_call_error_error.GODOT_CALL_ERROR_CALL_ERROR_INVALID_ARGUMENT
|
||||
r_error.error = pandemonium_variant_call_error_error.PANDEMONIUM_CALL_ERROR_CALL_ERROR_INVALID_ARGUMENT
|
||||
r_error.argument = 1
|
||||
r_error.expected = pandemonium_variant_type.GODOT_VARIANT_TYPE_NIL
|
||||
r_error.expected = pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_NIL
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
r_error.error = pandemonium_variant_call_error_error.GODOT_CALL_ERROR_CALL_ERROR_INVALID_METHOD
|
||||
r_error.error = pandemonium_variant_call_error_error.PANDEMONIUM_CALL_ERROR_CALL_ERROR_INVALID_METHOD
|
||||
|
||||
# TODO: also catch other exceptions types ?
|
||||
|
||||
|
@ -16,12 +16,12 @@ from pandemoniummonium._hazmat.gdnative_api_struct cimport (
|
||||
pandemonium_string_name,
|
||||
pandemonium_pluginscript_script_data,
|
||||
pandemonium_pluginscript_script_manifest,
|
||||
GODOT_OK,
|
||||
GODOT_ERR_UNAVAILABLE,
|
||||
GODOT_ERR_FILE_BAD_PATH,
|
||||
GODOT_ERR_PARSE_ERROR,
|
||||
GODOT_METHOD_FLAG_FROM_SCRIPT,
|
||||
GODOT_METHOD_RPC_MODE_DISABLED,
|
||||
PANDEMONIUM_OK,
|
||||
PANDEMONIUM_ERR_UNAVAILABLE,
|
||||
PANDEMONIUM_ERR_FILE_BAD_PATH,
|
||||
PANDEMONIUM_ERR_PARSE_ERROR,
|
||||
PANDEMONIUM_METHOD_FLAG_FROM_SCRIPT,
|
||||
PANDEMONIUM_METHOD_RPC_MODE_DISABLED,
|
||||
)
|
||||
from pandemoniummonium._hazmat.gdapi cimport pythonscript_gdapi10 as gdapi10
|
||||
from pandemoniummonium._hazmat.conversion cimport (
|
||||
@ -65,7 +65,7 @@ cdef Dictionary _build_signal_info(object signal):
|
||||
methinfo["args"] = Array()
|
||||
methinfo["default_args"] = Array()
|
||||
methinfo["return"] = None
|
||||
methinfo["flags"] = GODOT_METHOD_FLAG_FROM_SCRIPT
|
||||
methinfo["flags"] = PANDEMONIUM_METHOD_FLAG_FROM_SCRIPT
|
||||
return methinfo
|
||||
|
||||
|
||||
@ -78,9 +78,9 @@ cdef Dictionary _build_method_info(object meth, object methname):
|
||||
methinfo["default_args"] = Array() # TODO
|
||||
# TODO: use annotation to determine return type ?
|
||||
methinfo["return"] = None
|
||||
methinfo["flags"] = GODOT_METHOD_FLAG_FROM_SCRIPT
|
||||
methinfo["flags"] = PANDEMONIUM_METHOD_FLAG_FROM_SCRIPT
|
||||
methinfo["rpc_mode"] = getattr(
|
||||
meth, "__rpc", GODOT_METHOD_RPC_MODE_DISABLED
|
||||
meth, "__rpc", PANDEMONIUM_METHOD_RPC_MODE_DISABLED
|
||||
)
|
||||
return methinfo
|
||||
|
||||
@ -168,7 +168,7 @@ cdef api pandemonium_pluginscript_script_manifest pythonscript_script_init(
|
||||
print(
|
||||
f"Bad python script path `{path}`, must starts by `res://` and ends with `.py/pyc/pyo/pyd`"
|
||||
)
|
||||
r_error[0] = GODOT_ERR_FILE_BAD_PATH
|
||||
r_error[0] = PANDEMONIUM_ERR_FILE_BAD_PATH
|
||||
return _build_empty_script_manifest()
|
||||
|
||||
# TODO: possible bug if res:// is not part of PYTHONPATH
|
||||
@ -200,14 +200,14 @@ cdef api pandemonium_pluginscript_script_manifest pythonscript_script_init(
|
||||
print(
|
||||
f"Got exception loading {path} ({modname}): {traceback.format_exc()}"
|
||||
)
|
||||
r_error[0] = GODOT_ERR_PARSE_ERROR
|
||||
r_error[0] = PANDEMONIUM_ERR_PARSE_ERROR
|
||||
return _build_empty_script_manifest()
|
||||
|
||||
if cls is None:
|
||||
print(
|
||||
f"Cannot load {path} ({modname}) because it doesn't expose any class to Pandemonium"
|
||||
)
|
||||
r_error[0] = GODOT_ERR_PARSE_ERROR
|
||||
r_error[0] = PANDEMONIUM_ERR_PARSE_ERROR
|
||||
return _build_empty_script_manifest()
|
||||
|
||||
if is_reload:
|
||||
@ -218,7 +218,7 @@ cdef api pandemonium_pluginscript_script_manifest pythonscript_script_init(
|
||||
# Apparently multiple PluginScript instances can exist at the same time for the same script.
|
||||
set_exposed_class(cls)
|
||||
|
||||
r_error[0] = GODOT_OK
|
||||
r_error[0] = PANDEMONIUM_OK
|
||||
return _build_script_manifest(cls)
|
||||
|
||||
|
||||
|
@ -40,46 +40,46 @@ from warnings import warn
|
||||
|
||||
|
||||
GD_PY_TYPES = (
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_NIL, type(None)),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_BOOL, bool),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_INT, int),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_REAL, float),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_STRING, GDString),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_OBJECT, Object),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_VECTOR2, Vector2),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_RECT2, Rect2),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_VECTOR3, Vector3),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_TRANSFORM2D, Transform2D),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_PLANE, Plane),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_QUAT, Quat),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_AABB, AABB),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_BASIS, Basis),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_TRANSFORM, Transform),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_COLOR, Color),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_NODE_PATH, NodePath),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_RID, RID),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_DICTIONARY, Dictionary),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_ARRAY, Array),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_NIL, type(None)),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_BOOL, bool),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_INT, int),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_REAL, float),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_STRING, GDString),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_OBJECT, Object),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR2, Vector2),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RECT2, Rect2),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR3, Vector3),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_TRANSFORM2D, Transform2D),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_PLANE, Plane),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_QUAT, Quat),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_AABB, AABB),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_BASIS, Basis),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_TRANSFORM, Transform),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_COLOR, Color),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_NODE_PATH, NodePath),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RID, RID),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_DICTIONARY, Dictionary),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_ARRAY, Array),
|
||||
(
|
||||
pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_BYTE_ARRAY,
|
||||
pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_BYTE_ARRAY,
|
||||
PoolByteArray,
|
||||
),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_INT_ARRAY, PoolIntArray),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_INT_ARRAY, PoolIntArray),
|
||||
(
|
||||
pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_REAL_ARRAY,
|
||||
pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_REAL_ARRAY,
|
||||
PoolRealArray,
|
||||
),
|
||||
(pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_STRING_ARRAY, PoolStringArray),
|
||||
(pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_STRING_ARRAY, PoolStringArray),
|
||||
(
|
||||
pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_VECTOR2_ARRAY,
|
||||
pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_VECTOR2_ARRAY,
|
||||
PoolVector2Array,
|
||||
),
|
||||
(
|
||||
pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_VECTOR3_ARRAY,
|
||||
pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_VECTOR3_ARRAY,
|
||||
PoolVector3Array,
|
||||
),
|
||||
(
|
||||
pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_COLOR_ARRAY,
|
||||
pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_COLOR_ARRAY,
|
||||
PoolColorArray,
|
||||
),
|
||||
)
|
||||
@ -102,10 +102,10 @@ cdef pandemonium_variant_type pytype_to_pandemonium_type(object pytype):
|
||||
cdef gdtype = next((gd for gd, py in GD_PY_TYPES if py == pytype), None)
|
||||
if gdtype is None:
|
||||
if issubclass(pytype, Object):
|
||||
return pandemonium_variant_type.GODOT_VARIANT_TYPE_OBJECT
|
||||
return pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_OBJECT
|
||||
else:
|
||||
warn(f"No Pandemonium equivalent for Python type `{pytype}`")
|
||||
return pandemonium_variant_type.GODOT_VARIANT_TYPE_NIL
|
||||
return pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_NIL
|
||||
|
||||
return gdtype
|
||||
|
||||
@ -113,85 +113,85 @@ cdef pandemonium_variant_type pytype_to_pandemonium_type(object pytype):
|
||||
cdef object pandemonium_variant_to_pyobj(const pandemonium_variant *p_gdvar):
|
||||
cdef pandemonium_variant_type gdtype = gdapi10.pandemonium_variant_get_type(p_gdvar)
|
||||
|
||||
if gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_NIL:
|
||||
if gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_NIL:
|
||||
return None
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_BOOL:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_BOOL:
|
||||
return bool(gdapi10.pandemonium_variant_as_bool(p_gdvar))
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_INT:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_INT:
|
||||
return int(gdapi10.pandemonium_variant_as_int(p_gdvar))
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_REAL:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_REAL:
|
||||
return float(gdapi10.pandemonium_variant_as_real(p_gdvar))
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_STRING:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_STRING:
|
||||
return _pandemonium_variant_to_pyobj_string(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_VECTOR2:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR2:
|
||||
return _pandemonium_variant_to_pyobj_vector2(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_RECT2:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RECT2:
|
||||
return _pandemonium_variant_to_pyobj_rect2(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_VECTOR3:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_VECTOR3:
|
||||
return _pandemonium_variant_to_pyobj_vector3(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_TRANSFORM2D:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_TRANSFORM2D:
|
||||
return _pandemonium_variant_to_pyobj_transform2d(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_PLANE:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_PLANE:
|
||||
return _pandemonium_variant_to_pyobj_plane(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_QUAT:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_QUAT:
|
||||
return _pandemonium_variant_to_pyobj_quat(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_AABB:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_AABB:
|
||||
return _pandemonium_variant_to_pyobj_aabb(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_BASIS:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_BASIS:
|
||||
return _pandemonium_variant_to_pyobj_basis(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_TRANSFORM:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_TRANSFORM:
|
||||
return _pandemonium_variant_to_pyobj_transform(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_COLOR:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_COLOR:
|
||||
return _pandemonium_variant_to_pyobj_color(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_NODE_PATH:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_NODE_PATH:
|
||||
return _pandemonium_variant_to_pyobj_node_path(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_RID:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_RID:
|
||||
return _pandemonium_variant_to_pyobj_rid(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_OBJECT:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_OBJECT:
|
||||
return _pandemonium_variant_to_pyobj_object(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_DICTIONARY:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_DICTIONARY:
|
||||
return _pandemonium_variant_to_pyobj_dictionary(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_ARRAY:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_ARRAY:
|
||||
return _pandemonium_variant_to_pyobj_array(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_BYTE_ARRAY:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_BYTE_ARRAY:
|
||||
return _pandemonium_variant_to_pyobj_pool_byte_array(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_INT_ARRAY:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_INT_ARRAY:
|
||||
return _pandemonium_variant_to_pyobj_pool_int_array(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_REAL_ARRAY:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_REAL_ARRAY:
|
||||
return _pandemonium_variant_to_pyobj_pool_real_array(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_STRING_ARRAY:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_STRING_ARRAY:
|
||||
return _pandemonium_variant_to_pyobj_pool_string_array(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_VECTOR2_ARRAY:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_VECTOR2_ARRAY:
|
||||
return _pandemonium_variant_to_pyobj_pool_vector2_array(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_VECTOR3_ARRAY:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_VECTOR3_ARRAY:
|
||||
return _pandemonium_variant_to_pyobj_pool_vector3_array(p_gdvar)
|
||||
|
||||
elif gdtype == pandemonium_variant_type.GODOT_VARIANT_TYPE_POOL_COLOR_ARRAY:
|
||||
elif gdtype == pandemonium_variant_type.PANDEMONIUM_VARIANT_TYPE_POOL_COLOR_ARRAY:
|
||||
return _pandemonium_variant_to_pyobj_pool_color_array(p_gdvar)
|
||||
|
||||
else:
|
||||
|
@ -23,76 +23,76 @@ from pandemonium.bindings cimport Object, Resource
|
||||
|
||||
|
||||
class MethodRPCMode(enum.IntEnum):
|
||||
DISABLED = pandemonium_method_rpc_mode.GODOT_METHOD_RPC_MODE_DISABLED
|
||||
REMOTE = pandemonium_method_rpc_mode.GODOT_METHOD_RPC_MODE_REMOTE
|
||||
MASTER = pandemonium_method_rpc_mode.GODOT_METHOD_RPC_MODE_MASTER
|
||||
PUPPET = pandemonium_method_rpc_mode.GODOT_METHOD_RPC_MODE_PUPPET
|
||||
SLAVE = pandemonium_method_rpc_mode.GODOT_METHOD_RPC_MODE_SLAVE
|
||||
REMOTESYNC = pandemonium_method_rpc_mode.GODOT_METHOD_RPC_MODE_REMOTESYNC
|
||||
SYNC = pandemonium_method_rpc_mode.GODOT_METHOD_RPC_MODE_SYNC
|
||||
MASTERSYNC = pandemonium_method_rpc_mode.GODOT_METHOD_RPC_MODE_MASTERSYNC
|
||||
PUPPETSYNC = pandemonium_method_rpc_mode.GODOT_METHOD_RPC_MODE_PUPPETSYNC
|
||||
DISABLED = pandemonium_method_rpc_mode.PANDEMONIUM_METHOD_RPC_MODE_DISABLED
|
||||
REMOTE = pandemonium_method_rpc_mode.PANDEMONIUM_METHOD_RPC_MODE_REMOTE
|
||||
MASTER = pandemonium_method_rpc_mode.PANDEMONIUM_METHOD_RPC_MODE_MASTER
|
||||
PUPPET = pandemonium_method_rpc_mode.PANDEMONIUM_METHOD_RPC_MODE_PUPPET
|
||||
SLAVE = pandemonium_method_rpc_mode.PANDEMONIUM_METHOD_RPC_MODE_SLAVE
|
||||
REMOTESYNC = pandemonium_method_rpc_mode.PANDEMONIUM_METHOD_RPC_MODE_REMOTESYNC
|
||||
SYNC = pandemonium_method_rpc_mode.PANDEMONIUM_METHOD_RPC_MODE_SYNC
|
||||
MASTERSYNC = pandemonium_method_rpc_mode.PANDEMONIUM_METHOD_RPC_MODE_MASTERSYNC
|
||||
PUPPETSYNC = pandemonium_method_rpc_mode.PANDEMONIUM_METHOD_RPC_MODE_PUPPETSYNC
|
||||
|
||||
|
||||
class PropertyHint(enum.IntEnum):
|
||||
NONE = pandemonium_property_hint.GODOT_PROPERTY_HINT_NONE
|
||||
RANGE = pandemonium_property_hint.GODOT_PROPERTY_HINT_RANGE
|
||||
EXP_RANGE = pandemonium_property_hint.GODOT_PROPERTY_HINT_EXP_RANGE
|
||||
ENUM = pandemonium_property_hint.GODOT_PROPERTY_HINT_ENUM
|
||||
EXP_EASING = pandemonium_property_hint.GODOT_PROPERTY_HINT_EXP_EASING
|
||||
LENGTH = pandemonium_property_hint.GODOT_PROPERTY_HINT_LENGTH
|
||||
SPRITE_FRAME = pandemonium_property_hint.GODOT_PROPERTY_HINT_SPRITE_FRAME
|
||||
KEY_ACCEL = pandemonium_property_hint.GODOT_PROPERTY_HINT_KEY_ACCEL
|
||||
FLAGS = pandemonium_property_hint.GODOT_PROPERTY_HINT_FLAGS
|
||||
LAYERS_2D_RENDER = pandemonium_property_hint.GODOT_PROPERTY_HINT_LAYERS_2D_RENDER
|
||||
LAYERS_2D_PHYSICS = pandemonium_property_hint.GODOT_PROPERTY_HINT_LAYERS_2D_PHYSICS
|
||||
LAYERS_3D_RENDER = pandemonium_property_hint.GODOT_PROPERTY_HINT_LAYERS_3D_RENDER
|
||||
LAYERS_3D_PHYSICS = pandemonium_property_hint.GODOT_PROPERTY_HINT_LAYERS_3D_PHYSICS
|
||||
FILE = pandemonium_property_hint.GODOT_PROPERTY_HINT_FILE
|
||||
DIR = pandemonium_property_hint.GODOT_PROPERTY_HINT_DIR
|
||||
GLOBAL_FILE = pandemonium_property_hint.GODOT_PROPERTY_HINT_GLOBAL_FILE
|
||||
GLOBAL_DIR = pandemonium_property_hint.GODOT_PROPERTY_HINT_GLOBAL_DIR
|
||||
RESOURCE_TYPE = pandemonium_property_hint.GODOT_PROPERTY_HINT_RESOURCE_TYPE
|
||||
MULTILINE_TEXT = pandemonium_property_hint.GODOT_PROPERTY_HINT_MULTILINE_TEXT
|
||||
PLACEHOLDER_TEXT = pandemonium_property_hint.GODOT_PROPERTY_HINT_PLACEHOLDER_TEXT
|
||||
COLOR_NO_ALPHA = pandemonium_property_hint.GODOT_PROPERTY_HINT_COLOR_NO_ALPHA
|
||||
IMAGE_COMPRESS_LOSSY = pandemonium_property_hint.GODOT_PROPERTY_HINT_IMAGE_COMPRESS_LOSSY
|
||||
IMAGE_COMPRESS_LOSSLESS = pandemonium_property_hint.GODOT_PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS
|
||||
OBJECT_ID = pandemonium_property_hint.GODOT_PROPERTY_HINT_OBJECT_ID
|
||||
TYPE_STRING = pandemonium_property_hint.GODOT_PROPERTY_HINT_TYPE_STRING
|
||||
NODE_PATH_TO_EDITED_NODE = pandemonium_property_hint.GODOT_PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE
|
||||
METHOD_OF_VARIANT_TYPE = pandemonium_property_hint.GODOT_PROPERTY_HINT_METHOD_OF_VARIANT_TYPE
|
||||
METHOD_OF_BASE_TYPE = pandemonium_property_hint.GODOT_PROPERTY_HINT_METHOD_OF_BASE_TYPE
|
||||
METHOD_OF_INSTANCE = pandemonium_property_hint.GODOT_PROPERTY_HINT_METHOD_OF_INSTANCE
|
||||
METHOD_OF_SCRIPT = pandemonium_property_hint.GODOT_PROPERTY_HINT_METHOD_OF_SCRIPT
|
||||
PROPERTY_OF_VARIANT_TYPE = pandemonium_property_hint.GODOT_PROPERTY_HINT_PROPERTY_OF_VARIANT_TYPE
|
||||
PROPERTY_OF_BASE_TYPE = pandemonium_property_hint.GODOT_PROPERTY_HINT_PROPERTY_OF_BASE_TYPE
|
||||
PROPERTY_OF_INSTANCE = pandemonium_property_hint.GODOT_PROPERTY_HINT_PROPERTY_OF_INSTANCE
|
||||
PROPERTY_OF_SCRIPT = pandemonium_property_hint.GODOT_PROPERTY_HINT_PROPERTY_OF_SCRIPT
|
||||
MAX = pandemonium_property_hint.GODOT_PROPERTY_HINT_MAX
|
||||
NONE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_NONE
|
||||
RANGE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_RANGE
|
||||
EXP_RANGE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_EXP_RANGE
|
||||
ENUM = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_ENUM
|
||||
EXP_EASING = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_EXP_EASING
|
||||
LENGTH = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_LENGTH
|
||||
SPRITE_FRAME = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_SPRITE_FRAME
|
||||
KEY_ACCEL = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_KEY_ACCEL
|
||||
FLAGS = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_FLAGS
|
||||
LAYERS_2D_RENDER = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_LAYERS_2D_RENDER
|
||||
LAYERS_2D_PHYSICS = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_LAYERS_2D_PHYSICS
|
||||
LAYERS_3D_RENDER = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_LAYERS_3D_RENDER
|
||||
LAYERS_3D_PHYSICS = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_LAYERS_3D_PHYSICS
|
||||
FILE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_FILE
|
||||
DIR = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_DIR
|
||||
GLOBAL_FILE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_GLOBAL_FILE
|
||||
GLOBAL_DIR = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_GLOBAL_DIR
|
||||
RESOURCE_TYPE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_RESOURCE_TYPE
|
||||
MULTILINE_TEXT = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_MULTILINE_TEXT
|
||||
PLACEHOLDER_TEXT = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_PLACEHOLDER_TEXT
|
||||
COLOR_NO_ALPHA = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_COLOR_NO_ALPHA
|
||||
IMAGE_COMPRESS_LOSSY = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_IMAGE_COMPRESS_LOSSY
|
||||
IMAGE_COMPRESS_LOSSLESS = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS
|
||||
OBJECT_ID = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_OBJECT_ID
|
||||
TYPE_STRING = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_TYPE_STRING
|
||||
NODE_PATH_TO_EDITED_NODE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE
|
||||
METHOD_OF_VARIANT_TYPE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_METHOD_OF_VARIANT_TYPE
|
||||
METHOD_OF_BASE_TYPE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_METHOD_OF_BASE_TYPE
|
||||
METHOD_OF_INSTANCE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_METHOD_OF_INSTANCE
|
||||
METHOD_OF_SCRIPT = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_METHOD_OF_SCRIPT
|
||||
PROPERTY_OF_VARIANT_TYPE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_PROPERTY_OF_VARIANT_TYPE
|
||||
PROPERTY_OF_BASE_TYPE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_PROPERTY_OF_BASE_TYPE
|
||||
PROPERTY_OF_INSTANCE = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_PROPERTY_OF_INSTANCE
|
||||
PROPERTY_OF_SCRIPT = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_PROPERTY_OF_SCRIPT
|
||||
MAX = pandemonium_property_hint.PANDEMONIUM_PROPERTY_HINT_MAX
|
||||
|
||||
|
||||
class PropertyUsageFlag(enum.IntFlag):
|
||||
STORAGE = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_STORAGE
|
||||
EDITOR = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_EDITOR
|
||||
NETWORK = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_NETWORK
|
||||
EDITOR_HELPER = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_EDITOR_HELPER
|
||||
CHECKABLE = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_CHECKABLE
|
||||
CHECKED = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_CHECKED
|
||||
INTERNATIONALIZED = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_INTERNATIONALIZED
|
||||
GROUP = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_GROUP
|
||||
CATEGORY = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_CATEGORY
|
||||
STORE_IF_NONZERO = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_STORE_IF_NONZERO
|
||||
STORE_IF_NONONE = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_STORE_IF_NONONE
|
||||
NO_INSTANCE_STATE = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_NO_INSTANCE_STATE
|
||||
RESTART_IF_CHANGED = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_RESTART_IF_CHANGED
|
||||
SCRIPT_VARIABLE = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_SCRIPT_VARIABLE
|
||||
STORE_IF_NULL = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_STORE_IF_NULL
|
||||
ANIMATE_AS_TRIGGER = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_ANIMATE_AS_TRIGGER
|
||||
UPDATE_ALL_IF_MODIFIED = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED
|
||||
DEFAULT = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_DEFAULT
|
||||
DEFAULT_INTL = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_DEFAULT_INTL
|
||||
NOEDITOR = pandemonium_property_usage_flags.GODOT_PROPERTY_USAGE_NOEDITOR
|
||||
STORAGE = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_STORAGE
|
||||
EDITOR = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_EDITOR
|
||||
NETWORK = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_NETWORK
|
||||
EDITOR_HELPER = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_EDITOR_HELPER
|
||||
CHECKABLE = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_CHECKABLE
|
||||
CHECKED = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_CHECKED
|
||||
INTERNATIONALIZED = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_INTERNATIONALIZED
|
||||
GROUP = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_GROUP
|
||||
CATEGORY = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_CATEGORY
|
||||
STORE_IF_NONZERO = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_STORE_IF_NONZERO
|
||||
STORE_IF_NONONE = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_STORE_IF_NONONE
|
||||
NO_INSTANCE_STATE = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_NO_INSTANCE_STATE
|
||||
RESTART_IF_CHANGED = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_RESTART_IF_CHANGED
|
||||
SCRIPT_VARIABLE = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_SCRIPT_VARIABLE
|
||||
STORE_IF_NULL = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_STORE_IF_NULL
|
||||
ANIMATE_AS_TRIGGER = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_ANIMATE_AS_TRIGGER
|
||||
UPDATE_ALL_IF_MODIFIED = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED
|
||||
DEFAULT = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_DEFAULT
|
||||
DEFAULT_INTL = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_DEFAULT_INTL
|
||||
NOEDITOR = pandemonium_property_usage_flags.PANDEMONIUM_PROPERTY_USAGE_NOEDITOR
|
||||
|
||||
|
||||
# Expose RPC modes can be used both as a decorator and as a value to pass
|
||||
|
@ -60,10 +60,10 @@
|
||||
# @pytest.mark.parametrize(
|
||||
# "args",
|
||||
# [
|
||||
# (lib.GODOT_VARIANT_TYPE_NIL, type(None)),
|
||||
# (lib.GODOT_VARIANT_TYPE_REAL, float),
|
||||
# (lib.GODOT_VARIANT_TYPE_STRING, str),
|
||||
# (lib.GODOT_VARIANT_TYPE_DICTIONARY, Dictionary),
|
||||
# (lib.PANDEMONIUM_VARIANT_TYPE_NIL, type(None)),
|
||||
# (lib.PANDEMONIUM_VARIANT_TYPE_REAL, float),
|
||||
# (lib.PANDEMONIUM_VARIANT_TYPE_STRING, str),
|
||||
# (lib.PANDEMONIUM_VARIANT_TYPE_DICTIONARY, Dictionary),
|
||||
# ],
|
||||
# )
|
||||
# def test_gd_py_type_translation(args):
|
||||
@ -77,17 +77,17 @@
|
||||
|
||||
|
||||
# # @pytest.mark.parametrize('args', [
|
||||
# # (None, lib.GODOT_VARIANT_TYPE_NIL),
|
||||
# # (0, lib.GODOT_VARIANT_TYPE_INT),
|
||||
# # (42, lib.GODOT_VARIANT_TYPE_INT),
|
||||
# # (0.0, lib.GODOT_VARIANT_TYPE_REAL),
|
||||
# # (42.5, lib.GODOT_VARIANT_TYPE_REAL),
|
||||
# # ('', lib.GODOT_VARIANT_TYPE_STRING),
|
||||
# # ('test', lib.GODOT_VARIANT_TYPE_STRING),
|
||||
# # (Dictionary(), lib.GODOT_VARIANT_TYPE_DICTIONARY),
|
||||
# # (Dictionary({'foo': 1, 2: 'bar'}), lib.GODOT_VARIANT_TYPE_DICTIONARY),
|
||||
# # (Array(), lib.GODOT_VARIANT_TYPE_ARRAY),
|
||||
# # (Array(['foo', 2]), lib.GODOT_VARIANT_TYPE_ARRAY),
|
||||
# # (None, lib.PANDEMONIUM_VARIANT_TYPE_NIL),
|
||||
# # (0, lib.PANDEMONIUM_VARIANT_TYPE_INT),
|
||||
# # (42, lib.PANDEMONIUM_VARIANT_TYPE_INT),
|
||||
# # (0.0, lib.PANDEMONIUM_VARIANT_TYPE_REAL),
|
||||
# # (42.5, lib.PANDEMONIUM_VARIANT_TYPE_REAL),
|
||||
# # ('', lib.PANDEMONIUM_VARIANT_TYPE_STRING),
|
||||
# # ('test', lib.PANDEMONIUM_VARIANT_TYPE_STRING),
|
||||
# # (Dictionary(), lib.PANDEMONIUM_VARIANT_TYPE_DICTIONARY),
|
||||
# # (Dictionary({'foo': 1, 2: 'bar'}), lib.PANDEMONIUM_VARIANT_TYPE_DICTIONARY),
|
||||
# # (Array(), lib.PANDEMONIUM_VARIANT_TYPE_ARRAY),
|
||||
# # (Array(['foo', 2]), lib.PANDEMONIUM_VARIANT_TYPE_ARRAY),
|
||||
# # ])
|
||||
# # def test_new_raw_initialized(args):
|
||||
# # pyobj, gdtype = args
|
||||
@ -100,17 +100,17 @@
|
||||
# @pytest.mark.parametrize(
|
||||
# "args",
|
||||
# [
|
||||
# (None, lib.GODOT_VARIANT_TYPE_NIL),
|
||||
# (0, lib.GODOT_VARIANT_TYPE_INT),
|
||||
# (42, lib.GODOT_VARIANT_TYPE_INT),
|
||||
# (0.0, lib.GODOT_VARIANT_TYPE_REAL),
|
||||
# (42.5, lib.GODOT_VARIANT_TYPE_REAL),
|
||||
# ("", lib.GODOT_VARIANT_TYPE_STRING),
|
||||
# ("test", lib.GODOT_VARIANT_TYPE_STRING),
|
||||
# (Dictionary(), lib.GODOT_VARIANT_TYPE_DICTIONARY),
|
||||
# (Dictionary({"foo": 1, 2: "bar"}), lib.GODOT_VARIANT_TYPE_DICTIONARY),
|
||||
# (Array(), lib.GODOT_VARIANT_TYPE_ARRAY),
|
||||
# (Array(["foo", 2]), lib.GODOT_VARIANT_TYPE_ARRAY),
|
||||
# (None, lib.PANDEMONIUM_VARIANT_TYPE_NIL),
|
||||
# (0, lib.PANDEMONIUM_VARIANT_TYPE_INT),
|
||||
# (42, lib.PANDEMONIUM_VARIANT_TYPE_INT),
|
||||
# (0.0, lib.PANDEMONIUM_VARIANT_TYPE_REAL),
|
||||
# (42.5, lib.PANDEMONIUM_VARIANT_TYPE_REAL),
|
||||
# ("", lib.PANDEMONIUM_VARIANT_TYPE_STRING),
|
||||
# ("test", lib.PANDEMONIUM_VARIANT_TYPE_STRING),
|
||||
# (Dictionary(), lib.PANDEMONIUM_VARIANT_TYPE_DICTIONARY),
|
||||
# (Dictionary({"foo": 1, 2: "bar"}), lib.PANDEMONIUM_VARIANT_TYPE_DICTIONARY),
|
||||
# (Array(), lib.PANDEMONIUM_VARIANT_TYPE_ARRAY),
|
||||
# (Array(["foo", 2]), lib.PANDEMONIUM_VARIANT_TYPE_ARRAY),
|
||||
# ],
|
||||
# )
|
||||
# def test_pyobj_raw_conversion(args):
|
||||
|
Loading…
Reference in New Issue
Block a user