@@ -563,14 +563,32 @@ static func _get_property_type(property: Dictionary) -> String:
563563static func _get_mapped_variant_type (variant_type_name : String ) -> String :
564564 var _type_map = {
565565 "Variant" : "Variant" ,
566- "bool" : "bool" ,
567- "int" : "long" ,
568- "float" : "double" if OS .has_feature ("double" ) else "float" ,
569- "String" : "string" ,
570- "StringName" : "StringName" ,
571- "Dictionary" : "Godot.Collections.Dictionary" ,
566+ type_string (TYPE_BOOL ): "bool" ,
567+ type_string (TYPE_INT ): "int" ,
568+ type_string (TYPE_FLOAT ): "double" if OS .has_feature ("double" ) else "float" ,
569+ type_string (TYPE_STRING ): "string" ,
570+ type_string (TYPE_STRING_NAME ): "StringName" ,
571+ type_string (TYPE_VECTOR2I ): "Godot.Vector2I" ,
572+ type_string (TYPE_RECT2I ): "Godot.Rect2I" ,
573+ type_string (TYPE_VECTOR3I ): "Godot.Vector3I" ,
574+ type_string (TYPE_VECTOR4I ): "Godot.Vector4I" ,
575+ type_string (TYPE_AABB ): "Godot.Aabb" ,
576+ type_string (TYPE_RID ): "Godot.Rid" ,
577+ type_string (TYPE_OBJECT ): "GodotObject" ,
578+ type_string (TYPE_ARRAY ): "Godot.Collections.Array" ,
579+ type_string (TYPE_DICTIONARY ): "Godot.Collections.Dictionary" ,
580+ type_string (TYPE_PACKED_BYTE_ARRAY ): "byte[]" ,
581+ type_string (TYPE_PACKED_INT32_ARRAY ): "int[]" ,
582+ type_string (TYPE_PACKED_INT64_ARRAY ): "long[]" ,
583+ type_string (TYPE_PACKED_FLOAT32_ARRAY ): "float[]" ,
584+ type_string (TYPE_PACKED_FLOAT64_ARRAY ): "double[]" ,
585+ type_string (TYPE_PACKED_STRING_ARRAY ): "string[]" ,
586+ type_string (TYPE_PACKED_VECTOR2_ARRAY ): "Godot.Vector2[]" ,
587+ type_string (TYPE_PACKED_VECTOR3_ARRAY ): "Godot.Vector3[]" ,
588+ type_string (TYPE_PACKED_VECTOR4_ARRAY ): "Godot.Vector4[]" ,
589+ type_string (TYPE_PACKED_COLOR_ARRAY ): "Godot.Color[]" ,
572590 }
573- return _type_map [ variant_type_name ]
591+ return _type_map . get ( variant_type_name , "Godot." + variant_type_name )
574592
575593
576594static func _property_get_cast (property : Dictionary ):
0 commit comments