Contract payloads
Contract reference · contract.json (crates/manifold-wasm-abi/wit/contract.json)
Contract 0.2.0, track 0.2: open, unreleased. Nothing on track 0.2 is released yet, so any item may still change in place (spec §7.2).
Every list<u8> in the contract is classified (payloads, spec §11): a schema payload is a postcard value of one registered type, a packed layout a little-endian record buffer, and opaque bytes have their description elsewhere.
A schema payload’s shape is its postcard encoding: struct fields in order with no names, an enum as its variant index (a varint) then the variant’s payload, an option as a 0 or 1 byte then the value, a list, string, bytes or map as a varint length then the items, an array as exactly its elements, integers wider than a byte as varints (signed ones zigzag-encoded), floats as little-endian bytes. envelope payloads begin with a u16 format version that the host migrates forward; track payloads only append variants within a track (never a field: postcard reads exactly the declared fields). A pending part is a shape not described yet, named with the work that will describe it; nothing checks it.
Schema payloads
command-payload
Rust manifold_net_protocol::protocol::CommandPayload · owner input · versioning track
Shape: CommandPayload
Sites:
Types it reaches: CommandPayload, NetBinding, NetEntityId.
hud-layer-policies
Rust Vec<(smol_str::SmolStr, manifold_ui_protocol::client_plugin::HookPolicy)> · owner enki · versioning track
Shape: list<tuple<string, HookPolicy>>
Sites:
Types it reaches: HookPolicy.
layout-transforms
Rust Vec<manifold_ui_protocol::client_plugin::LayoutTransform> · owner enki · versioning track
Shape: list<LayoutTransform>
Sites:
Types it reaches: Anchor2D, HookTarget, LayoutOp, LayoutTransform.
mod-declarations
Rust manifold_mod_types::ModDeclarations · owner contract-foundation · versioning envelope, format version 13 (manifold_mod_types::DECLARATIONS_FORMAT_VERSION); the host reads and writes only this version
Shape: ModDeclarations
Sites:
Types it reaches: A11yDeclWire, AccumulationWire, ActionDeclWire, ActionScopeWire, BackBehaviourWire, BandWire, BlockDefWire, ChannelDecl, ChannelDirection, CommandKindWire, CommandLeafWire, CommandNodeWire, ComponentDeclWire, ContextDeclWire, ContextKindWire, CursorModeWire, DefaultBindingDeclWire, DefaultHostWire, Domain, DomainAccess, EngineRequests, EntityArchetypeWire, EventDeclWire, FieldKindWire, FieldSchemaWire, HostResourceDeclWire, InputCommandKindWire, InputRoleBindingWire, InputRoleWire, LimitDecl, ModDeclarations, ModPermissions, PermissionDecl, PermissionDefault, PermissionLevelWire, PhysicsQuotaDecl, PluginManifestWire, PointerScopeWire, Rate, Reliability, ReplicationModeWire, ReplicationWire, ResourceSyncSpecWire, SamplingWire, Schedule, Side, SinkWire, SlotWire, SystemDeclWire, TerrainRecipeWire, ValueKindWire.
overlay-events
Rust Vec<manifold_overlay_protocol::OverlayEvent> · owner enki · versioning track
Shape: list<OverlayEvent>
Sites:
Types it reaches: Axis, ClickPhase, DragPhase, GizmoHandle, OverlayEvent, Transform.
overlay-ops
Rust Vec<manifold_overlay_protocol::OverlayOp> · owner enki · versioning track
Shape: list<OverlayOp>
Sites:
Types it reaches: CellBounds, CellSet, Color, DepthMode, Extent, GhostCells, GizmoHandles, GizmoSpace, GizmoSpec, ImageFacing, ImageFilter, ImageShape, ImageSource, LabelDocument, LabelImage, LabelImagePlacement, LabelLine, LabelRun, LabelSize, LabelTextAlign, LineMode, Modifier, OverlayNode, OverlayOp, Shape, Style, ThemeToken, Transform, ValueWidth.
physics-batch-results
Rust Vec<manifold_physics::api::PhysicsBatchResult> · owner daedalus · versioning track
Shape: list<PhysicsBatchResult>
Sites:
Types it reaches: BlockPos, ConflictKind, ConflictReport, EntityRef, JointRejection, JointStatus, LocArg, LocalizedText, ModId, PendingReason, PhysicsBatchOutcome, PhysicsBatchResult, PhysicsBudget, PhysicsReject, ProtectionCode, Right, SubmitError, TargetKind, TxnReject, ValueCode.
physics-body-state
Rust manifold_physics::api::query::BodyStateView · owner daedalus · versioning envelope, format version 1 (manifold_physics::api::query::BODY_STATE_FORMAT_VERSION); the host reads and writes only this version
Shape: BodyStateView
Sites:
Types it reaches: BodyStateView, EntityRef, Owner.
physics-joint-view
Rust manifold_physics::api::query::JointView · owner daedalus · versioning envelope, format version 1 (manifold_physics::api::query::JOINT_VIEW_FORMAT_VERSION); the host reads and writes only this version
Shape: JointView
Sites:
Types it reaches: EntityRef, JointFlags, JointRejection, JointState, JointStatus, JointView, PendingReason.
physics-op
Rust manifold_physics::api::PhysicsOp · owner daedalus · versioning track
Shape: PhysicsOp
Sites:
Types it reaches: BlockPos, BodyImpulse, ColliderShape, DriveMode, JointBackendHint, JointDrive, JointEnd, JointFrame, JointKind, JointOrigin, JointSoftness, Owner, PhysicsBody, PhysicsBodyKind, PhysicsCollider, PhysicsJoint, PhysicsOp, PhysicsRender, Rotation, Selection, SpawnPrimitive, Target, WorldAnchor, WorldSpaceId.
plugin-command
Rust manifold_ui_protocol::client_plugin::PluginCommand · owner enki · versioning track
Shape: PluginCommand
Sites:
Types it reaches: PluginCommand.
plugin-ui-registration
Rust manifold_ui_protocol::client_plugin::PluginUiRegistration · owner enki · versioning track
Shape: PluginUiRegistration
Sites:
Types it reaches: BindingValueKind, PluginUiRegistration, RecordSchemaWire, UiField, UiFieldSchema.
ray-hit
Rust manifold_overlay_protocol::RayHit · owner enki · versioning track
Shape: RayHit
Sites:
Types it reaches: RayHit.
read-value
Rust manifold_ui_protocol::client_plugin::ReadValue · owner enki · versioning track
Shape: ReadValue
Sites:
Types it reaches: ItemStackView, ReadValue.
reskin-transforms
Rust Vec<manifold_ui_protocol::client_plugin::ReskinTransform> · owner enki · versioning track
Shape: list<ReskinTransform>
Sites:
Types it reaches: FontSpec, FontWeight, HookTarget, ReskinScope, ReskinTransform, TokenValue.
start-context
Rust manifold_mod_types::StartContext · owner contract-foundation · versioning envelope, format version 1 (manifold_mod_types::START_CONTEXT_FORMAT_VERSION); the host reads and writes only this version
Shape: StartContext
Sites:
Types it reaches: StartContext, StartSide.
txn-ops
Rust manifold_mod_types::contract::txn::TxnOp · owner enki · versioning track
Shape: TxnOp
Sites:
Types it reaches: BlobKey, BlockBox, BlockPos, CellTarget, StorageScope, TxnOp, ValueWidth.
txn-results
Rust Vec<manifold_mod_types::contract::txn::TxnResult> · owner enki · versioning track
Shape: list<TxnResult>
Sites:
Types it reaches: BlockBox, BlockPos, ConflictKind, ConflictReport, LocArg, LocalizedText, TxnProgress, TxnReject, TxnResult, TxnStatus, TxnSummary.
ui-event
Rust manifold_ui_protocol::mod_ui::UiEvent · owner enki · versioning track
Shape: UiEvent
Sites:
Types it reaches: BindingValue, ClickButton, ModifierSet, NodeId, UiEvent.
ui-manifest
Rust manifold_ui_protocol::mod_ui::UiManifest · owner enki · versioning envelope, format version 1 (manifold_ui_protocol::mod_ui::UI_MANIFEST_FORMAT_VERSION); the host reads and writes only this version
Shape: UiManifest
Sites:
Types it reaches: ActionDef, Align, Anchor2D, BindingPath, BindingValue, BindingValueKind, ComponentOverride, Direction, DockRegion, DropdownAppend, DropdownOption, DropdownSource, Ellipsis, FieldRef, FocusProps, FocusScope, FontSpec, FontWeight, ImageFit, KeyId, LayerBack, LocalField, MenuItem, Mirror, NamespaceId, NavOverrides, NavTarget, Node, NumberStyle, OverflowWrap, OverrideProperty, Position, Pred, ProgressKind, PromptStyle, Readout, RecordSchemaWire, SegmentOption, ShapeKind, StatusHint, StatusMessage, Stroke, TextArg, TextDir, TextOptions, TextValue, TokenValue, ToolRailItem, UiAuthority, UiField, UiFieldSchema, UiKey, UiManifest, UiRegistrationV2, UiTreeSource, UiValue, ValueRef, ValueSource, Vec2, ViewportPane, ViewportPanes, WorkbenchArea, Wrap.
ui-state-map
Rust manifold_ui_protocol::mod_ui::UiStateMap · owner enki · versioning track
Shape: UiStateMap
Sites:
Types it reaches: BindingValue, FieldId, UiStateMap.
Payload types
Type A11yDeclWire
Accessibility metadata (§7.5).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
toggle | bool | Hold or toggle. | ||
repeat_to_hold | option<tuple<u16, u16>> | yes | (initial_ms, interval_ms) for press-repeatedly → hold. |
Type AccumulationWire
How bindings combine (§8.6).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Any | none | Buttons: reference-counted. | |
| 1 | MaxAbs | none | Axes: the largest magnitude. | |
| 2 | Sum | none | Axes: sum. |
Type ActionDeclWire
Wire form of one input-action declaration (input spec §7.2): the
fully-qualified key and every declaration field. Bindings travel as RON
text, parsed host-side by manifold_input::InputBinding::parse (which
also reads format 2’s Key(code: Space)), so this crate needs no
key-code mirror. Labels, categories and descriptions are implied catalog
keys (§7.4), never strings.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
key | string | Fully-qualified action key, "namespace:local" (e.g. "flagship-game:jump"). | ||
kind | ValueKindWire | The value kind (in the input-action hash for Simulation actions). | ||
scope | ActionScopeWire | Simulation or Local. | ||
contexts | list<string> | Contexts it may be bound in; empty means manifold:gameplay. | ||
defaults | list<DefaultBindingDeclWire> | Default bindings per slot and host. | ||
category | option<string> | yes | Category catalog-key suffix. | |
order | i16 | Menu order within the category. | ||
sampling | SamplingWire | Axis sampling. | ||
accumulation | option<AccumulationWire> | yes | How bindings combine; None takes the kind’s default. | |
consume | bool | Whether a firing binding consumes its source. | ||
a11y | A11yDeclWire | Accessibility metadata. | ||
remappable | bool | Whether the player may rebind it (false only for platform actions). | ||
shares_with | list<string> | Actions it may share a chord with. | ||
command | option<InputCommandKindWire> | yes | The command payload it accepts. | |
processors_ron | list<string> | Action processors, as RON (§8.7). |
Type ActionDef
Action body, postcard-encoded against the UI’s registered Action type.
RON authors typically use the Postcard(<bytes-list>) shape but tooling
will encode/decode this from a higher-level RON form in Slice D.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Postcard | bytes | ||
| 1 | Typed | string, UiValue | Typed authoring: action: Typed("SetReady", true) in RON. Loader looks up the BuiStateType registered for the enclosing Window’s bui_key and instantiates the named variant via the Action’s deserializer; resolves to Postcard at load time. The payload is a closed UiValue so the tree round-trips through postcard (Enki C §13). | |
| 2 | Ron | string | RON-text action for local UIs (B4). Dispatched verbatim through the runtime’s ctx.dispatch closure, which calls the registered LocalUiRegistration::action_decoder for the enclosing local UI. Not lowered at tree-load time — distinct from Typed, which IS lowered to Postcard against a BuiStateType decoder. |
Type ActionScopeWire
Simulation or Local (D9).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Simulation | none | Reaches the server. | |
| 1 | Local | none | Client only. |
Type Align
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Auto | none | align-self only: inherit the container’s align-items. Invalid as an align-items value (treated as Start defensively); resolved away before reaching the egui layout. | |
| 1 | Start | none | ||
| 2 | Center | none | ||
| 3 | End | none | ||
| 4 | Stretch | none |
Type Anchor2D
9-grid screen anchor (DL-504-07). Lowers to egui::Align2 at render
time. Custom positions express via the offset: Vec2 companion on
Node::Anchor.
The Start/End variants are logical: in a right-to-left UI they
resolve to the opposite physical edge and the offset’s x flips sign with
them, so a layout written once mirrors for Arabic or Hebrew. The physical
Left/Right variants never mirror; use them deliberately (minimaps,
compasses, media controls). Variants are append-only (wire order).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | TopLeft | none | ||
| 1 | TopCenter | none | ||
| 2 | TopRight | none | ||
| 3 | CenterLeft | none | ||
| 4 | Center | none | ||
| 5 | CenterRight | none | ||
| 6 | BottomLeft | none | ||
| 7 | BottomCenter | none | ||
| 8 | BottomRight | none | ||
| 9 | TopStart | none | ||
| 10 | TopEnd | none | ||
| 11 | CenterStart | none | ||
| 12 | CenterEnd | none | ||
| 13 | BottomStart | none | ||
| 14 | BottomEnd | none |
Type Axis
An axis.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | X | none | ||
| 1 | Y | none | ||
| 2 | Z | none |
Type BackBehaviourWire
What back does when the context is the top handler (§10.7).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | PassThrough | none | The context below handles it. | |
| 1 | Pop | none | Pop this context. | |
| 2 | Action | string | Press this action instead. |
Type BandWire
Priority bands (§10.3).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Base | none | ||
| 1 | Game | none | ||
| 2 | Tool | none | ||
| 3 | EngineUi | none | ||
| 4 | EngineSystem | none |
Type BindingPath
A parsed but UNRESOLVED binding path (i.e., post-RON-deserialize).
Resolution against the live Bindable registry happens in voxel-ui-runtime.
Deserializes from either a RON struct ((component: "…", field_chain: […]))
or a plain string ("Component.field"). The string form calls
[BindingPath::parse] and surfaces any parse error as a serde error.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
component | string | e.g. “DebugUiTarget” | ||
field_chain | list<FieldRef> | e.g. [“slots”, Index(0)] |
Type BindingValue
Runtime-side typed value produced by a binding accessor.
WIRE-STABLE (C1+): BindingValue is postcard-serialized inside
UiStateMap, whose bytes are golden-locked (tests/golden_mod_ui.rs)
and depended on by mods forever. New variants may only be APPENDED —
never reorder or remove existing variants, as that shifts postcard enum
discriminants and breaks every persisted/replicated UiStateMap.
Host-runtime use must not drive variant ordering.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | U16 | u16 | ||
| 1 | U32 | u32 | ||
| 2 | F32 | f32 | ||
| 3 | Bool | bool | ||
| 4 | Str | string | ||
| 5 | SlotContentsBytes | bytes | ||
| 6 | List | list<BindingValue> | Homogeneous list of values. The corresponding BindingValueKind is List(Box<kind_of_first_element_or_String_if_empty>). | |
| 7 | Record | list<tuple<string, BindingValue>> | A structured element: named fields in declared order. Built at runtime by BindableRecord::to_record; never const. APPEND-ONLY. |
Type BindingValueKind
Discriminator for the type a binding produces. Widgets check this against what they need at load time.
WIRE-STABLE (C1+): BindingValueKind is postcard-serialized inside
UiFieldSchema / UiRegistration, whose bytes are golden-locked
(tests/golden_mod_ui.rs). New variants may only be APPENDED — never
reorder or remove existing variants, as that shifts postcard enum
discriminants and breaks every persisted/replicated UiRegistration.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | U16 | none | ||
| 1 | U32 | none | ||
| 2 | F32 | none | ||
| 3 | Bool | none | ||
| 4 | String | none | ||
| 5 | SlotContentsBytes | none | Postcard-encoded slot contents. The Slot widget decodes per the UI’s registered slot-content type. | |
| 6 | List | u8 | Homogeneous list of values sharing the same inner kind. Stores the inner kind’s discriminant as a u8 to keep BindingValueKind const-evaluable (no Box::new). Use list_inner_kind() to recover the full kind at runtime. Wire format is identical to a hypothetical List(Box<BindingValueKind>) — postcard encodes small u32 varints and u8 as the same single byte for discriminants 0–127. | |
| 7 | Record | none | A record element. Bare marker — the field schema is NOT here; it lives in the record-schema registry, keyed by the element type name carried on the list field’s registration. Const- and serde-safe. APPEND-ONLY. |
Type BlobKey
A blob of the calling mod (storage-types.blob-key). player is the
durable player id (PlayerUuid.0) of a [StorageScope::WorldPlayer]
blob and None for a [StorageScope::World] one.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
scope | StorageScope | |||
player | option<array<u8, 16>> | yes | ||
path | string |
Type BlockBox
A box of blocks, inclusive on both corners: the WIT core/types.block-box.
min is not required to be the lesser corner on the wire; consumers
normalise with [BlockBox::normalized].
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
min | BlockPos | |||
max | BlockPos |
Type BlockDefWire
Wire form of one block definition: the block’s RON text, parsed host-side
by the SAME manifold_world::block_loader parser the native path used, so
BlockProperties (and the handshake hash) are byte-identical. Carrying raw
RON (not a structured mirror) keeps manifold-mod-types free of any
manifold-world dependency and eliminates field-mapping divergence.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
ron | string |
Type BlockPos
A block position: the WIT core/types.block-pos. World coordinates for
[VolumeRef::World], grid-local ones for [VolumeRef::Assembly].
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
x | i32 | X. | ||
y | i32 | Y. | ||
z | i32 | Z. |
Type BodyImpulse
One apply-impulse: a linear impulse, optionally at a world point, and
an angular impulse. Impulses always wake the body. The op’s payload
(G §5.3): the point is a world position, so it crosses as f64
(G §5.2).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
linear | array<f32, 3> | |||
point | option<array<f64, 3>> | yes | World-space point the linear impulse acts at; the centre of mass when None. | |
angular | array<f32, 3> |
Type BodyStateView
The body-state schema payload (G §5.6): a live body’s state. An
envelope payload: it grows by a new [BODY_STATE_FORMAT_VERSION].
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
format_version | u16 | [BODY_STATE_FORMAT_VERSION] when written by this host. | ||
body | EntityRef | |||
position | array<f64, 3> | World position, composed in f64 from the region origin. | ||
rotation | array<f32, 4> | |||
linear | array<f32, 3> | m/s. | ||
angular | array<f32, 3> | rad/s. | ||
sleeping | bool | |||
owner | Owner | |||
mechanism | option<EntityRef> | yes | C’s mechanism the body belongs to; None until C names mechanisms. | |
rung | u8 | The body’s region rung on A’s budget ladder (0 until it lands). |
Type CellBounds
An inclusive box of cells in a node’s local space: cell (x, y, z)
occupies [x, x + 1] × [y, y + 1] × [z, z + 1].
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
min | array<i32, 3> | |||
max | array<i32, 3> |
Type CellSet
The cells of a voxel-outline shape.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Bits | { bounds: CellBounds, bits: bytes } | One bit per cell of bounds, in buffer order (x fastest, then y, then z): cell i is bit i % 8 of byte i / 8. bits holds exactly ceil(volume / 8) bytes. | |
| 1 | Sparse | { cells: list<array<i32, 3>> } | The listed cells. |
Type CellTarget
Which per-cell plane an op writes: the solid value, or one of Enki A’s layers (fluid, overlay), validated against A’s layer rules.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Solid | none | ||
| 1 | Layer | u32 |
Type ChannelDecl
One channel declaration (§4.1).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
name | string | The channel’s name, unique within the mod: [a-z0-9_-], at most [MAX_CHANNEL_NAME_BYTES]. | ||
direction | ChannelDirection | |||
reliability | Reliability | |||
max_message_bytes | u32 | Largest message the mod sends on this channel, clamped to [INLINE_HARD_CAP_BYTES] and the server’s configuration. | ||
rate | Rate | |||
requires | option<string> | yes | A permission node a client sender must hold; messages from senders without it are dropped before the guest sees them (§4.3). | |
message | option<string> | yes | The name of the message type the channel carries (the SDK’s ModMessage::NAME), which describes its opaque payloads (contract foundation §11.1). Descriptive only: the host never decodes a payload. Last, so declarations without it keep their layout. |
Type ChannelDirection
Which half sends on a channel.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | ClientToServer | none | ||
| 1 | ServerToClient | none | ||
| 2 | Both | none |
Type ClickButton
Which mouse button drove a slot click. Append-only (postcard variant index).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Left | none | ||
| 1 | Right | none |
Type ClickPhase
A click’s phase.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Press | none | ||
| 1 | Release | none | The button that pressed on the node was released, wherever the pointer is. |
Type ColliderShape
Collider geometry in body-local coordinates.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Cuboid | { half_extents: array<f32, 3> } | ||
| 1 | Sphere | { radius: f32 } | ||
| 2 | CapsuleY | { half_height: f32, radius: f32 } |
Type Color
A literal colour or a theme token.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Srgba8 | array<u8, 4> | sRGB with straight alpha, as authored (#e8c547 is [0xe8, 0xc5, 0x47, 255]). | |
| 1 | Linear | array<f32, 4> | Linear RGB with straight alpha, as the renderer consumes it. | |
| 2 | Token | { token: ThemeToken, alpha: u8 } | A theme colour with the given alpha. |
Type CommandKindWire
Whether a declared command node is a terminal leaf or an interior branch.
has_root_exec = the branch is also invocable bare (like /time printing
the current time). (M4c-3)
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Leaf | none | ||
| 1 | Branch | { has_root_exec: bool } |
Type CommandLeafWire
A command leaf in [ModDeclarations::commands_server] and
[ModDeclarations::commands_client].
Wasm guests cannot provide fn pointers for command execution; the exec
fn pointer in the native Leaf<Exec> is replaced by a system id that the
host can use to call run-system when the command fires.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
path | list<string> | Full command path tokens (e.g. ["time", "set"]). | ||
help | string | Help text for the command. | ||
system_id | u32 | System-id to invoke when this command runs (maps to run-system). |
Type CommandNodeWire
Wire form of ONE node in a guest’s command tree. The host folds these into
its ServerCommandRegistry as ServerExec::Guest nodes (faithful tree:
per-node perm/help preserved, host keeps resolution + introspection).
A flat node list reconstructs the tree (the host builds intermediate
branches as needed). (M4c-3)
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
path | list<string> | Full path from the registry root, e.g. ["time"] or ["time","set"]. | ||
kind | CommandKindWire | |||
perm | PermissionLevelWire | |||
help | string | |||
usage | option<string> | yes |
Type CommandPayload
A command’s payload; its kind must match the action’s declared
[manifold_engine::CommandKind].
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Target | { entity: NetBinding } | An entity, by id and binding generation, so a late or redundant command cannot hit a recycled id: a binding the player’s client no longer holds with that generation names no entity (Daedalus E §4.2). | |
| 1 | Point | { pos: array<f32, 3> } | ||
| 2 | TargetPoint | { entity: NetBinding, pos: array<f32, 3> } | ||
| 3 | Slot | { index: u16 } | ||
| 4 | Bytes | list<u8> | Mod-defined, postcard; at most [MAX_COMMAND_BYTES]. |
Type ComponentDeclWire
Wire form of one novel guest-authored component declaration.
local_id is the component’s UNqualified local name (e.g. "mana"); the host
composes the fully-qualified key by prefixing the declaring plugin’s authenticated
id during the fold (→ "<plugin>:mana"). Declaring is a trust surface — carrying
only the local id makes it impossible for a guest to forge a component in another
mod’s namespace (e.g. claiming manifold-sim:position). This mirrors the
host-composed-namespace pattern used for entity archetypes and UI keys, in contrast
to references (EntityArchetypeWire.component_keys / novel_defaults) which point
at already-registered keys and so carry the fully-qualified form.
schema carries field names AND kinds in layout order (see FieldSchemaWire).
replication controls how the host replicates this component to clients.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
local_id | string | Unqualified local component name (e.g. "mana"); host composes the namespace. | ||
schema | list<FieldSchemaWire> | Ordered field layout. Position determines postcard byte offset. | ||
replication | ReplicationWire |
Type ComponentOverride
One path-keyed override targeting a node (by id) in the named definition.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
target | string | id of the target node inside the definition (its OWN direct nodes only). | ||
property | OverrideProperty |
Type ConflictKind
Why a revert or reapply refused to write.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Changed | none | Another player or process changed cells since the record was made (compare-and-set against the recorded values failed). | |
| 1 | Unmappable | none | The record names block states this server’s registry cannot hold exactly (a type lost the orientation or properties it recorded), so writing them would place a different block. |
Type ConflictReport
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
kind | ConflictKind | |||
cells | u64 | Cells that failed the check. | ||
sample | list<BlockPos> | Up to [CONFLICT_SAMPLE_MAX] of them, in record order. |
Type ContextDeclWire
A context declaration (§10.1, §15.1).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
id | string | namespace:local. | ||
kind | ContextKindWire | Base or layer. | ||
band | BandWire | The band. | ||
priority | u16 | Priority within the band. | ||
sink | SinkWire | Unbound controls it consumes. | ||
sink_pointer | PointerScopeWire | Where its pointer sink applies. | ||
cursor | CursorModeWire | The cursor it asks for. | ||
exclusive | bool | Its owner alone sees its actions. | ||
active_while | option<string> | yes | A Button action; the layer applies only while it is held. | |
never_with | list<string> | Contexts it is never stacked with. | ||
blocks | list<string> | Actions released and suppressed while it is effective. | ||
back | BackBehaviourWire | What back does. |
Type ContextKindWire
Base or layer.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Base | none | ||
| 1 | Layer | none |
Type CursorModeWire
The cursor a context asks for.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Grabbed | none | ||
| 1 | Free | none | ||
| 2 | Inherit | none |
Type DefaultBindingDeclWire
One default binding.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
slot | SlotWire | The slot. | ||
binding_ron | string | The binding, as RON (§8.1). | ||
host | DefaultHostWire | The host it applies to. |
Type DefaultHostWire
The host a default applies to (D38).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Any | none | ||
| 1 | Native | none | ||
| 2 | Browser | none |
Type DepthMode
How a node is depth-tested against the scene.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Occluded | none | Normal depth test against the scene. | |
| 1 | Always | none | Drawn over the scene. | |
| 2 | XRay | none | Visible parts drawn normally; hidden parts drawn dimmed. |
Type Direction
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Horizontal | none | ||
| 1 | Vertical | none |
Type DockRegion
A fixed dock region of a workbench.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
size | f32 | |||
resizable | bool | yes | A splitter whose position persists for the player. | |
content | Node |
Type Domain
A platform domain a system may declare access to: the owning program’s interfaces past the generic resource bundle. Closed: a newer guest’s unknown domain fails to decode, so the mod is refused at load and a typo fails loudly. Append-only; the variant order is the wire order.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Physics | none | Daedalus G’s manifold:physics/physics. | |
| 1 | Blocks | none | Enki B’s block-read and block-transaction. | |
| 2 | Entity | none | Talos G’s manifold:entity/entity. | |
| 3 | Animation | none | Pygmalion H’s manifold:model/animation. | |
| 4 | Gameplay | none | Talos G’s manifold:entity/gameplay. | |
| 5 | Ai | none | Talos G’s manifold:entity/ai. |
Type DomainAccess
One system’s declared access to a [Domain]. write implies read.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
domain | Domain | |||
read | bool | |||
write | bool |
Type DragPhase
A drag’s phase.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Start | none | ||
| 1 | Update | none | ||
| 2 | End | none | The button was released: commit proposed. | |
| 3 | Cancel | none | The drag ended without a result (the gizmo vanished). |
Type DriveMode
What a drive does.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Off | none | ||
| 1 | Velocity | { target: f32 } | Constant speed: m/s or rad/s. | |
| 2 | Servo | { target: f32, max_speed: f32, max_accel: f32 } | Profiled move to a target at bounded speed and acceleration, then hold. | |
| 3 | Spring | { target: f32, frequency_hz: f32, damping_ratio: f32 } | Raw spring-damper toward a position, mass-independent gains (C1). | |
| 4 | Length | { target: f32, speed: f32 } | Rope and winch only: change the rope length toward target at speed (C1). |
Type DropdownAppend
Options a Dropdown takes from the engine rather than its author.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | None | none | ||
| 1 | Languages | none | Every installed language, named in itself, valued by its BCP 47 tag. Tags already among the authored options are skipped. |
Type DropdownOption
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
label | TextValue | |||
value | UiValue |
Type DropdownSource
Where a Dropdown reads its options when they are not written in the
document (Enki C §3.13): a bound list of records.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
list | BindingPath | |||
key_field | string | |||
label_field | string |
Type Ellipsis
What is shown when text is cut by max_lines.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | End | none | End the last visible line with “…”. | |
| 1 | Clip | none | Cut without a mark. |
Type EngineRequests
Engine-feature requests in [ModDeclarations]. A new request is a new
field under a new declarations format version, not a WIT change.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
disable_sky | bool | Disable the engine’s default sky. |
Type EntityArchetypeWire
Wire form of one entity-archetype declaration: the archetype’s local id
(namespaced to the declaring plugin host-side) plus the fully-qualified
component keys ("namespace:local") it is composed of. The component keys
REFERENCE library components (e.g. manifold-sim:position); this wire does
NOT carry field schemas for native components (those stay native — F3 Slice A
scope). For NOVEL guest components, novel_defaults carries the per-component
postcard-encoded default value that is attached when an entity of this
archetype is spawned (mirrors ResourceDeclWire.default_bytes).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
local_id | string | |||
component_keys | list<string> | |||
novel_defaults | list<tuple<string, list<u8>>> | yes | Per-novel-component (fully-qualified key, postcard default_bytes) for archetype-declared attachment. Present only for novel (guest-authored) components; native component keys in component_keys do not appear here. #[serde(default)] so older v5 payloads decode cleanly with an empty vec. |
Type EntityRef
An entity: its session handle and its durable id. The same shape as
Daedalus G’s BodyRef and the same postcard layout as the
manifold_anim::api::EntityRef it replaced.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
entity | u64 | Session handle (Entity::to_bits). Cheap; invalid after a restart. Zero when unknown. | ||
id | u64 | The durable id (PersistentEntity.id): stable across saves and restarts and never reused. Zero when the entity has none. Never a SpawnId, which is valid only within one process run. |
Type EventDeclWire
Wire form of an event declaration.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
type_id | u64 | |||
side | Side | |||
capacity | u32 | Ring-buffer capacity. Default per spec is 64. |
Type Extent
A local-space box: where FACES handles sit.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
min | array<f32, 3> | |||
max | array<f32, 3> |
Type FieldId
Tuple struct: (u16).
Type FieldKindWire
Primitive field kinds that a novel guest component may expose via
#[derive(HasSchemaValue)]. This is a postcard-friendly mirror of the
manifold_engine::FieldKind v1 primitive subset (D6).
Composite variants (List, Struct) are intentionally absent: the guest
derive pre-lowers glam vectors (e.g. Vec3 → three F32 fields pos.x/.y/.z)
and fieldless C-like enums (→ one U8 field discriminant) into primitives
before emitting the schema, so composite kinds never reach the wire in v1
(decision-critic C3 finding). Composites are deferred to a future slice.
This enum is defined here (not by importing manifold_engine::FieldKind)
because manifold-mod-types depends on serde only and must remain free of
any manifold-engine dep.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | U8 | none | ||
| 1 | U16 | none | ||
| 2 | U32 | none | ||
| 3 | U64 | none | ||
| 4 | I8 | none | ||
| 5 | I16 | none | ||
| 6 | I32 | none | ||
| 7 | I64 | none | ||
| 8 | F32 | none | ||
| 9 | F64 | none | ||
| 10 | Bool | none | ||
| 11 | String | none |
Type FieldRef
One segment of a binding path. Slice A supports field access and array indexing; deeper structures wait until Slice B+.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Field | string | ||
| 1 | Index | u32 |
Type FieldSchemaWire
One field in a novel component’s schema.
Field NAMES are carried on this in-process wire (contrast with the
network handshake hash, where names are NOT transmitted and each peer
reconstructs the schema from its own local mod copy). Names are required
here because the host interprets fields by name for the
/component <e> get <key>.<field> command (D2) and the dynamic codec
(§3.4). The ORDERED list is the layout contract: index position
determines postcard byte offset.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
name | string | |||
kind | FieldKindWire |
Type FocusProps
A node’s part in directional focus navigation.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
focusable | option<bool> | yes | None: true for interactive widgets, false otherwise. | |
default_focus | bool | yes | Takes focus when its layer or scope is entered. | |
nav | NavOverrides | yes | Per-direction overrides of the spatial search. Boxed so the field, which every node carries, stays small; serde is unaffected. | |
scope | option<FocusScope> | yes | When set, this node’s children form a focus scope. |
Type FocusScope
A focus scope: how navigation behaves among a node’s children.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
wrap | Wrap | yes | ||
remember_last | bool | yes | Re-entering the scope restores the child that last had focus. | |
grid | bool | yes | Children are laid out in rows and columns (inventories, grids). |
Type FontSpec
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
family | string | |||
size_px | f32 | |||
weight | FontWeight |
Type FontWeight
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Light | none | ||
| 1 | Regular | none | ||
| 2 | Medium | none | ||
| 3 | SemiBold | none | ||
| 4 | Bold | none |
Type GhostCells
The cells of a ghost-blocks shape: a pending edit’s block values.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Dense | { bounds: CellBounds, width: ValueWidth, values: bytes, skip: u32 } | A cell buffer over bounds (Enki B §0: buffer order, little-endian values of width bytes, volume * width bytes); cells holding skip are empty. | |
| 1 | Sparse | { cells: list<tuple<array<i32, 3>, u32>> } | The listed cells and their values. |
Type GizmoHandle
One handle of a gizmo.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Axis | Axis | Translate along the axis. | |
| 1 | Plane | Axis | Translate in the plane normal to the axis. | |
| 2 | Centre | none | Translate in the view plane. | |
| 3 | Ring | Axis | Rotate about the axis. | |
| 4 | Scale | Axis | Scale along the axis. | |
| 5 | Face | { axis: Axis, max: bool } | Move the extent’s face on the axis (its greater one when max). |
Type GizmoHandles
A gizmo’s handle set (Enki B §5.4), one bit per kind.
Tuple struct: (u16).
Type GizmoSpace
The axes a gizmo’s handles follow.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | World | none | ||
| 1 | Local | none | The node’s rotation. |
Type GizmoSpec
A gizmo node’s configuration (Enki B §5.4). The engine hit-tests and drags its handles every frame and proposes a new transform for the gizmo node; the owner decides at tick rate.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
handles | GizmoHandles | |||
space | GizmoSpace | |||
translate_step | f32 | Translation and face snapping, in blocks; 0 = free. | ||
rotate_step_deg | f32 | Rotation snapping, in degrees; 0 = free. | ||
scale_step | f32 | Scale snapping, in scale units; 0 = free. | ||
coarse_modifier | option<Modifier> | yes | Held, the coarse steps below apply (e.g. Ctrl: 1 block, 15°). | |
coarse_translate_step | f32 | |||
coarse_rotate_step_deg | f32 | |||
free_modifier | option<Modifier> | yes | Held, nothing snaps (e.g. Shift). | |
size_px | f32 | The handles’ constant screen size, in pixels. | ||
extent | option<Extent> | yes | The box FACES handles sit on, in the gizmo node’s local space; the other handles centre on it. None: handles centre on the origin and FACES has none. | |
attached | list<u32> | The owner’s nodes drawn with the proposed transform while a handle is dragged (each mapped through the gizmo’s start and proposed transforms), so a drag shows at frame rate. At most [MAX_GIZMO_ATTACHED]. |
Type HookPolicy
Per-layer hook policy authored by the trusted HUD author.
serde(default) means existing RON files with no hook_policy field get
a fully-hookable policy — no migration required.
Security model: locked: true is the hard floor — it rejects every transform
(reskin, move, hide). A non-locked layer grants/denies individual op types
via the per-op flags. reskin: false is the only honest concealment-protection
(see spec §4.3 — opacity floors are defeated by color-match and font-0).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
locked | bool | yes | Hard floor: when true, every transform is rejected regardless of per-op flags. | |
reskin | bool | yes | Whether reskin transforms are permitted. false is the only concealment-safe setting. | |
move_ | bool | yes | Whether Move ops are permitted. | |
hide | bool | yes | Whether Hide ops are permitted. |
Type HookTarget
Identifies what a transform targets. anchor is the forward-compat seam for
C2b-b in-tree augment/inject; C2b-a always sets it to None.
WIRE-STABLE: new fields may only be appended.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
layer | string | HudLayerDef key, e.g. "flagship:block_indicator". | ||
anchor | option<string> | yes | Reserved for C2b-b in-tree augment/inject. Always None in C2b-a. |
Type HostResourceDeclWire
Wire form of one guest-declared HOST-side resource (#55 Slice 1).
Distinct from [ResourceDeclWire] (the guest-PRIVATE store path): a host
resource is created in the server world’s DynResources bag at world-ready,
bridged for the guest’s systems, and (Slice 2) replicated. local_id is the
UNqualified name — the host composes "<plugin>:<local>" and derives the
type_id, so a guest cannot forge another mod’s namespace (trust parity with
ComponentDeclWire). No schema field: host resources are opaque bytes; field
schema is deferred with composite-schema support (Slice-2+).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
local_id | string | |||
replication | ReplicationWire | |||
default_bytes | bytes | Postcard-encoded default value (guest’s T::default() thunk). |
Type ImageFacing
How an image node faces.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Fixed | none | A quad in the node’s local XY plane, facing local +Z. | |
| 1 | BillboardY | none | Turned towards the camera about the world Y axis. | |
| 2 | Billboard | none | Turned towards the camera. |
Type ImageFilter
How an image is sampled.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Nearest | none | ||
| 1 | Linear | none |
Type ImageFit
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Fit | none | ||
| 1 | Fill | none |
Type ImageShape
An image node: a quad textured with an image the owner registered.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
image | u32 | |||
size | array<f32, 2> | Width and height, in blocks, centred on the node’s origin. | ||
facing | ImageFacing | |||
opacity | f32 | 0..=1. | ||
filter | ImageFilter | |||
uv | array<f32, 4> | The part of the image drawn: [u0, v0, u1, v1], 0..=1, v down. |
Type ImageSource
Where a registered image’s pixels come from (Enki B §5.2).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Asset | string | A PNG or JPEG in the owner’s asset bundle, by path in it. | |
| 1 | Local | string | A file in the owner’s local-files store (Enki B §7). | |
| 2 | Encoded | bytes | PNG or JPEG bytes the owner holds. |
Type InputCommandKindWire
The command payload an action accepts (§13.6).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Target | none | ||
| 1 | Point | none | ||
| 2 | TargetPoint | none | ||
| 3 | Slot | none | ||
| 4 | Bytes | none |
Type InputRoleBindingWire
One (role, action-name) binding declared by the guest. The host resolves
action_name against the InputActionRegistry built from the same manifest.
M4c-4b.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
role | InputRoleWire | The semantic role this binding covers. | ||
action_name | string | Fully-qualified action name, e.g. "flagship-game:jump". |
Type InputRoleWire
Wire mirror of manifold_engine::InputRole. Closed enum — the set of roles
platform machinery consumes. Kept in this crate so manifold-mod-types
stays free of a manifold-engine dep (same rule as FieldKindWire / Side).
M4c-4b.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Jump | none | Jump action. | |
| 1 | ToggleFlight | none | Toggle flight mode. | |
| 2 | Move | none | Horizontal movement, an Axis2D action (input spec §14.2). | |
| 3 | MoveVertical | none | Vertical movement, an Axis1D action. | |
| 4 | Sneak | none | Sneak / crouch. | |
| 5 | Sprint | none | Sprint. | |
| 6 | DebugSpeed | none | Debug speed multiplier (10×). | |
| 7 | Break | none | Break / mine the targeted block. | |
| 8 | Place | none | Place a block. | |
| 9 | Interact | none | Interact with the targeted entity or block. | |
| 10 | PushToTalk | none | Hold to transmit voice chat. Appended: postcard variant order is wire. | |
| 11 | OpenInventory | none | Toggle the player’s own inventory window. Appended: postcard variant order is wire. |
Type ItemStackView
Compact view of a single item stack, sufficient for overlay rendering.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
item_id | u32 | |||
count | u16 |
Type JointBackendHint
The solver backend the planner should prefer (§5.1).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Auto | none | ||
| 1 | Impulse | none | ||
| 2 | Multibody | none |
Type JointDrive
A drive powers the joint’s one driven coordinate (§4.3). A separate component, so control changes it without touching the descriptor and a drive change never replans.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
mode | DriveMode | |||
max_force | f32 | Newtons (slider, rope, spring) or newton-metres (hinge). Required; there is no “infinite” drive. |
Type JointEnd
One end of a joint.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Body | { frame: JointFrame } | The body is the target of this end’s relationship: [JointA] for a, [JointB] for b. | |
| 1 | World | { anchor: WorldAnchor } | Fixed to the world at anchor. |
Type JointFlags
Joint readback: bit set of [JointState::flags].
Tuple struct: (u16).
Type JointFrame
A frame in the body’s local frame. For an assembly this is B’s grid-local frame, in which blocks never move; for a primitive body it is the body frame (§3.2).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
origin | array<f32, 3> | |||
rotation | array<f32, 4> | Maps the joint’s principal axis (+X) and secondary axis (+Y). | ||
cell | option<array<i32, 3>> | yes | The block that carries this end, for block-face anchors; None on primitive bodies. |
Type JointKind
The creator vocabulary (§4.1). Angles in radians, lengths in metres.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Fixed | none | ||
| 1 | Hinge | { limits?: option<array<f32, 2>> } | ||
| 2 | Slider | { limits?: option<array<f32, 2>> } | ||
| 3 | Ball | { twist?: option<array<f32, 2>>, swing_y?: option<array<f32, 2>>, swing_z?: option<array<f32, 2>> } | ||
| 4 | Rope | { length: f32, min_length: f32 } | ||
| 5 | Spring | { rest_length: f32, stiffness: f32, damping: f32, limits?: option<array<f32, 2>> } | ||
| 6 | KeepUpright | { strength_hz: f32, damping_ratio: f32 } | ||
| 7 | NoCollide | none |
Type JointOrigin
Who created a joint and why.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Authored | none | Toolgun, console, mod. | |
| 1 | Block | { template: string } | A mechanical block (§8), by template id. | |
| 2 | Connector | none | A docking lock (§8.5). | |
| 3 | Ragdoll | none | A Pygmalion ragdoll (§4.8). |
Type JointRejection
Why a joint is not simulated and will not be retried until it changes.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | InvalidEnds | none | a is not a body end, or both ends name the same body. | |
| 1 | CrossSpace | none | Both bodies and the joint are not in one world space. | |
| 2 | InvalidFrame | none | A frame is non-finite, not normalised, or too far from its body. | |
| 3 | InvalidLimits | none | Limits are non-finite or inverted. | |
| 4 | InvalidDrive | none | Drive values are non-finite, negative or above the ceiling. | |
| 5 | BodyJointBudget | none | A body already carries max_joints_per_body joints. | |
| 6 | Budget | none | The world space holds max_joints joints. | |
| 7 | EndpointUnavailable | none | A body end did not become simulated within pending_ticks. | |
| 8 | Unsupported | none | The kind or drive mode is not built yet (C0 builds the slider with Off, Velocity and Servo drives). |
Type JointSoftness
Softness of the locked axes, as Rapier’s spring coefficients (§5.4).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
natural_frequency | f32 | |||
damping_ratio | f32 |
Type JointState
Joint readback (§4.7), stored as Tracked<JointState>: the sensor logic
and tools read. Written only when a value moves by more than its quantum.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
position | f32 | Slider metres; hinge unwrapped radians; rope/spring distance. | ||
velocity | f32 | |||
drive_force | f32 | Applied drive force or torque, calibrated (N or N·m). | ||
load_force | f32 | Constraint load on the locked linear axes, limits and linear motors, calibrated (N). Measured from C1 (breakage); 0 until then. | ||
load_torque | f32 | The same on the angular axes (N·m); 0 until C1. | ||
flags | JointFlags | |||
turns | i32 | Hinge only: whole turns, persisted so unwrapped angles survive a restart. |
Type JointStatus
A joint’s runtime status.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Pending | { reason: PendingReason, since: u64 } | Valid, waiting to be simulated since tick since. | |
| 1 | Active | none | Simulated. | |
| 2 | Unresolved | none | A body end’s target is not loaded (RelTarget { entity: None, .. }): kept, re-saved and relinked when the body spawns (§10.3). | |
| 3 | Rejected | JointRejection |
Type JointView
The joint-state schema payload (G §5.2, §5.6): a joint’s runtime
status and C’s last-step state. An envelope payload: it grows by a new
[JOINT_VIEW_FORMAT_VERSION].
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
format_version | u16 | [JOINT_VIEW_FORMAT_VERSION] when written by this host. | ||
joint | EntityRef | |||
status | JointStatus | Pending, active, unresolved or rejected with the reason. | ||
state | option<JointState> | yes | The last step’s position, velocity, drive force and load; None while the joint is not simulated. |
Type KeyId
Tuple struct: (u32).
Type LabelDocument
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
lines | list<LabelLine> | |||
image | option<LabelImage> | yes | ||
text_align | LabelTextAlign | |||
image_placement | LabelImagePlacement |
Type LabelImage
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
address | string | Namespaced icon address, e.g. flagship:cog. | ||
size | array<f32, 2> | Requested display extent in logical points. |
Type LabelImagePlacement
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | left | none | ||
| 1 | right | none | ||
| 2 | above | none | ||
| 3 | below | none |
Type LabelLine
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
runs | list<LabelRun> |
Type LabelRun
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
text | string | |||
color | array<u8, 4> | |||
size | LabelSize | |||
bold | bool | |||
italic | bool |
Type LabelSize
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | small | none | ||
| 1 | body | none | ||
| 2 | large | none |
Type LabelTextAlign
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | left | none | ||
| 1 | center | none | ||
| 2 | right | none |
Type LayerBack
What manifold:system.back does while this layer (a Window or a
Workbench) is on top.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Close | none | Close the layer (a server-authority UI dispatches Closed, as today). | |
| 1 | Parent | none | Go up one level of the window’s nested pages. | |
| 2 | Action | ActionDef | Dispatch this action instead of closing. |
Type LayoutOp
Move or hide a HUD layer.
WIRE-STABLE: new variants may only be appended.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Hide | none | ||
| 1 | Move | { anchor: Anchor2D, offset: array<f32, 2> } | Move to anchor with offset. Offset is range-validated at submit and clamped to screen rect at apply (anti-layout-DoS). |
Type LayoutTransform
One layout transform: move or hide. #[non_exhaustive] so C2b-b ops can append.
WIRE-STABLE: new fields may only be appended.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
target | HookTarget | |||
op | LayoutOp |
Type LimitDecl
One [[limits]] entry (§8.7): per-level defaults and the ceiling for
server configuration and the local host.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
name | string | |||
default_player | i64 | |||
default_admin | i64 | |||
max | i64 |
Type LineMode
How a lines shape’s points pair up.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Strip | none | A polyline through every point in order. | |
| 1 | Segments | none | Independent segments: points 2k and 2k + 1. |
Type LocArg
A typed message argument. Each type is formatted for the reader’s locale when the message is resolved.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Str | string | Untranslated text: user input, a proper name, a file path. Always bidi-isolated when substituted. | |
| 1 | Int | i64 | An integer, formatted per locale and usable as a plural selector. | |
| 2 | Float | f64 | A decimal number, formatted per locale. | |
| 3 | Key | string | Another message, resolved (without arguments) in the reader’s language. | |
| 4 | Text | LocalizedText | Another message with its own arguments. | |
| 5 | Item | string | A namespaced item or block id (flagship:dirt). Resolves to that item’s display name in the reader’s language. | |
| 6 | Player | string | A player’s display name. User text: isolated, never translated. | |
| 7 | DurationMs | u64 | A duration in milliseconds. | |
| 8 | TimestampMs | i64 | A point in time, milliseconds since the Unix epoch (UTC). | |
| 9 | Currency | { minor: i64, code: string } | A currency amount in minor units (cents) with its ISO 4217 code. |
Type LocalField
One field of a [Node::LocalState] scope: client-only view state,
addressed inside the scope as Local.<name> (Enki C §2.2).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
name | string | |||
kind | BindingValueKind | |||
default | BindingValue | |||
persist | bool | yes | Persist per player through the client settings store. Not available yet: a document that sets it is refused at load (Enki C issue 13). |
Type LocalizedText
A message for display to a player: a catalog key plus named arguments.
Arguments are named, as Fluent expects, so translators can reorder them. The wire form is positional (postcard); field order is part of the protocol.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
key | string | Namespaced key, <mod_id>.<segment>(.<segment>)*. See [key]. | ||
args | list<tuple<string, LocArg>> | Named arguments, in the order the sender supplied them. |
Type MenuItem
A menu entry (Enki C §3.3). Defined complete with the P0 break because
PaneHeader carries a menu; menus themselves arrive with C6.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Item | { id: string, label: TextValue, shortcut?: option<string>, checked?: option<BindingPath>, enabled_when?: option<Pred>, action?: option<ActionDef> } | The larger fields are boxed to keep the enum small; serde is unaffected. | |
| 1 | Submenu | { label: TextValue, items: list<MenuItem> } | ||
| 2 | Separator | none | ||
| 3 | DockPanels | { dock_id: string } | One checkable item per panel of a DockSpace, plus the layout commands. |
Type Mirror
Whether a node’s horizontal layout mirrors in a right-to-left UI.
Auto (the default) mirrors logical terms (Start/End anchors, start/
end insets) and lays horizontal containers out from the start edge.
Never keeps left-to-right order and pins logical terms to their
left-to-right meaning; it also records that a physical term is deliberate,
which silences ui-validate’s mirroring warning.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Auto | none | ||
| 1 | Never | none |
Type ModDeclarations
Everything a mod declares: the plugin-lifecycle.declarations() payload.
Pure and side-independent: the SDK builds it from the registrations
Plugin::build makes, calls no import but logging, and returns the same
bytes on every instance and side. The host reads it once per instance.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
format_version | u16 | [DECLARATIONS_FORMAT_VERSION] when written by this SDK. | ||
start_context_version | u16 | The [StartContext] format version this mod’s SDK decodes. The host encodes the context it passes to start at this version. | ||
shared | list<PluginManifestWire> | Side-less declarations (blocks, actions, archetypes) and those of either side. One entry per plugin in the component. | ||
server | list<PluginManifestWire> | Server-side declarations: the server instance’s systems, resources and events. | ||
client | list<PluginManifestWire> | Client-side declarations. | ||
commands_server | list<CommandLeafWire> | Server command leaves. | ||
commands_client | list<CommandLeafWire> | Client command leaves. | ||
synced_resources | list<ResourceSyncSpecWire> | Server-to-client sync specs, by index into the host’s table. | ||
engine | EngineRequests | Engine-feature requests. | ||
permissions | ModPermissions | The mod’s permission declarations (Enki B §8.2): the platform nodes its own (mod-self) operations use, the nodes it declares in its own namespace, and its limits. Written in mod.toml ([permissions], [[limits]]); #[mod_entry] bakes them in at build time. | ||
channels | list<ChannelDecl> | The mod’s message channels between its halves (Enki B §4.1), in declaration order: a channel’s position is its number in the mod. Both sides derive the same wire handles from these. |
Type ModId
A mod’s id on the wire: the validated identifier
(manifold_engine::identity::ModId) as a plain string.
Tuple struct: (string).
Type ModPermissions
A mod’s permission declarations: [permissions] uses,
[[permissions.declare]] and [[limits]] (§8.2), and its [physics]
quota request (Daedalus G §6.3), which travels the same path.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
uses | list<string> | Platform nodes this mod’s own (mod-self) operations need, shown to the operator with its imports. | ||
declare | list<PermissionDecl> | |||
limits | list<LimitDecl> | |||
physics | PhysicsQuotaDecl | [physics]: the mod’s physics quotas. |
Type Modifier
A modifier key.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Shift | none | ||
| 1 | Ctrl | none | ||
| 2 | Alt | none | ||
| 3 | Meta | none |
Type ModifierSet
Tuple struct: (u8).
Type NamespaceId
Tuple struct: (u32).
Type NavOverrides
Overrides of where each direction moves focus. Left and right are resolved after mirroring, so an override written for a left-to-right UI stays correct in a right-to-left one.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
up | NavTarget | yes | ||
down | NavTarget | yes | ||
left | NavTarget | yes | ||
right | NavTarget | yes |
Type NavTarget
Where one direction moves focus.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | None | none | The spatial search decides. | |
| 1 | Node | string | The node with this id in the same document. ui-validate rejects an unknown id. | |
| 2 | Stop | none | Focus does not leave in this direction. |
Type NetBinding
The wire identity of an entity for one client (Daedalus E §4.2): its
per-client net id and the generation of the allocation that id
currently names, so a late message about a recycled id can be told
apart. Motion records carry the generation’s low [GEN_BITS] bits;
topology commands and spawns carry all eight.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
net_id | NetEntityId | |||
generation | u8 |
Type NetEntityId
Per-client wire identity for an entity. Server assigns one per (client, spawn) pair; the space is per-connection so u32 is sufficient.
Tuple struct: (u32).
Type Node
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Window | { title: TextValue, bui_key: UiKey, closeable: bool, draggable: bool, root: Node, resizable?: bool, width?: option<f32>, height?: option<f32>, min_width?: option<f32>, min_height?: option<f32>, position?: option<Position>, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, id?: option<string>, focus?: FocusProps, back?: LayerBack } | ||
| 1 | Box | { direction: Direction, spacing: f32, align: Align, children: list<Node>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | ||
| 2 | Label | { text: TextValue, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, id?: option<string>, focus?: FocusProps } | ||
| 3 | ProgressBar | { value: ValueSource, kind: ProgressKind, direction: Direction, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | ||
| 4 | Button | { label: TextValue, action: ActionDef, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, id?: option<string>, focus?: FocusProps } | ||
| 5 | Slot | { container: BindingPath, index: u32, kind_type: string, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, id?: option<string>, focus?: FocusProps } | ||
| 6 | HBox | { children: list<Node>, spacing: f32, align: Align, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | ||
| 7 | VBox | { children: list<Node>, spacing: f32, align: Align, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, id?: option<string>, focus?: FocusProps } | ||
| 8 | Grid | { children: list<Node>, cols: u16, row_spacing: f32, col_spacing: f32, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | ||
| 9 | Margin | { top: f32, right: f32, bottom: f32, left: f32, child: Node, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, start?: option<f32>, end?: option<f32>, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | ||
| 10 | Anchor | { position: Position, child: Node, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, id?: option<string>, focus?: FocusProps } | Screen-anchored container (5.4b). Anchors child at one of nine screen grid positions, offset by offset pixels. Non-interactive. Used by HUD layers; not valid in BUI window subtrees (compositional invariant: HUD anchoring is screen-space, BUI is window-local). | |
| 11 | Shape | { kind: ShapeKind, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, id?: option<string>, focus?: FocusProps } | Geometric shape primitive (5.4b). Renders via a screen-space egui::Painter. Used by HUD layers (crosshair reticle, debug overlays, future minimap borders). | |
| 12 | Scroll | { direction: Direction, child: Node, clamp_to_content?: bool, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, id?: option<string>, focus?: FocusProps } | ||
| 13 | TextEdit | { binding: BindingPath, placeholder?: option<TextValue>, max_chars: u16, multiline: bool, action?: option<ActionDef>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, id?: option<string>, focus?: FocusProps } | ||
| 14 | Slider | { binding: BindingPath, min: ValueSource, max: ValueSource, step: ValueSource, action?: option<ActionDef>, suffix?: option<TextValue>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | ||
| 15 | Checkbox | { binding: BindingPath, label: TextValue, action?: option<ActionDef>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, id?: option<string>, focus?: FocusProps } | ||
| 16 | Dropdown | { selected: BindingPath, options: list<DropdownOption>, append?: DropdownAppend, source?: option<DropdownSource>, searchable?: bool, placeholder?: option<TextValue>, action?: option<ActionDef>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, id?: option<string>, focus?: FocusProps } | ||
| 17 | Image | { icon: TextValue, fit: ImageFit, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, id?: option<string>, focus?: FocusProps } | ||
| 18 | Tooltip | { content: Node, child: Node, delay_ms?: u16, hotkey?: option<string>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, id?: option<string>, focus?: FocusProps } | ||
| 19 | ForEach | { binding: BindingPath, template: Node, item_var?: string, direction: Direction, spacing: f32, node_id?: option<string>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | Dynamic list container: stamps template once per element in the bound list. P1 feature — supports reorder via UiEvent::Reorder. | |
| 20 | Fragment | { children: list<Node>, visible_when?: option<Pred>, id?: option<string>, focus?: FocusProps } | Logical grouping that imposes no layout and no style of its own. Renders its children inline into the enclosing container exactly as if the Fragment were not present (same spacing, same align-items inheritance). Exists to bundle siblings for the editor (collapse in the tree, select/move as a unit) and as a transparent passthrough wrapper. Deliberately carries no align_self/style_class/theme_override/ spacing/direction — that absence IS the “zero layout/style” contract. visible_when is the sole exception: visibility is orthogonal to layout. | |
| 21 | Component | { name: string, overrides?: list<ComponentOverride>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, id?: option<string>, focus?: FocusProps } | A component instance: expands the named .component.ron at resolution, applying overrides to the definition’s own direct nodes (spec §4a). | |
| 22 | ExtensionPoint | { name: string, max_nodes?: u32, id?: option<string>, focus?: FocusProps } | A named insertion slot for plugin-contributed content (M2 extension points). Trusted screen authors declare these; plugins contribute .ext.ron documents addressing them. max_nodes caps the total resolved nodes accepted from contributions at this point. Palette-restricted to the Trusted tier — plugins cannot author this node. | |
| 23 | CarriedCursor | { container: BindingPath, kind_type: string, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, id?: option<string>, focus?: FocusProps } | A floating, follow-the-mouse “carried cursor” overlay bound to a 1-cell SlotContentsBytes field. Renders nothing in layout; the engine paints the bound cell’s icon + count at the pointer when non-empty. The mod places exactly one per container window. The carried payload is the game’s authoritative state, projected to SlotCell by build_ui_state. | |
| 24 | LocalState | { fields: list<LocalField>, child: Node, id?: option<string>, focus?: FocusProps } | Client-only view state (Enki C §2.2): named, typed fields addressed as Local.<name> by bindings inside child. Values live in the client runtime per open window and never cross the network. | |
| 25 | Workbench | { module: TextValue, bui_key: UiKey, menu_bar?: option<Node>, header?: option<Node>, tool_rail?: option<Node>, area: WorkbenchArea, status_bar?: option<Node>, back?: LayerBack, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | The look’s screen skeleton (Enki C §3.15): a full-screen layer of fixed regions, not a Window. Valid only as a document’s root. | |
| 26 | ToolRail | { selected: BindingPath, items: list<ToolRailItem>, source?: option<BindingPath>, action?: option<ActionDef>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, id?: option<string>, focus?: FocusProps } | Icon-only tool buttons (Enki C §3.15). The active tool is pressed in brass; the tooltip has the tool’s name, one line and its hotkey chip. | |
| 27 | PaneHeader | { title: TextValue, detail?: option<TextValue>, module?: option<TextValue>, active?: option<Pred>, menu?: list<MenuItem>, trailing?: option<Node>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | A strip naming a pane or dock (Enki C §3.15). | |
| 28 | StatusBar | { hints?: list<StatusHint>, modifier_hints?: bool, message?: option<StatusMessage>, notices?: bool, readouts?: list<Readout>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | The workbench status bar (Enki C §3.15): key hints, the message line and readouts. | |
| 29 | KeyHint | { input_action: TextValue, label?: option<TextValue>, style?: PromptStyle, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, id?: option<string>, focus?: FocusProps } | An input action’s live prompt and a label (Enki C §3.15). | |
| 30 | PropertyRow | { label: TextValue, child: Node, default?: option<ValueRef>, reset?: bool, tooltip?: option<TextValue>, error?: option<TextValue>, mixed?: option<Pred>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | The look’s inspector row (Enki C §3.15): label, value editor, changed marker and reset. | |
| 31 | Group | { title: TextValue, child: Node, collapsible?: bool, expanded?: option<BindingPath>, changed_count?: bool, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, id?: option<string>, focus?: FocusProps } | The look’s etched group box (Enki C §3.15). | |
| 32 | Segmented | { binding: BindingPath, options: list<SegmentOption>, action?: option<ActionDef>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | Two to four exclusive options as joined buttons (Enki C §3.15). | |
| 33 | NumberField | { binding: BindingPath, min?: option<ValueSource>, max?: option<ValueSource>, step?: option<ValueSource>, default?: option<ValueSource>, soft_range?: bool, style?: NumberStyle, speed?: f32, decimals?: option<u8>, unit?: option<TextValue>, action?: option<ActionDef>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, id?: option<string>, focus?: FocusProps } | A number with scrubbing, typed Molang entry, a unit, a default and limits (Enki C §3.6). | |
| 34 | Vec3Field | { x: BindingPath, y: BindingPath, z: BindingPath, min?: option<ValueSource>, max?: option<ValueSource>, step?: option<ValueSource>, default?: option<array<f32, 3>>, decimals?: option<u8>, unit?: option<TextValue>, action?: option<ActionDef>, align_self?: Align, style_class?: option<string>, theme_override?: option<map<string, TokenValue>>, visible_when?: option<Pred>, text_options?: TextOptions, mirror?: Mirror, id?: option<string>, focus?: FocusProps } | Three numbers edited as one (Enki C §3.6). Large fields are boxed to keep Node small; serde is unaffected. |
Type NodeId
Tuple struct: (string).
Type NumberStyle
Scrub value or slider track, for NumberField.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Scrub | none | ||
| 1 | Slider | none |
Type OverflowWrap
What happens to a word wider than its box.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Normal | none | Break only at line-break opportunities; a long word overflows. | |
| 1 | BreakWord | none | Break inside a word only if it would otherwise overflow. UI default. | |
| 2 | Anywhere | none | Break anywhere. |
Type OverlayEvent
What the engine’s per-frame picking tells a node’s owner (Enki B §5.4,
§5.6), drained at tick rate through take-events.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Hover | { id?: option<u32>, handle?: option<GizmoHandle>, point: array<f64, 3> } | The pointer moved onto one of the owner’s nodes (or a gizmo handle), or, with id none, off the owner’s nodes. | |
| 1 | Click | { id: u32, button: u8, phase: ClickPhase, modifiers: u8, point: array<f64, 3> } | A button pressed on, or released after pressing on, one of the owner’s pickable nodes. | |
| 2 | GizmoDrag | { id: u32, phase: DragPhase, handle: GizmoHandle, proposed: Transform } | A gizmo handle drag: the transform the engine proposes for the gizmo node, snapped per its spec. The owner accepts it by setting the transform, or ignores it. | |
| 3 | Overflow | { dropped: u32 } | Events were dropped since the last drain: the queue was full. |
Type OverlayNode
One retained node.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
shape | Shape | |||
style | Style | |||
transform | Transform | |||
visible | bool | |||
pickable | bool | Whether raycast with include-overlays and the engine’s hover and click picking test it: a box by its faces, a voxel shape by its bounds. A gizmo’s handles are picked whatever this says. | ||
order | i16 | Draw order: lower first. Ties break by owner, then node id. |
Type OverlayOp
One change to an owner’s scene. apply takes a batch and applies all of
it or none of it. The variant index is the op’s kind ([op_kind]).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | RegisterImage | { id: u32, source: ImageSource } | Registers an image for image nodes; the id must be free. A source that cannot be read or decoded registers a checker placeholder. | |
| 1 | ReleaseImage | { id: u32 } | Releases an image; nodes still naming it draw the placeholder. | |
| 2 | Create | { id: u32, node: OverlayNode } | Adds a node; the id must be free. | |
| 3 | SetTransform | { id: u32, transform: Transform } | ||
| 4 | SetShape | { id: u32, shape: Shape } | ||
| 5 | SetStyle | { id: u32, style: Style } | ||
| 6 | SetVisible | { id: u32, visible: bool } | ||
| 7 | SetPickable | { id: u32, pickable: bool } | ||
| 8 | SetOrder | { id: u32, order: i16 } | ||
| 9 | Remove | { id: u32 } | ||
| 10 | Clear | none | Removes every node of the owner (its images stay registered). |
Type OverrideProperty
The bounded-but-extensible override vocabulary (spec §5). Keep minimal by design — a new variant needs a real authoring need, not speculation.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Text | TextValue | Replace a text-bearing field (Label.text, Window.title, Button.label). | |
| 1 | Value | ValueSource | Replace a value source (ProgressBar.value). | |
| 2 | StyleClass | option<string> | Replace the node’s style_class. | |
| 3 | VisibleWhen | option<Pred> | Replace the node’s visible_when predicate. |
Type Owner
Who is accountable for an entity: budgets, per-owner limits, cost
attribution (Talos A §9.4). Daedalus A’s PhysicsOwner under the shared
name.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | World | none | The world itself: ambient creatures, engine spawns, restore and boot. | |
| 1 | Player | array<u8, 16> | A player, by PlayerUuid (PlayerRecord.uuid), whether or not they are online. | |
| 2 | Mod | string | A mod, by id. |
Type PendingReason
Why a joint waits.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | EndpointUnavailable | none | A body end is not simulated yet (spawned this tick, rejected by a body budget, Disabled, or just recreated). | |
| 1 | Suspended | none | The mechanism is not admitted: a body end waits on its owner’s quota or a space budget, and the mechanism waits whole (Daedalus A §13.2). It does not time out. |
Type PermissionDecl
One [[permissions.declare]] entry.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
name | string | |||
default | PermissionDefault |
Type PermissionDefault
Who holds a node without configuration (§8.2). Admin holds every node
regardless; Player is for nodes every player needs in ordinary play.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Player | none | ||
| 1 | Admin | none |
Type PermissionLevelWire
Permission level mirror (postcard-safe; manifold-mod-types has no
manifold-engine dep). Maps 1:1 to manifold_engine::PermissionLevel.
ORDER IS THE LADDER: Player < Admin (the host maps by variant). (M4c-3)
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Player | none | ||
| 1 | Admin | none |
Type PhysicsBatchOutcome
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Applied | { created: list<tuple<u16, EntityRef>>, joints: list<tuple<u16, JointStatus>>, outcomes: list<tuple<u16, list<u8>>>, failed: list<tuple<u16, PhysicsReject>> } | ||
| 1 | Rejected | { op: u16, reason: PhysicsReject } | Atomic mode: the first op that failed, and why. |
Type PhysicsBatchResult
What one batch did (G §5.4), held for its submitter. The take-results
record.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
batch | u64 | |||
tick | u64 | The tick the batch applied in. | ||
outcome | PhysicsBatchOutcome |
Type PhysicsBody
Authored rigid-body behavior. Solver handles are deliberately absent.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
kind | PhysicsBodyKind | |||
gravity_scale | f32 | |||
linear_damping | f32 | |||
angular_damping | f32 | |||
can_sleep | bool | |||
ccd_enabled | bool | |||
dominance | i8 |
Type PhysicsBodyKind
Supported rigid-body motion models.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Dynamic | none | Integrated by forces, contacts, and gravity. | |
| 1 | Fixed | none | Immovable authored geometry. | |
| 2 | KinematicPosition | none | Authored by its next position and treated as having infinite mass. | |
| 3 | KinematicVelocity | none | Authored by velocity and treated as having infinite mass. |
Type PhysicsBudget
The physics budget an op met (A §13.2, B §15): the payload of
[PhysicsReject::Budget].
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Body | none | The world space’s simulated bodies. | |
| 1 | Collider | none | The world space’s Rapier colliders. | |
| 2 | Command | none | This tick’s engine command queue (MAX_PHYSICS_COMMANDS). | |
| 3 | AssemblyVoxels | none | The server’s assembly cells (max_assembly_voxels_total). |
Type PhysicsCollider
Authored collision shape and material. The material values are explicit
(MaterialSource::Explicit); the default is manifold:default’s, so a
body’s mass is real (Daedalus A §7).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
shape | ColliderShape | |||
offset | array<f32, 3> | |||
density | f32 | kg/m³. | ||
friction | f32 | Combined with Min against the other collider. | ||
restitution | f32 | Combined with Max against the other collider. | ||
sensor | bool | |||
collision_memberships | u32 | |||
collision_filter | u32 |
Type PhysicsJoint
Durable joint descriptor. Contains no Rapier handle and no entity handle.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
a | JointEnd | |||
b | JointEnd | |||
kind | JointKind | |||
collide_connected | bool | Contacts between the two bodies. Default false (GMod “nocollide” on). | ||
backend | JointBackendHint | Planner hint; Auto in almost all content (§5.1). | ||
softness | option<JointSoftness> | yes | Override of the planner’s softness. None = policy (§5.4). | |
origin | JointOrigin | Who created it and why; drives removal rules and persistence. |
Type PhysicsOp
One op (G §5.3). Variant order is §5.3’s numbering and the postcard variant index: append-only, never reordered or reused.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | SpawnPrimitive | SpawnPrimitive | 0: a primitive body. | |
| 1 | Assemble | { space: WorldSpaceId, selection: Selection, kind: PhysicsBodyKind, owner?: option<Owner> } | 1: world cells into assemblies, one per 6-connected island, through B’s assembly transaction section. The assemblies appear when the transaction commits, in the tick the op applies. | |
| 2 | CreateJoint | { joint: PhysicsJoint, a: Target, b: Target, drive?: option<JointDrive>, owner?: option<Owner> } | 2: a joint between body a and body b, or the world when b is [Target::World] (C’s descriptor; its ends’ frames are in it). | |
| 3 | SetDrive | { joint: Target, drive: JointDrive } | 3: replace a joint’s whole drive record. | |
| 4 | Remove | { target: Target } | 4: remove a body, joint or field. | |
| 5 | ApplyImpulse | { body: Target, impulse: BodyImpulse } | 5: an impulse on a body. | |
| 6 | ExtractBlock | { space: WorldSpaceId, pos: BlockPos, velocity: array<f32, 3> } | 6: one block out of the world as a one-voxel assembly launched at velocity (assemble of Selection::Cell, B §5.6, D6). |
Type PhysicsQuotaDecl
A mod’s [physics] request (Daedalus G §6.3): its quotas as the owner
of bodies and joints, and the physics ops it may submit per tick, all
batches together. A field left out takes the server’s default; the
server clamps each to its ceiling and says so (logged, and in the
install summary). Only quotas something enforces are fields: a key the
manifest names that is not one fails the build.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
bodies | option<u32> | yes | physics.owned-bodies.max for the mod. | |
voxels | option<u32> | yes | physics.owned-voxels.max for the mod. | |
colliders | option<u32> | yes | physics.colliders.max for the mod. | |
awake_bodies | option<u32> | yes | physics.awake-bodies.max for the mod. | |
joints | option<u32> | yes | physics.joints.max for the mod. | |
ops_per_tick | option<u32> | yes | Physics ops submitted per tick, all batches and actors together. |
Type PhysicsReject
Why an op did nothing (G §5.4). Every reason is a code or a name, never
prose; [PhysicsReject::text] is the player-facing message from the
engine.physics.reject.* catalog keys. The reasons Talos G’s
EntityReject shares are spelled alike (contract::reject::spelling)
and carry the same [ValueCode] and [ProtectionCode].
Variants 0 to 16 are §5.4’s list; 17 onwards are G1’s additions: the target kind, the owner rule, an uninstalled host, C’s own joint codes and a world-cell op’s transaction outcome where §5.4 has no spelling for it. Append-only: the declaration order is the wire order.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | NotPermitted | string | 0: the capability node the actor lacks, by name. | |
| 1 | NoRight | Right | 1: the right the actor lacks on a target. | |
| 2 | Limit | { name: string, value: i64 } | 2: one of the actor’s valued limits (G §6.3), by name, and its value. | |
| 3 | Quota | string | 3: the owner is at a quota (A §13.2, G §6.3), by its catalogue key. | |
| 4 | UnknownTarget | none | 4: the target does not exist (any more), or names nothing. | |
| 5 | InvalidValue | ValueCode | 5: a value failed the op’s checks. | |
| 6 | Unsupported | u16 | 6: an op kind, or a target form, this host does not apply. | |
| 7 | Malformed | none | 7: the op record does not decode. | |
| 8 | Budget | PhysicsBudget | 8: a physics budget is spent. | |
| 9 | RegionFrozen | none | 9: the target’s physics region is frozen (A §13.4). | |
| 10 | Protected | ProtectionCode | 10: a protection refused a world-cell op. | |
| 11 | Reserved | none | 11: a written cell is reserved (B’s GridReservations). | |
| 12 | RegionBusy | none | 12: another in-flight world edit overlaps the op’s cells. | |
| 13 | ChunkNotLoaded | none | 13: the op touches a chunk that is not loaded. | |
| 14 | TooLarge | none | 14: the op’s selection is larger than the host reads at once. | |
| 15 | Superseded | none | 15: a later op wrote the same joint’s drive in the same tick (G §5.4). | |
| 16 | Vetoed | LocalizedText | 16: the game’s reviewer refused the world edit, with its own player-facing reason. | |
| 17 | WrongTarget | TargetKind | 17: the target is not the kind of object the op works on. | |
| 18 | OwnerNotAllowed | none | 18: the op names an owner its actor may not create for (G §3.5). | |
| 19 | NotInstalled | none | 19: physics, assemblies, the transaction engine or entity identity are not installed or not ready on this world. | |
| 20 | Joint | JointRejection | 20: C refused the joint (C §3.3), by C’s own code. | |
| 21 | Submit | SubmitError | 21: the world-cell op’s transaction was not accepted for submission. | |
| 22 | Transaction | TxnReject | 22: the world-cell op’s transaction was refused for a reason with no spelling above (Enki B §2.2); nothing was written. | |
| 23 | Conflict | ConflictReport | 23: the world-cell op’s cells changed between the op and its commit. |
Type PhysicsRender
Replicated, solver-independent presentation description.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
primitive | u8 | |||
size | array<f32, 3> | |||
color | array<f32, 4> | |||
block_id | u16 | Source voxel material for textured cuboids, or NO_BLOCK_TEXTURE. |
Type PluginCommand
Closed command allowlist. NO variant maps onto PlayerInput/PlayerActions (movement/look/attack/use) — that path is unreachable by construction.
WIRE-STABLE: new variants may only be APPENDED.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | SelectHotbarSlot | u8 | ||
| 1 | SendChat | string | ||
| 2 | OpenBlockUi | { ui_id: string, target_block: array<i32, 3> } | ||
| 3 | EditBlock | { pos: array<i32, 3>, action: u8 } |
Type PluginManifestWire
Wire form of one plugin’s full registrations.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
terrain_recipes | list<TerrainRecipeWire> | Server-only declarative terrain providers, authenticated by the host. | ||
plugin_id | string | |||
events | list<EventDeclWire> | |||
systems | list<SystemDeclWire> | |||
blocks | list<BlockDefWire> | Block definitions this plugin contributes (raw RON, folded host-side via parse_and_register_block). F3 Slice B. | ||
actions | list<ActionDeclWire> | Input-action definitions this plugin contributes (key + optional default binding RON, folded host-side). F3 Slice C. | ||
entity_archetypes | list<EntityArchetypeWire> | Entity-archetype declarations this plugin contributes (local id + component key refs, folded host-side). F3 Slice A. | ||
components | list<ComponentDeclWire> | yes | Novel guest-authored component declarations this plugin contributes (key + field schema + replication policy, folded host-side into the component registry). F3 Slice B novel-components. #[serde(default)] so older v5 payloads decode cleanly with an empty vec. | |
commands | list<CommandNodeWire> | yes | Guest-declared server console commands (faithful tree). #[serde(default)] so older v6 payloads decode cleanly with an empty vec. (M4c-3) | |
input_role_bindings | list<InputRoleBindingWire> | yes | Role→action-name bindings declared by the guest. Flat list; platform machinery resolves each name against the InputActionRegistry. Sidecar data — NOT folded into the hashed action set. #[serde(default)] so older v7 payloads decode cleanly with an empty vec. M4c-4b. | |
player_archetype | option<string> | yes | Local archetype id of the player entity (e.g. "player"). The host composes the fully-qualified key from this plugin’s id. None means the game declares no player archetype. #[serde(default)] so older v7 payloads decode cleanly as None. M4c-4b. | |
host_resources | list<HostResourceDeclWire> | yes | Guest-declared HOST-side resources (#55 Slice 1). Created in the server world’s DynResources bag at world-ready, bridged for guest systems. #[serde(default)] so older payloads decode with an empty vec. | |
contexts | list<ContextDeclWire> | yes | Input contexts this plugin declares (input spec §10.1, §15.1), in its own namespace. Format 13. |
Type PluginUiRegistration
Registration payload a client-plugin sends when it installs an overlay.
The overlay’s widget tree is NOT carried over the wire. Instead, the host
loads it from <plugin_dir>/ui/<overlay_name>.ron at plugin-load time
(authored, asset-scoped, host-validated). The wasm guest supplies only the
overlay name and its UiFieldSchema (the set of data fields build() will
populate each frame).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
overlay_name | string | |||
schema | UiFieldSchema |
Type PointerScopeWire
Where a pointer sink applies.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Everywhere | none | ||
| 1 | WhenOverUi | none |
Type Position
A resolution-independent screen position: a 9-point anchor plus a pixel
offset. Shared by Node::Window (as Option<Position>) and Node::Anchor.
Lowers to an egui::Align2 + offset at render time.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
anchor | Anchor2D | |||
offset | Vec2 | |||
mirror | Mirror | yes |
Type Pred
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | And | list<Pred> | All children must be true. Empty And is vacuously true. | |
| 1 | Or | list<Pred> | Any child true. Empty Or is vacuously false. | |
| 2 | Not | Pred | Negation. | |
| 3 | Bind | BindingPath | Read a bool-kinded binding. Non-bool kinds → eval false + warn (see manifold-ui-runtime::pred_eval). | |
| 4 | Literal | bool | Constant bool. Useful for debug HUDs that want unconditional visibility: visible_when: Literal(true). | |
| 5 | Eq | { left: BindingPath, right: ValueRef } | A bound value equals a literal or another bound value (Enki C §2.2): Eq(left: "Local.tool", right: Literal(Str("box"))). Values of different kinds are unequal; numbers compare by value across U16, U32 and F32. Appended by the P0 break. |
Type ProgressKind
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | U16Normalized | none | ||
| 1 | F32Direct | none |
Type PromptStyle
How an input-action prompt is drawn (input system spec §17.1).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Glyph | none | ||
| 1 | Text | none | ||
| 2 | GlyphAndText | none |
Type ProtectionCode
The protection that refused an op: the payload of both reject enums’
Protected (Talos G §4.3, Daedalus G §5.4). Names, never prose: the
player-facing reason is the protection’s own text, which the host looks
up from the code.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Policy | { by: ModId, node: string } | A mod’s edit-policy protection (Enki B §3.3): the protecting mod and the node its boxes require. | |
| 1 | Review | ModId | A reviewer’s veto (Enki B’s plugin-review), by the reviewing mod. | |
| 2 | Rule | string | An engine or game rule (spawn protection, a world-space rule), by its rule name. |
Type Rate
A token bucket (§4.4): sustained message and byte rates, and a burst in messages.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
messages_per_sec | u32 | |||
bytes_per_sec | u32 | |||
burst | u32 |
Type RayHit
What a client ray cast hit first (Enki B §5.6).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Block | { pos: array<i32, 3>, normal: array<i8, 3>, value: u32, distance: f32 } | ||
| 1 | Overlay | { node: u32, normal: array<f32, 3>, distance: f32 } | A pickable node of the caller’s own scene. | |
| 2 | Entity | { entity: u64, id: u64, distance: f32 } | An entity, by its posed hit boxes or its body box. |
Type ReadValue
Typed value returned for a [ReadValueId] query.
WIRE-STABLE: new variants may only be APPENDED.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Position | array<f32, 3> | ||
| 1 | BlockHit | { pos: array<i32, 3>, block_id: u32, distance: f32 } | ||
| 2 | CameraMode | u8 | ||
| 3 | TimeOfDay | f32 | ||
| 4 | HotbarSelection | u8 | ||
| 5 | Container | list<option<ItemStackView>> |
Type Readout
A sunken readout in a StatusBar’s end zone.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
value | TextValue | |||
unit | option<TextValue> | yes | ||
tooltip | option<TextValue> | yes |
Type RecordSchemaWire
Flat element-shape description, referenced by name from a record-list
UiField.element. Its fields are scalar UiFields; the table never
references itself, so the wire shape is single-level by construction.
APPEND-ONLY (golden-locked).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
name | string | |||
fields | list<UiField> |
Type Reliability
Delivery class (§4.3). ReliableOrdered messages on one channel of one
mod arrive in order, exactly once, for the life of the connection.
UnreliableLatest rides the datagram flow and may drop; it is published
with the interface but not served by the slice.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | ReliableOrdered | none | ||
| 1 | UnreliableLatest | none |
Type ReplicationModeWire
Replication mode for a novel component. Mirrors manifold_engine::ReplicationMode.
Defined here to keep manifold-mod-types free of any manifold-engine dep.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | OnChange | none | Replicate only when the changed-tick advances (byte-diff). | |
| 1 | EveryTick | none | Replicate every tick regardless of change. | |
| 2 | Manual | none | Application code drives replication explicitly. |
Type ReplicationWire
Replication policy for a novel component. Mirrors manifold_engine::Replication.
Defined here to keep manifold-mod-types free of any manifold-engine dep.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | ServerOnly | none | Component lives only on the server; never sent to clients. | |
| 1 | ClientOnly | none | Component lives only on the client; never sent from/to server. | |
| 2 | Replicated | { mode: ReplicationModeWire } | Component is replicated server → client at the given mode. |
Type ReskinScope
Reskin can target one layer or all hookable HUD layers (the theme-pack case).
WIRE-STABLE: new variants may only be appended.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Layer | HookTarget | ||
| 1 | AllHudLayers | none |
Type ReskinTransform
One reskin transform: token overrides applied to the target layer’s effective theme.
The payload reuses ThemeOverrideMap (already wire-proven across the wasm boundary
in UiRegistration) rather than an invented type.
WIRE-STABLE: new fields may only be appended.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
scope | ReskinScope | |||
overrides | map<string, TokenValue> |
Type ResourceSyncSpecWire
A synced resource spec in [ModDeclarations::synced_resources].
ResourceSyncSpec (in manifold-engine) carries fn pointers (serialize,
deserialize_and_install) that cannot cross the wasm boundary. This wire
type carries an index into the host-registered ResourceSyncSpecTable
instead; the host looks up the real fn pointers by index.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
type_name | string | Stable debug name: "<plugin>:<TypeName>". Must match the corresponding entry in the host’s ResourceSyncSpecTable. | ||
spec_index | u32 | Index into the host’s ResourceSyncSpecTable. The host validates that table[spec_index].type_name == self.type_name as a sanity check. | ||
initial_snapshot_on_join | bool | Whether the server includes an initial snapshot on handshake. |
Type Right
A right an op needs on each target it names (Talos G §3.7; Daedalus G’s
interact and operate; contract foundation §5.1, §5.6).
Postcard is positional, so variants are appended: the declaration order
is the wire order and is not the [Rights] bit order. [Right::bit]
maps between them.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Command | none | Direct the entity’s behaviour. | |
| 1 | Modify | none | Change its gameplay state. | |
| 2 | Structure | none | Change its existence or ownership. | |
| 3 | Interact | none | Use it as a player would (Daedalus G interact). | |
| 4 | Operate | none | Run or drive it (Daedalus G operate). |
Type Rotation
Replicated orientation as a normalized quaternion (x, y, z, w).
Tuple struct: (array<f32, 4>).
Type SamplingWire
Axis sampling (§7.3).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | State | none | The value at the end of the tick. | |
| 1 | Delta | none | The sum over the tick. |
Type Schedule
Closed v1 schedule set. 5.8a-substrate ships these four; later sub-steps may extend.
Side affinity is implicit in the variant — see [Schedule::side].
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | ServerStartup | none | Runs once on the server during on_server_world_ready. | |
| 1 | ServerTick | none | Runs every server tick (40 Hz). | |
| 2 | ClientStartup | none | Runs once on the client during on_client_world_ready. | |
| 3 | ClientTick | none | Runs every client tick (40 Hz). |
Type SegmentOption
One option of a Segmented control.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
value | BindingValue | |||
label | option<TextValue> | yes | ||
icon | option<TextValue> | yes | ||
tooltip | option<TextValue> | yes | Required when the option has only an icon. |
Type Selection
Which world cells an assemble takes (B §5.1): the payload of G’s
assemble op, which manifold-server-state::assembly::assemble_from_world
prepares. Part of the op’s wire layout (G §5.3): variants are appended,
never reordered.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Box | { min: BlockPos, max: BlockPos } | Every cell in the inclusive box that is neither air nor a fluid. Each 6-connected island becomes its own assembly. The corners may be given in any order. | |
| 1 | Cell | BlockPos | One cell: G’s extract-block, a one-voxel assembly (B §5.6, D6). |
Type Shape
A node’s geometry, in the node’s local space (Enki B §5.2).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Box | { min: array<f32, 3>, max: array<f32, 3> } | An axis-aligned box (selections, regions). Drawn as its 12 edges and, when the style has a fill, its 6 faces. | |
| 1 | Lines | { points: list<array<f32, 3>>, mode: LineMode } | A polyline or segment list (paths, axes, splines). | |
| 2 | VoxelOutline | CellSet | The outline of a set of cells: its merged exterior edges, in the edge colour and width. | |
| 3 | GhostBlocks | GhostCells | A translucent preview of block values: the cells’ exterior faces, shaded per face, in the fill colour (the edge colour without one). | |
| 4 | Text | { anchor: array<f32, 3>, document: LabelDocument } | A world label at anchor (world_label.rs). | |
| 5 | Marker | { anchor: array<f32, 3>, icon: string, size_px: f32 } | A billboarded icon at anchor. | |
| 6 | Image | ImageShape | A textured quad (reference images, annotations). | |
| 7 | Gizmo | GizmoSpec | Engine-driven handles (Enki B §5.4). The node’s transform is what the handles move. |
Type ShapeKind
Shape primitive — currently lines-only (DL-504-06). Future variants (rect, circle, icon) land as additional cases.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Lines | { segments: list<tuple<Vec2, Vec2>>, stroke: Stroke } |
Type Side
Server / client / both side affinity.
Resources, events, and systems are tagged with a Side to determine which ModInstance (per the DualInstance two-world model) receives them at registration time.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Server | none | Server-side only. | |
| 1 | Client | none | Client-side only. | |
| 2 | Both | none | Both server and client; registered on each independently. |
Type SinkWire
A context’s sink.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
keyboard | bool | |||
pointer | bool | |||
gamepad | bool |
Type SlotWire
A binding slot (§8.2).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | KBM0 | none | ||
| 1 | KBM1 | none | ||
| 2 | PAD0 | none | ||
| 3 | PAD1 | none | ||
| 4 | TOUCH0 | none |
Type SpawnPrimitive
spawn-primitive’s payload (op 0): a primitive body in space.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
space | WorldSpaceId | |||
position | array<f64, 3> | The body’s centre, a world position (f64 on the wire, G §5.2). | ||
rotation | Rotation | |||
velocity | array<f32, 3> | |||
body | PhysicsBody | |||
collider | PhysicsCollider | |||
render | PhysicsRender | |||
owner | option<Owner> | yes | Derived from the actor when None ([derive_owner]). |
Type StartContext
What the host tells an instance when its world is ready: the
plugin-lifecycle.start(context) payload.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
format_version | u16 | [START_CONTEXT_FORMAT_VERSION] when written by this host. | ||
side | StartSide | The instance’s side. |
Type StartSide
The side a starting instance runs on. Every instance is one side; a singleplayer game runs two instances.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Server | none | The server instance. | |
| 1 | Client | none | The client instance. |
Type StatusHint
A key hint in a StatusBar’s start zone.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
input_action | TextValue | The input action id, literal or bound. | ||
label | option<TextValue> | yes | ||
visible_when | option<Pred> | yes |
Type StatusMessage
A StatusBar’s message line.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
text | TextValue | |||
level | option<BindingPath> | yes | A String binding: "info", "warn" or "error"; anything else (or none) is neutral. | |
progress | option<ValueSource> | yes | A 0–1 fraction drawn as a meter beside the message. |
Type StorageScope
Where a server blob lives (storage-types.scope).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | World | none | Per world, per mod. | |
| 1 | WorldPlayer | none | Per world, per mod, per player. |
Type Stroke
Stroke geometry (width + color) for Node::Shape rendering.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
width | f32 | |||
color | string |
Type Style
A node’s appearance.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
edge | Color | Colour of lines, box edges, outlines and gizmo handle lines. | ||
fill | option<Color> | yes | Box faces and ghost blocks; None draws box edges only and ghosts in the edge colour. | |
width_px | f32 | Line and edge width in screen pixels, MIN_WIDTH_PX..=MAX_WIDTH_PX. | ||
depth | DepthMode |
Type SubmitError
Why a submission was refused before it queued: the WIT
core/ops.submit-error (contract foundation §5.3). Everything else is a
per-batch rejection reported through the domain’s results.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Malformed | u32 | Index of the first record whose framing is broken. | |
| 1 | TooManyOps | u32 | ||
| 2 | NotDeclared | none | The calling system did not declare write access. | |
| 3 | QueueFull | none | ||
| 4 | ActorUnknown | none | A player actor names no connected player, or a mismatched one. | |
| 5 | Other | string | A condition added after the track opened: a kebab-case code the owning spec documents. Diagnostic. |
Type SystemDeclWire
Wire form of a system declaration.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
name | string | |||
schedule | Schedule | |||
read_set | list<u64> | Resource + event read-set (global, keyed by TypeId64). | ||
write_set | list<u64> | Resource + event write-set (global, keyed by TypeId64). | ||
read_components | list<u64> | yes | B2-EC: entity-component read-set — the bridged component types this system may read across the wasm boundary. #[serde(default)] so existing guests that don’t emit it decode to empty. The #[system] macro that lets a guest declare this is a follow-on; until then guests emit empty. | |
write_components | list<u64> | yes | B2-EC: entity-component write-set (applied by the entity bridge after the system runs). Empty until the macro populates it. | |
system_id | option<u32> | yes | Assigned by the host post-collection. None on guest→host; the host fills this in when building its dispatch table. | |
before | list<string> | Schedule-ordering constraints (F3 solver). Targets are namespaced "mod-id:system-name" or the wildcard "mod-id:*". Declared by the guest; consumed by the host-side solver. Empty = no constraints. | ||
after | list<string> | |||
domains | list<DomainAccess> | yes | The platform domains the system reads or writes through their own interfaces (#[system(ServerTick, physics(read, write))]), at most one entry per domain. A domain’s calls check it: an undeclared read fails with not-declared, and so does a submission without write (contract foundation §14.5, the shared domain-access field). |
Type Target
What an entity op names (Talos G §4.2; Daedalus’s Target gains Row).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Entity | u64 | A session handle. | |
| 1 | Stable | u64 | A durable id, resolved through the identity index at apply. | |
| 2 | Pending | u16 | The entity created by op n earlier in the same batch. | |
| 3 | World | none | Daedalus: the static world of a space; rejected by entity ops. | |
| 4 | Row | u32 | Hook outputs only: the entity of input row n. |
Type TargetKind
The kind of object an op needed where its target named something else.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Body | none | ||
| 1 | Joint | none | ||
| 2 | Physics | none | A body or a joint (remove). |
Type TerrainRecipeWire
A mod-owned recipe for the engine’s bounded scripted terrain evaluator. The local id is namespaced by the host; recipe-internal semantic ids are content identity, not an authority to register in another mod’s namespace.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
local_id | string | |||
recipe_ron | string | |||
baked_recipe_ron | option<string> | yes | Optional material/feature recipe used with immutable baked heightfields. | |
default | bool |
Type TextArg
An argument of a [TextValue::Localized] message.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Literal | string | Untranslated text (bidi-isolated when substituted). | |
| 1 | Bind | BindingPath | A bound value; numbers are formatted for the player’s locale. | |
| 2 | Key | string | Another message key, resolved in the player’s language. |
Type TextDir
Paragraph direction of a text node.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Auto | none | From the text’s first strong letter. The default for bound user data (chat, names, signs). | |
| 1 | Ltr | none | ||
| 2 | Rtl | none | ||
| 3 | Locale | none | From the player’s locale. The default for Localized values. |
Type TextOptions
Text layout properties shared by text-bearing nodes (§5.3 of the text and localization design). All fields default, so existing RON is unchanged.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
dir | option<TextDir> | yes | None: Locale for Localized values, Auto for everything else. | |
overflow_wrap | OverflowWrap | yes | ||
max_lines | option<u16> | yes | Cut after this many lines. None: unlimited. | |
ellipsis | Ellipsis | yes | ||
untranslated | bool | yes | This node’s Literal/Template text is intentionally untranslated (a proper name, a symbol). Silences ui-validate’s warning. |
Type TextValue
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Literal | string | Creator content that is intentionally untranslated: proper names and fixed symbols like “×”. ui-validate warns on it in player-facing UI unless the node sets untranslated: true. | |
| 1 | Bind | BindingPath | ||
| 2 | Template | { format: string, args: list<BindingPath> } | Positional template substitution: {0}, {1}, … reference indices into args. {{/}} escape literal braces. Substitution happens at render time in manifold-ui-runtime. For formatting that doesn’t depend on language ({0} / {1}). | |
| 3 | Localized | { key: string, args?: map<string, TextArg> } | A message key resolved through the catalog of the player’s language, with named arguments: Localized(key: "mymod.shop.buy", args: { "price": Bind("Shop.price") }). Keys are <mod_id>.<segment>…; see manifold_l10n_types::key. |
Type ThemeToken
A colour from the Manifold look (docs/manifold-look.md), resolved by the
engine so overlays follow the theme.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Brass | none | Selection, the active tool. | |
| 1 | BrassDim | none | ||
| 2 | Ok | none | ||
| 3 | Warn | none | ||
| 4 | Error | none | Removal, failures. | |
| 5 | Info | none | ||
| 6 | Text | none | ||
| 7 | TextDim | none |
Type TokenValue
One concrete value a token can carry. Tokens are atomic: they don’t
reference other tokens. Cascading happens at the StyleClass /
theme_override layer.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Color | string | ||
| 1 | Px | f32 | ||
| 2 | Font | FontSpec |
Type ToolRailItem
An entry of a ToolRail.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Tool | { id: string, icon: TextValue, label: TextValue, description?: option<TextValue>, input_action?: option<string>, enabled_when?: option<Pred> } | The larger fields are boxed to keep the enum small; serde is unaffected. | |
| 1 | Separator | none |
Type Transform
A node’s placement: world = translation + rotation * (scale * local).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
translation | array<f64, 3> | World position of the node’s origin, in blocks. | ||
rotation | array<f32, 4> | Unit quaternion [x, y, z, w]. | ||
scale | array<f32, 3> |
Type TxnOp
One op of a block-transaction.submit batch (Enki B §2.2, §2.3): the
schema payload txn-ops, framed per contract foundation §5.3
([super::ops]). Ops apply in order; a later op sees earlier ops’
output.
The variant index is the op kind ([op]), pinned by the layout tests:
the whole op set is published at first release, and an op this host has
not implemented rejects the transaction with Unsupported(kind)
(supports-op says which). Cell buffers are little-endian values of the
stated width over the box, x fastest, then y, then z.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Fill | { target: CellTarget, bounds: BlockBox, mask?: option<list<u8>>, value: u32 } | 0: one value over a box, or over the set bits of a box-sized bitset (x fastest, then y, then z). | |
| 1 | Write | { target: CellTarget, bounds: BlockBox, width: ValueWidth, values: bytes, skip: u32 } | 1: dense values over a box; cells equal to skip are left unchanged. | |
| 2 | WriteSparse | { target: CellTarget, width: ValueWidth, packed: bytes } | 2: packed (x: i32, y: i32, z: i32, value) records. | |
| 3 | WriteIfUnchanged | { target: CellTarget, width: ValueWidth, packed: bytes } | 3: per-cell compare-and-set, packed (x, y, z, expected, new) records; a cell holding another value is skipped and counted. | |
| 4 | Map | { target: CellTarget, bounds: BlockBox, lut: bytes } | 4: a value-to-value lookup table over a box (Enki A compiled masks). | |
| 5 | SetComponent | { pos: BlockPos, key: string, version: u16, bytes: bytes } | 5: an Enki A block component on one cell, in the declaring mod’s codec. | |
| 6 | RemoveComponent | { pos: BlockPos, key: string } | 6: remove a block component from one cell. | |
| 7 | Props | { ops: bytes } | 7: Enki D prop ops for the transaction’s props section: framed PropOp records (D §10.1). | |
| 8 | Revert | { record: BlobKey } | 8: undo a stored record, with compare-and-set (§2.7). | |
| 9 | Reapply | { record: BlobKey } | 9: redo a stored record, with compare-and-set. | |
| 10 | Expect | { bounds: BlockBox, width: ValueWidth, expected: bytes } | 10: fail the whole transaction unless every cell of the box holds its value in expected, at this point in the op order. |
Type TxnProgress
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
chunks_done | u32 | |||
chunks_total | u32 |
Type TxnReject
Why a transaction was refused. Nothing was written.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | NotPermitted | string | The missing node, an identifier. | |
| 1 | Quota | none | The undo record would exceed the owner’s blob quota. | |
| 2 | Unsupported | u16 | An op kind this host does not implement. | |
| 3 | UnknownTarget | none | The volume, or an undo record the transaction names, does not exist. | |
| 4 | Malformed | none | ||
| 5 | ActorUnknown | none | ||
| 6 | Protected | LocalizedText | A protection or review veto, with its reason. | |
| 7 | Unloaded | u32 | Chunks the transaction touches that are not resident (unloaded = reject). | |
| 8 | TooLarge | u64 | Cells the transaction would change, over the cap that applies. | |
| 9 | RegionBusy | none | Overlaps another in-flight transaction. | |
| 10 | WaterBusy | none | ||
| 11 | InvalidValue | u32 | ||
| 12 | Cancelled | none | ||
| 13 | Storage | string | Diagnostic: an undo record could not be read or written. | |
| 14 | Reserved | none | A written cell is reserved (Daedalus’s GridReservations). | |
| 15 | SealedComponent | string | A section other than the component’s sealed writer would write it (Enki A5 writer: Section(..)). Carries the component key. | |
| 16 | HandlerMissing | string | The transaction removes or adds a block component whose on_remove or on_add handler section kind is not registered on this server, so the handler could not run in the same commit (fails closed). Carries the handler kind. | |
| 17 | ComponentOffline | string | The transaction would remove or overwrite a block component that is offline (no loaded declaration at its persist version), whose handler cannot be known. Remove it explicitly first. Carries the key. | |
| 18 | InvalidComponent | string | A component write the declaration does not admit: undeclared key, another persist version, a block applies_to excludes, bytes over max_bytes or the chunk’s limit, or bytes the schema rejects. Carries the key. | |
| 19 | UndoForbidden | string | The transaction moves value (an item flow, Items D §4.4), so it may not keep an undo record: a revert could duplicate or destroy items. Carries the section kind that forbids it. |
Type TxnResult
One record of a take-results drain.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Status | { id: u64, status: TxnStatus } | The state of one transaction. | |
| 1 | Overflow | { dropped: u32 } | Results dropped because the requester’s ring was full (Talos G §6.8); reported once, on the next drain. |
Type TxnStatus
Where a transaction stands. Pending repeats once per tick while a
multi-tick transaction applies; every other status is final.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Pending | TxnProgress | ||
| 1 | Committed | TxnSummary | ||
| 2 | Rejected | TxnReject | ||
| 3 | Conflict | ConflictReport | A revert or reapply found cells that no longer hold what its record expects. Nothing was written. |
Type TxnSummary
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
changed_cells | u64 | Cells whose value differs from before the transaction. | ||
skipped_cells | u64 | write-if-unchanged cells skipped because another writer changed them. | ||
chunks | u32 | Chunks with at least one changed cell. | ||
bounds | option<BlockBox> | yes | Bounds of the changed cells; None when nothing changed. | |
record_bytes | u64 | Size of the undo record written, 0 when none was requested. |
Type UiAuthority
Who builds a UI’s state and handles its events.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Server | none | The mod’s server instance; events cross the network (today’s rail). | |
| 1 | Client | none | The mod’s client instance; events never leave the client (Enki C §2.4, B §12.3). Opened and closed locally through client-ui. |
Type UiEvent
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | ButtonClicked | { node: NodeId, mods: ModifierSet } | ||
| 1 | SlotDragged | { node: NodeId, from: u32, to: u32, mods: ModifierSet } | Emitted when the user drag-drops one slot onto another slot within the same slot group. node is the slot group’s NodeId; from and to are slot indices within that group. Cross-group moves (source and target in different groups) are not representable in C1 and are silently dropped by the runtime. | |
| 2 | ValueChanged | { node: NodeId, value: BindingValue } | ||
| 3 | Reorder | { node: NodeId, from_index: u32, to_index: u32, mods: ModifierSet } | Emitted when the user drag-reorders an element within a ForEach list. node is the ForEach’s NodeId; from_index and to_index are positions in the list. The host does NOT automatically mutate the list — the mod/game-module handles the reorder in its event handler. | |
| 4 | SlotClicked | { node: NodeId, index: u32, button: ClickButton, mods: ModifierSet } | A single-slot click in a slot group. The “other operand” is the per-player, server-authoritative carried cursor. The guest’s handle_ui_event interprets it (pick / place / swap). v1 emits only button: Left; button/mods are present so RMB / shift-transfer are later additive DATA on this same variant, never a wire-breaking change. | |
| 5 | Closed | none | The player closed this UI window (server-synthesized when a BuiClient::Close tears down a mod-authored UI the player had open). The guest’s handle_ui_event receives it with the SAME read/write bundle as a normal event, so it can react to the close — e.g. return the carried cursor stack to the inventory (anti-loss). The window’s (key, entity) come from the handle call, so the variant itself carries no payload. Never emitted by the client; only the server raises it via the close hook. | |
| 6 | ValuesChanged | { node: NodeId, values: list<tuple<u8, BindingValue>> } | Several components of one widget changed together (a Vec3Field): (component index, new value). Appended by the P0 break. |
Type UiField
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
name | string | |||
kind | BindingValueKind | |||
element | option<string> | yes | For a List(record) field: the RecordSchemaWire.name describing the element shape. None for every non-record field. A flat SmolStr — NOT a nested struct, so UiField is NON-RECURSIVE. APPEND-ONLY (golden-locked). |
Type UiFieldSchema
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
fields | list<UiField> | |||
record_schemas | list<RecordSchemaWire> | |||
hash | u64 |
Type UiKey
A UI’s key: the owning mod’s namespace and the UI’s key within it.
Postcard keeps the plain struct form. A human-readable format (RON UI
documents) also accepts a string "<mod-id>:<name>", resolved with
[crate::mod_ui::ui_key_for], so a mod document never spells hashes
(Enki C §1). The struct form remains for the engine’s reserved
namespaces, which have no mod id.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
namespace | NamespaceId | |||
key | KeyId |
Type UiManifest
What a mod’s ui-manifest export returns (Enki C §1, §14): every UI the
mod registers.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
format_version | u16 | [UI_MANIFEST_FORMAT_VERSION] when written by this build. | ||
registrations | list<UiRegistrationV2> |
Type UiRegistrationV2
One UI a mod registers (Enki C §1).
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
key | KeyId | The mod’s per-UI key WITHIN its own namespace. The host composes the full UiKey as UiKey { namespace_for_mod(mod_id), key } at registration — a mod cannot name a foreign namespace. | ||
schema | UiFieldSchema | |||
tree | UiTreeSource | |||
authority | UiAuthority | |||
read_components | list<u64> | |||
write_components | list<u64> | |||
read_resources | list<u64> | |||
write_resources | list<u64> | Declared resource writes. handle-ui-event writes to these are applied, on the server rail and on the client rail alike. |
Type UiStateMap
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
schema_hash | u64 | |||
fields | list<tuple<FieldId, BindingValue>> |
Type UiTreeSource
Where a registration’s widget tree comes from.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Inline | Node | Built in code. Boxed to keep the enum small; serde is unaffected. | |
| 1 | Asset | string | A path in the mod’s own asset tree, e.g. "ui/workspace.ui.ron": a UI document the host reads from the mod’s assets, on the server for a server-authority UI and on the client for both kinds. |
Type UiValue
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Unit | none | ||
| 1 | Bool | bool | ||
| 2 | I64 | i64 | ||
| 3 | F64 | f64 | ||
| 4 | Str | string | ||
| 5 | Option | option<UiValue> | ||
| 6 | List | list<UiValue> | ||
| 7 | Map | list<tuple<string, UiValue>> |
Type ValueCode
What was wrong with a value an op carried: the payload of both reject
enums’ InvalidValue (Talos G §4.3, Daedalus G §5.4).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | NonFinite | none | NaN or infinite. | |
| 1 | OutOfRange | none | Outside the range the field allows. | |
| 2 | WrongType | none | Not the type the field holds (a schema payload’s kind mismatch). | |
| 3 | TooLarge | none | Larger than the op allows (a list, a string, a volume). |
Type ValueKindWire
An action’s value kind (§7.3).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Button | none | A held bit plus edges. | |
| 1 | Axis1D | none | One f32. | |
| 2 | Axis2D | none | Two components. | |
| 3 | Axis3D | none | Three components. | |
| 4 | Command | none | No value: commands only (Items #486). |
Type ValueRef
A value that is either written in the document or read from a binding.
Used by Pred::Eq and PropertyRow::default.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Literal | BindingValue | ||
| 1 | Bind | BindingPath |
Type ValueSource
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Literal | f32 | ||
| 1 | Bind | BindingPath |
Type ValueWidth
Bytes per cell in a packed cell buffer (block-types.value-width): 2
today, 4 if Enki A widens values.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Two | none | ||
| 1 | Four | none |
Type Vec2
2D float vector used by HUD-layer anchors, offsets, and line segments. Not used by any pre-5.4b widget — purely additive.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
x | f32 | |||
y | f32 |
Type ViewportPane
A transparent game-view pane with a stable id the host routes input and the camera by, and an optional header strip.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
id | string | |||
header | option<Node> | yes |
Type ViewportPanes
One viewport pane or four.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | One | ViewportPane | ||
| 1 | Quad | array<ViewportPane, 4> | Boxed to keep WorkbenchArea small; serde is unaffected. |
Type WorkbenchArea
The middle of a Workbench (Enki C §3.15).
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | Fixed | { panes: ViewportPanes, right_dock?: option<DockRegion>, bottom_dock?: option<DockRegion>, active_pane?: option<BindingPath> } | Fixed regions. Sizes are logical px at UI scale 1.0. | |
| 1 | Docked | Node | A DockSpace whose viewport leaves are the panes. Arrives with docking (C6); refused at load until then. |
Type WorldAnchor
A world anchor, stored in voxel terms so it is exact at any distance from the origin and independent of region-local origins.
Struct.
| Field | Type | Optional | Since | About |
|---|---|---|---|---|
cell | BlockPos | |||
offset | array<f32, 3> | Within the cell, [0, 1)^3. | ||
rotation | array<f32, 4> | |||
supported_by_cell | bool | If true, the joint breaks when cell stops being solid (§7.4, C2). |
Type WorldSpaceId
Stable identity for an independently hosted or locally owned world space.
Tuple struct: (array<u8, 16>).
Type Wrap
Whether navigation wraps at the edges of a scope.
Enum.
| Index | Variant | Payload | Since | About |
|---|---|---|---|---|
| 0 | None | none | ||
| 1 | Horizontal | none | ||
| 2 | Vertical | none | ||
| 3 | Both | none |
Packed layouts
block-model-snapshot
Owner enki · described in docs/architecture/block-transactions.md#registry-snapshot
Pending: no machine-readable LayoutSchema yet (PAYLOADS.toml names none); the layout is described in docs/architecture/block-transactions.md#registry-snapshot
cell-buffer
Owner enki · described in docs/architecture/block-transactions.md#cell-buffers
Pending: no machine-readable LayoutSchema yet (PAYLOADS.toml names none); the layout is described in docs/architecture/block-transactions.md#cell-buffers
physics-body-handles
Owner daedalus · described in docs/architecture/physics-runtime.md#body-handles
Stride 8 bytes, little-endian.
| Offset | Field | Scalar | Count | Since | About |
|---|---|---|---|---|---|
| 0 | body | u64 | 1 | Entity handle. |
physics-body-rows
Owner daedalus · described in docs/architecture/physics-runtime.md#body-rows
Pending: no machine-readable LayoutSchema yet (PAYLOADS.toml names none); the layout is described in docs/architecture/physics-runtime.md#body-rows
physics-ray-hits
Owner daedalus · described in docs/architecture/physics-runtime.md#ray-hits
Stride 48 bytes, little-endian.
| Offset | Field | Scalar | Count | Since | About |
|---|---|---|---|---|---|
| 0 | kind | u8 | 1 | 0 miss, 1 body, 2 assembly cell, 3 terrain, 4 prop, 5 the ray reached an unloaded chunk before any hit (hit_kind; the other fields zero). | |
| 4 | distance | f32 | 1 | Distance along the ray, metres. | |
| 8 | entity | u64 | 1 | The hit body’s entity handle; 0 for terrain and props. | |
| 16 | id | u64 | 1 | The hit body’s durable id, or a prop’s PropId. | |
| 24 | cell | i32 | 3 | The assembly’s grid-local cell, or the terrain block. | |
| 36 | normal | f32 | 3 | The surface normal at the hit. |
physics-rays
Owner daedalus · described in docs/architecture/physics-runtime.md#rays
Stride 40 bytes, little-endian.
| Offset | Field | Scalar | Count | Since | About |
|---|---|---|---|---|---|
| 0 | origin | f64 | 3 | World origin, metres. | |
| 24 | dir | f32 | 3 | Direction; normalized by the host. | |
| 36 | max | f32 | 1 | Length, metres. |
sha256-digest
Owner enki · described in docs/architecture/block-transactions.md#registry-snapshot
Stride 32 bytes, little-endian.
| Offset | Field | Scalar | Count | Since | About |
|---|---|---|---|---|---|
| 0 | digest | u8 | 32 | The digest’s bytes. |
Opaque bytes
asset-file
Owner: calling mod. Described by the asset’s file format, which its path names; the loader that reads it owns the format.
blob-contents
Owner: calling mod. Described by the mod’s own format for the blob at its key (Enki B §7.2).
component-value
Owner: declaring mod. Described by the declaration of the component or resource its TypeId64 names: a mod’s manifest components and resources, or the engine’s own registration.
manifold:ecs/resource-bundle.resource-bundle-handle.insert-entity-component#bytesmanifold:ecs/resource-bundle.resource-bundle-handle.read-entity-component#resultmanifold:ecs/resource-bundle.resource-bundle-handle.read-resource#resultmanifold:ecs/resource-bundle.resource-bundle-handle.write-entity-component#bytesmanifold:ecs/resource-bundle.resource-bundle-handle.write-resource#bytesmanifold:game/ui.ui-read-bundle.read-entity-component#resultmanifold:game/ui.ui-read-bundle.read-resource#resultmanifold:game/ui.ui-rw-bundle.read-entity-component#resultmanifold:game/ui.ui-rw-bundle.read-resource#resultmanifold:game/ui.ui-rw-bundle.write-entity-component#bytesmanifold:game/ui.ui-rw-bundle.write-resource#bytes
console-history
Owner: calling mod. Described by JSON lines, one per append-history call.
mod-config
Owner: calling mod. Described by the mod’s own format for the (scope, key) entry it wrote.
manifold:game/persistent-storage.read-config#resultmanifold:game/persistent-storage.write-config#bytes
mod-log
Owner: calling mod. Described by the mod’s own framing of its session log (typically JSON lines).
mod-message
Owner: declaring mod. Described by the postcard encoding of the channel’s message type, the ModMessage type its ChannelDecl.message names in the mod’s declarations (Enki B §4.1).