Created
May 27, 2021 00:38
-
-
Save bitwes/626aaa384df7c53bd72c6d5c5344b17a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hash containing all the built in types in Godot. This provides an English | |
# name for the types that corosponds with the type constants defined in the | |
# engine. | |
var types = {} | |
func _init_types_dictionary(): | |
types[TYPE_NIL] = 'TYPE_NIL' | |
types[TYPE_BOOL] = 'Bool' | |
types[TYPE_INT] = 'Int' | |
types[TYPE_REAL] = 'Float/Real' | |
types[TYPE_STRING] = 'String' | |
types[TYPE_VECTOR2] = 'Vector2' | |
types[TYPE_RECT2] = 'Rect2' | |
types[TYPE_VECTOR3] = 'Vector3' | |
#types[8] = 'Matrix32' | |
types[TYPE_PLANE] = 'Plane' | |
types[TYPE_QUAT] = 'QUAT' | |
types[TYPE_AABB] = 'AABB' | |
#types[12] = 'Matrix3' | |
types[TYPE_TRANSFORM] = 'Transform' | |
types[TYPE_COLOR] = 'Color' | |
#types[15] = 'Image' | |
types[TYPE_NODE_PATH] = 'Node Path' | |
types[TYPE_RID] = 'RID' | |
types[TYPE_OBJECT] = 'TYPE_OBJECT' | |
#types[19] = 'TYPE_INPUT_EVENT' | |
types[TYPE_DICTIONARY] = 'Dictionary' | |
types[TYPE_ARRAY] = 'Array' | |
types[TYPE_RAW_ARRAY] = 'TYPE_RAW_ARRAY' | |
types[TYPE_INT_ARRAY] = 'TYPE_INT_ARRAY' | |
types[TYPE_REAL_ARRAY] = 'TYPE_REAL_ARRAY' | |
types[TYPE_STRING_ARRAY] = 'TYPE_STRING_ARRAY' | |
types[TYPE_VECTOR2_ARRAY] = 'TYPE_VECTOR2_ARRAY' | |
types[TYPE_VECTOR3_ARRAY] = 'TYPE_VECTOR3_ARRAY' | |
types[TYPE_COLOR_ARRAY] = 'TYPE_COLOR_ARRAY' | |
types[TYPE_MAX] = 'TYPE_MAX' | |
func _init(): | |
_init_types_dictionary() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment