Aego Playground

Types

Type Description
bool true / false
int signed 64-bit; wraps on overflow
float IEEE float32
string immutable UTF-8; + concatenation, comparison, len in bytes; no indexing
Vec2 Vec3 Color Quat Rect engine value types; lanes .X .Y .Z .W, .R .G .B .A, .X .Y .W .H
Transform2D{Position Vec2, Rotation float, Scale Vec2} value struct
Transform3D{Position Vec3, Rotation Quat, Scale Vec3} value struct
NodeRef reference to a node; may be nil
AssetRef<Texture | Scene | Prefab | Mesh> reference to an asset; may be nil
ComponentRef<T> reference to a component on a node; may be nil
ScriptRef<T> reference to an instance of script T; may be nil; fields, plain methods and signals of T
Coroutine handle returned by start; may be nil; methods Stop(), Running() bool
Connection handle returned by Connect; may be nil; methods Disconnect(), Connected() bool
struct package-level, value semantics, copied on assignment
enum package-level, int-backed, members State.Idle
[]T growable slice on the VM heap

Rules: