From 531ca3b53934e1e541675c9bccaa192092a17091 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 3 Jun 2023 01:09:27 +0200 Subject: [PATCH] Fix issues with the bindings. --- generation/builtins_templates/vector2i.tmpl.pxi | 1 - generation/builtins_templates/vector3i.tmpl.pxi | 1 - generation/generate_bindings.py | 6 +++--- pythonscript/pandemonium/__init__.py | 9 --------- 4 files changed, 3 insertions(+), 14 deletions(-) diff --git a/generation/builtins_templates/vector2i.tmpl.pxi b/generation/builtins_templates/vector2i.tmpl.pxi index 4ae92db..55f22c3 100644 --- a/generation/builtins_templates/vector2i.tmpl.pxi +++ b/generation/builtins_templates/vector2i.tmpl.pxi @@ -96,7 +96,6 @@ cdef class Vector2i: ZERO = Vector2i(0, 0) ONE = Vector2i(1, 1) - INF = Vector2i(math.inf, math.inf) LEFT = Vector2i(-1, 0) RIGHT = Vector2i(1, 0) UP = Vector2i(0, -1) diff --git a/generation/builtins_templates/vector3i.tmpl.pxi b/generation/builtins_templates/vector3i.tmpl.pxi index e6a77d0..c5e85fb 100644 --- a/generation/builtins_templates/vector3i.tmpl.pxi +++ b/generation/builtins_templates/vector3i.tmpl.pxi @@ -124,7 +124,6 @@ cdef class Vector3i: ZERO = Vector3i(0, 0, 0) # Zero vector. ONE = Vector3i(1, 1, 1) # One vector. - INF = Vector3i(math.inf, math.inf, math.inf) # Infinite vector. LEFT = Vector3i(-1, 0, 0) # Left unit vector. RIGHT = Vector3i(1, 0, 0) # Right unit vector. UP = Vector3i(0, 1, 0) # Up unit vector. diff --git a/generation/generate_bindings.py b/generation/generate_bindings.py index 7166901..cb34bb1 100644 --- a/generation/generate_bindings.py +++ b/generation/generate_bindings.py @@ -423,9 +423,9 @@ def cook_data(data): elif type == "pandemonium_vector2i": return f"Vector2i{value}" elif type == "pandemonium_rect2": - return f"Rect2{value}".replace("[P: (", "(Vector2(").replace("), S: (", "), Vector2(").replace(")]", "))") + return f"Rect2{value}".replace("[P: (", "(").replace("), S: (", ", ").replace(")]", ")") elif type == "pandemonium_rect2i": - return f"Rect2i{value}".replace("[P: (", "(Vector2i(").replace("), S: (", "), Vector2i(").replace(")]", "))") + return f"Rect2i{value}".replace("[P: (", "(").replace("), S: (", ", ").replace(")]", ")") elif type == "pandemonium_vector3": return f"Vector3{value}" elif type == "pandemonium_vector3i": @@ -448,7 +448,7 @@ def cook_data(data): elif value == "[RID]": return "RID()" elif type == "pandemonium_color": - return f"Color({value})" + return f"Color{value}" elif type == "pandemonium_pool_color_array" and value == "[PoolColorArray]": return "PoolColorArray()" elif type == "pandemonium_array" and value == "[]": diff --git a/pythonscript/pandemonium/__init__.py b/pythonscript/pandemonium/__init__.py index c581917..4f1b77e 100644 --- a/pythonscript/pandemonium/__init__.py +++ b/pythonscript/pandemonium/__init__.py @@ -18,15 +18,6 @@ from pandemonium.tags import ( MethodRPCMode, PropertyHint, PropertyUsageFlag, - rpcdisabled, - rpcremote, - rpcmaster, - rpcpuppet, - rpcslave, - rpcremotesync, - rpcsync, - rpcmastersync, - rpcpuppetsync, signal, export, exposed,