mirror of
https://github.com/Relintai/regression-test-project.git
synced 2024-11-14 10:27:53 +01:00
Transform3D (#52)
This commit is contained in:
parent
2a353ae381
commit
eab0326c65
@ -243,7 +243,7 @@ func check_if_is_allowed(method_data : Dictionary) -> bool:
|
||||
# In case of adding new type, this prevents from crashing due not recognizing this type
|
||||
var t : int = arg.get("type")
|
||||
|
||||
if !(t == TYPE_NIL|| t == TYPE_CALLABLE || t == TYPE_MAX|| t == TYPE_AABB|| t == TYPE_ARRAY|| t == TYPE_BASIS|| t == TYPE_BOOL|| t == TYPE_COLOR|| t == TYPE_COLOR_ARRAY|| t == TYPE_DICTIONARY|| t == TYPE_INT|| t == TYPE_INT32_ARRAY|| t == TYPE_INT64_ARRAY|| t == TYPE_NODE_PATH|| t == TYPE_OBJECT|| t == TYPE_PLANE|| t == TYPE_QUAT|| t == TYPE_RAW_ARRAY|| t == TYPE_FLOAT|| t == TYPE_FLOAT32_ARRAY|| t == TYPE_FLOAT64_ARRAY|| t == TYPE_RECT2|| t == TYPE_RECT2I|| t == TYPE_RID|| t == TYPE_STRING|| t == TYPE_STRING_NAME|| t == TYPE_STRING_ARRAY|| t == TYPE_TRANSFORM|| t == TYPE_TRANSFORM2D|| t == TYPE_VECTOR2|| t == TYPE_VECTOR2I|| t == TYPE_VECTOR2_ARRAY|| t == TYPE_VECTOR3|| t == TYPE_VECTOR3I|| t == TYPE_VECTOR3_ARRAY):
|
||||
if !(t == TYPE_NIL|| t == TYPE_CALLABLE || t == TYPE_MAX|| t == TYPE_AABB|| t == TYPE_ARRAY|| t == TYPE_BASIS|| t == TYPE_BOOL|| t == TYPE_COLOR|| t == TYPE_COLOR_ARRAY|| t == TYPE_DICTIONARY|| t == TYPE_INT|| t == TYPE_INT32_ARRAY|| t == TYPE_INT64_ARRAY|| t == TYPE_NODE_PATH|| t == TYPE_OBJECT|| t == TYPE_PLANE|| t == TYPE_QUAT|| t == TYPE_RAW_ARRAY|| t == TYPE_FLOAT|| t == TYPE_FLOAT32_ARRAY|| t == TYPE_FLOAT64_ARRAY|| t == TYPE_RECT2|| t == TYPE_RECT2I|| t == TYPE_RID|| t == TYPE_STRING|| t == TYPE_STRING_NAME|| t == TYPE_STRING_ARRAY|| t == TYPE_TRANSFORM3D|| t == TYPE_TRANSFORM2D|| t == TYPE_VECTOR2|| t == TYPE_VECTOR2I|| t == TYPE_VECTOR2_ARRAY|| t == TYPE_VECTOR3|| t == TYPE_VECTOR3I|| t == TYPE_VECTOR3_ARRAY):
|
||||
print("----------------------------------------------------------- TODO - MISSING TYPE, ADD SUPPORT IT")
|
||||
return false
|
||||
|
||||
|
@ -78,7 +78,7 @@ func parse_and_return_objects(method_data: Dictionary, name_of_class: String, de
|
||||
arguments_array.push_back(StringName(ValueCreator.get_string()))
|
||||
elif type == TYPE_STRING_ARRAY:
|
||||
arguments_array.push_back(PackedStringArray([]))
|
||||
elif type == TYPE_TRANSFORM:
|
||||
elif type == TYPE_TRANSFORM3D:
|
||||
arguments_array.push_back(ValueCreator.get_transform())
|
||||
elif type == TYPE_TRANSFORM2D:
|
||||
arguments_array.push_back(ValueCreator.get_transform2D())
|
||||
@ -267,7 +267,7 @@ func return_gdscript_code_which_run_this_object(data) -> String:
|
||||
if i != data.size() - 1:
|
||||
return_string += ", "
|
||||
return_string += "])"
|
||||
elif type == TYPE_TRANSFORM:
|
||||
elif type == TYPE_TRANSFORM3D:
|
||||
return_string = "Transform("
|
||||
return_string += return_gdscript_code_which_run_this_object(data.basis)
|
||||
return_string += ", "
|
||||
|
Loading…
Reference in New Issue
Block a user