Plush

ScriptDefinition#

PlushEngine · Type index

Namespace: PlushEngine

One entity placed in the scene: independent, individually optional concerns — where it is (Transform2D), what it looks like (Render2D), what it physically occupies (Collider2D), what it does (Script, a name resolved through the same lookup for built-ins and project scripts alike), and whether it's currently participating at all (Active — an inactive entity draws nothing and its scripts never tick). Parent is a reference to another entity's own local id; Transform is local to it (world-space for a root entity, since there's nothing to be relative to) — see RuntimeScene.ComputeWorldTransform.

public sealed record ScriptDefinition(string Id, string Type, System.Text.Json.Nodes.JsonObject? Properties)

Record properties#

PropertyTypeAccessConstructor default
Idstringget; init;required
Typestringget; init;required
PropertiesSystem.Text.Json.Nodes.JsonObject?get; init;required

Source#