A Godot Engine app to help streamers organize Majority Judgment polls in their streams.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.1 KiB

  1. extends Reference
  2. static func get_type_string(property_id: int) -> String:
  3. match property_id:
  4. TYPE_NIL:
  5. return "null"
  6. TYPE_BOOL:
  7. return "bool"
  8. TYPE_INT:
  9. return "int"
  10. TYPE_REAL:
  11. return "float"
  12. TYPE_STRING:
  13. return "String"
  14. TYPE_VECTOR2:
  15. return "Vector2"
  16. TYPE_RECT2:
  17. return "Rect2"
  18. TYPE_VECTOR3:
  19. return "Vector3"
  20. TYPE_TRANSFORM2D:
  21. return "Transform2D"
  22. TYPE_PLANE:
  23. return "Plane"
  24. TYPE_QUAT:
  25. return "Quat"
  26. TYPE_AABB:
  27. return "AABB"
  28. TYPE_BASIS:
  29. return "Basis"
  30. TYPE_TRANSFORM:
  31. return "Transform"
  32. TYPE_COLOR:
  33. return "Color"
  34. TYPE_NODE_PATH:
  35. return "NodePath"
  36. TYPE_RID:
  37. return "RID"
  38. TYPE_OBJECT:
  39. return "Object"
  40. TYPE_DICTIONARY:
  41. return "Dictionary"
  42. TYPE_ARRAY:
  43. return "Array"
  44. TYPE_RAW_ARRAY:
  45. return "PoolByteArray"
  46. TYPE_INT_ARRAY:
  47. return "PoolIntArray"
  48. TYPE_REAL_ARRAY:
  49. return "PoolRealArray"
  50. TYPE_STRING_ARRAY:
  51. return "PoolStringArray"
  52. TYPE_VECTOR2_ARRAY:
  53. return "PoolVector2Array"
  54. TYPE_VECTOR3_ARRAY:
  55. return "PoolVector3Array"
  56. TYPE_COLOR_ARRAY:
  57. return "PoolColorArray"
  58. return "OutOfBounds"