diff --git a/AutomaticBugs/BasicData.gd b/AutomaticBugs/BasicData.gd index 8e949a3..b675fc9 100644 --- a/AutomaticBugs/BasicData.gd +++ b/AutomaticBugs/BasicData.gd @@ -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_TRANSFORM3D|| 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_QUATERNION|| 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 diff --git a/AutomaticBugs/ParseArgumentType.gd b/AutomaticBugs/ParseArgumentType.gd index 6476ff4..9c55177 100644 --- a/AutomaticBugs/ParseArgumentType.gd +++ b/AutomaticBugs/ParseArgumentType.gd @@ -56,8 +56,8 @@ func parse_and_return_objects(method_data: Dictionary, name_of_class: String, de arguments_array.push_back(ValueCreator.get_object(argument.get("class_name"))) elif type == TYPE_PLANE: arguments_array.push_back(ValueCreator.get_plane()) - elif type == TYPE_QUAT: - arguments_array.push_back(ValueCreator.get_quat()) + elif type == TYPE_QUATERNION: + arguments_array.push_back(ValueCreator.get_quaternion()) elif type == TYPE_RAW_ARRAY: arguments_array.push_back(PackedByteArray([])) elif type == TYPE_FLOAT: @@ -211,8 +211,8 @@ func return_gdscript_code_which_run_this_object(data) -> String: return_string += ", " return_string += return_gdscript_code_which_run_this_object(data.d) return_string += ")" - elif type == TYPE_QUAT: - return_string = "Quat(" + elif type == TYPE_QUATERNION: + return_string = "Quaternion(" return_string += return_gdscript_code_which_run_this_object(data.x) return_string += ", " return_string += return_gdscript_code_which_run_this_object(data.y) diff --git a/AutomaticBugs/ValueCreator.gd b/AutomaticBugs/ValueCreator.gd index 7d3a966..ae94927 100644 --- a/AutomaticBugs/ValueCreator.gd +++ b/AutomaticBugs/ValueCreator.gd @@ -126,12 +126,12 @@ func get_plane_string() -> String: return "Plane(" + get_vector3_string() + ", " + get_vector3_string() + ", " + get_vector3_string() + ")" -func get_quat() -> Quat: - return Quat(get_vector3()) +func get_quaternion() -> Quaternion: + return Quaternion(get_vector3()) -func get_quat_string() -> String: - return "Quat(" + get_vector3_string() + ")" +func get_quaternion_string() -> String: + return "Quaternion(" + get_vector3_string() + ")" func get_basis() -> Basis: diff --git a/Physics/2D/KinematicBody2D.gd b/Physics/2D/KinematicBody2D.gd index 1b62b0a..5d77a70 100644 --- a/Physics/2D/KinematicBody2D.gd +++ b/Physics/2D/KinematicBody2D.gd @@ -1,4 +1,4 @@ -extends KinematicBody2D +extends CharacterBody2D var move_vector: Vector2 = Vector2(1, 1) var speed: float = 1000.0