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