stringify.gd 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. func test():
  2. print(true, false)
  3. print(-1, 0, 1)
  4. print(-1.25, 0.25, 1.25)
  5. print("hello world")
  6. print(Vector2(0.25, 1))
  7. print(Vector2i(0, 0))
  8. print(Rect2(0.25, 0.25, 0.5, 1))
  9. print(Rect2i(0, 0, 0, 0))
  10. print(Vector3(0.25, 0.25, 1))
  11. print(Vector3i(0, 0, 0))
  12. print(Vector4(0.25, 0.25, 0.25, 1))
  13. print(Vector4i(0, 0, 0, 0))
  14. print(Transform2D.IDENTITY)
  15. print(Plane(1, 2, 3, 4))
  16. print(Quaternion(1, 2, 3, 4))
  17. print(AABB(Vector3.ZERO, Vector3.ONE))
  18. print(Basis.from_euler(Vector3(0, 0, 0)))
  19. print(Transform3D.IDENTITY)
  20. print(Projection.IDENTITY)
  21. print(Color(1, 2, 3, 4))
  22. print(StringName("hello"))
  23. print(NodePath("hello/world"))
  24. var node := Node.new()
  25. print(RID(node)) # TODO: Why is the constructor (or implicit cast) not documented?
  26. print(node.get_name)
  27. print(node.property_list_changed)
  28. node.free()
  29. print({"hello":123})
  30. print(["hello", 123])
  31. print(PackedByteArray([-1, 0, 1]))
  32. print(PackedInt32Array([-1, 0, 1]))
  33. print(PackedInt64Array([-1, 0, 1]))
  34. print(PackedFloat32Array([-1, 0, 1]))
  35. print(PackedFloat64Array([-1, 0, 1]))
  36. print(PackedStringArray(["hello", "world"]))
  37. print(PackedVector2Array([Vector2.ONE, Vector2.ZERO]))
  38. print(PackedVector3Array([Vector3.ONE, Vector3.ZERO]))
  39. print(PackedColorArray([Color.RED, Color.BLUE, Color.GREEN]))
  40. print(PackedVector4Array([Vector4.ONE, Vector4.ZERO]))