Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

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.

FieldTypeOptionalSinceAbout
toggleboolHold or toggle.
repeat_to_holdoption<tuple<u16, u16>>yes(initial_ms, interval_ms) for press-repeatedly → hold.

Type AccumulationWire

How bindings combine (§8.6).

Enum.

IndexVariantPayloadSinceAbout
0AnynoneButtons: reference-counted.
1MaxAbsnoneAxes: the largest magnitude.
2SumnoneAxes: 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.

FieldTypeOptionalSinceAbout
keystringFully-qualified action key, "namespace:local" (e.g. "flagship-game:jump").
kindValueKindWireThe value kind (in the input-action hash for Simulation actions).
scopeActionScopeWireSimulation or Local.
contextslist<string>Contexts it may be bound in; empty means manifold:gameplay.
defaultslist<DefaultBindingDeclWire>Default bindings per slot and host.
categoryoption<string>yesCategory catalog-key suffix.
orderi16Menu order within the category.
samplingSamplingWireAxis sampling.
accumulationoption<AccumulationWire>yesHow bindings combine; None takes the kind’s default.
consumeboolWhether a firing binding consumes its source.
a11yA11yDeclWireAccessibility metadata.
remappableboolWhether the player may rebind it (false only for platform actions).
shares_withlist<string>Actions it may share a chord with.
commandoption<InputCommandKindWire>yesThe command payload it accepts.
processors_ronlist<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.

IndexVariantPayloadSinceAbout
0Postcardbytes
1Typedstring, UiValueTyped 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).
2RonstringRON-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.

IndexVariantPayloadSinceAbout
0SimulationnoneReaches the server.
1LocalnoneClient only.

Type Align

Enum.

IndexVariantPayloadSinceAbout
0Autononealign-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.
1Startnone
2Centernone
3Endnone
4Stretchnone

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.

IndexVariantPayloadSinceAbout
0TopLeftnone
1TopCenternone
2TopRightnone
3CenterLeftnone
4Centernone
5CenterRightnone
6BottomLeftnone
7BottomCenternone
8BottomRightnone
9TopStartnone
10TopEndnone
11CenterStartnone
12CenterEndnone
13BottomStartnone
14BottomEndnone

Type Axis

An axis.

Enum.

IndexVariantPayloadSinceAbout
0Xnone
1Ynone
2Znone

Type BackBehaviourWire

What back does when the context is the top handler (§10.7).

Enum.

IndexVariantPayloadSinceAbout
0PassThroughnoneThe context below handles it.
1PopnonePop this context.
2ActionstringPress this action instead.

Type BandWire

Priority bands (§10.3).

Enum.

IndexVariantPayloadSinceAbout
0Basenone
1Gamenone
2Toolnone
3EngineUinone
4EngineSystemnone

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.

FieldTypeOptionalSinceAbout
componentstringe.g. “DebugUiTarget”
field_chainlist<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.

IndexVariantPayloadSinceAbout
0U16u16
1U32u32
2F32f32
3Boolbool
4Strstring
5SlotContentsBytesbytes
6Listlist<BindingValue>Homogeneous list of values. The corresponding BindingValueKind is List(Box<kind_of_first_element_or_String_if_empty>).
7Recordlist<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.

IndexVariantPayloadSinceAbout
0U16none
1U32none
2F32none
3Boolnone
4Stringnone
5SlotContentsBytesnonePostcard-encoded slot contents. The Slot widget decodes per the UI’s registered slot-content type.
6Listu8Homogeneous 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.
7RecordnoneA 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.

FieldTypeOptionalSinceAbout
scopeStorageScope
playeroption<array<u8, 16>>yes
pathstring

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.

FieldTypeOptionalSinceAbout
minBlockPos
maxBlockPos

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.

FieldTypeOptionalSinceAbout
ronstring

Type BlockPos

A block position: the WIT core/types.block-pos. World coordinates for [VolumeRef::World], grid-local ones for [VolumeRef::Assembly].

Struct.

FieldTypeOptionalSinceAbout
xi32X.
yi32Y.
zi32Z.

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.

FieldTypeOptionalSinceAbout
lineararray<f32, 3>
pointoption<array<f64, 3>>yesWorld-space point the linear impulse acts at; the centre of mass when None.
angulararray<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.

FieldTypeOptionalSinceAbout
format_versionu16[BODY_STATE_FORMAT_VERSION] when written by this host.
bodyEntityRef
positionarray<f64, 3>World position, composed in f64 from the region origin.
rotationarray<f32, 4>
lineararray<f32, 3>m/s.
angulararray<f32, 3>rad/s.
sleepingbool
ownerOwner
mechanismoption<EntityRef>yesC’s mechanism the body belongs to; None until C names mechanisms.
rungu8The 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.

FieldTypeOptionalSinceAbout
minarray<i32, 3>
maxarray<i32, 3>

Type CellSet

The cells of a voxel-outline shape.

Enum.

IndexVariantPayloadSinceAbout
0Bits{ 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.
1Sparse{ 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.

IndexVariantPayloadSinceAbout
0Solidnone
1Layeru32

Type ChannelDecl

One channel declaration (§4.1).

Struct.

FieldTypeOptionalSinceAbout
namestringThe channel’s name, unique within the mod: [a-z0-9_-], at most [MAX_CHANNEL_NAME_BYTES].
directionChannelDirection
reliabilityReliability
max_message_bytesu32Largest message the mod sends on this channel, clamped to [INLINE_HARD_CAP_BYTES] and the server’s configuration.
rateRate
requiresoption<string>yesA permission node a client sender must hold; messages from senders without it are dropped before the guest sees them (§4.3).
messageoption<string>yesThe 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.

IndexVariantPayloadSinceAbout
0ClientToServernone
1ServerToClientnone
2Bothnone

Type ClickButton

Which mouse button drove a slot click. Append-only (postcard variant index).

Enum.

IndexVariantPayloadSinceAbout
0Leftnone
1Rightnone

Type ClickPhase

A click’s phase.

Enum.

IndexVariantPayloadSinceAbout
0Pressnone
1ReleasenoneThe button that pressed on the node was released, wherever the pointer is.

Type ColliderShape

Collider geometry in body-local coordinates.

Enum.

IndexVariantPayloadSinceAbout
0Cuboid{ half_extents: array<f32, 3> }
1Sphere{ radius: f32 }
2CapsuleY{ half_height: f32, radius: f32 }

Type Color

A literal colour or a theme token.

Enum.

IndexVariantPayloadSinceAbout
0Srgba8array<u8, 4>sRGB with straight alpha, as authored (#e8c547 is [0xe8, 0xc5, 0x47, 255]).
1Lineararray<f32, 4>Linear RGB with straight alpha, as the renderer consumes it.
2Token{ 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.

IndexVariantPayloadSinceAbout
0Leafnone
1Branch{ 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.

FieldTypeOptionalSinceAbout
pathlist<string>Full command path tokens (e.g. ["time", "set"]).
helpstringHelp text for the command.
system_idu32System-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.

FieldTypeOptionalSinceAbout
pathlist<string>Full path from the registry root, e.g. ["time"] or ["time","set"].
kindCommandKindWire
permPermissionLevelWire
helpstring
usageoption<string>yes

Type CommandPayload

A command’s payload; its kind must match the action’s declared [manifold_engine::CommandKind].

Enum.

IndexVariantPayloadSinceAbout
0Target{ 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).
1Point{ pos: array<f32, 3> }
2TargetPoint{ entity: NetBinding, pos: array<f32, 3> }
3Slot{ index: u16 }
4Byteslist<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.

FieldTypeOptionalSinceAbout
local_idstringUnqualified local component name (e.g. "mana"); host composes the namespace.
schemalist<FieldSchemaWire>Ordered field layout. Position determines postcard byte offset.
replicationReplicationWire

Type ComponentOverride

One path-keyed override targeting a node (by id) in the named definition.

Struct.

FieldTypeOptionalSinceAbout
targetstringid of the target node inside the definition (its OWN direct nodes only).
propertyOverrideProperty

Type ConflictKind

Why a revert or reapply refused to write.

Enum.

IndexVariantPayloadSinceAbout
0ChangednoneAnother player or process changed cells since the record was made (compare-and-set against the recorded values failed).
1UnmappablenoneThe 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.

FieldTypeOptionalSinceAbout
kindConflictKind
cellsu64Cells that failed the check.
samplelist<BlockPos>Up to [CONFLICT_SAMPLE_MAX] of them, in record order.

Type ContextDeclWire

A context declaration (§10.1, §15.1).

Struct.

FieldTypeOptionalSinceAbout
idstringnamespace:local.
kindContextKindWireBase or layer.
bandBandWireThe band.
priorityu16Priority within the band.
sinkSinkWireUnbound controls it consumes.
sink_pointerPointerScopeWireWhere its pointer sink applies.
cursorCursorModeWireThe cursor it asks for.
exclusiveboolIts owner alone sees its actions.
active_whileoption<string>yesA Button action; the layer applies only while it is held.
never_withlist<string>Contexts it is never stacked with.
blockslist<string>Actions released and suppressed while it is effective.
backBackBehaviourWireWhat back does.

Type ContextKindWire

Base or layer.

Enum.

IndexVariantPayloadSinceAbout
0Basenone
1Layernone

Type CursorModeWire

The cursor a context asks for.

Enum.

IndexVariantPayloadSinceAbout
0Grabbednone
1Freenone
2Inheritnone

Type DefaultBindingDeclWire

One default binding.

Struct.

FieldTypeOptionalSinceAbout
slotSlotWireThe slot.
binding_ronstringThe binding, as RON (§8.1).
hostDefaultHostWireThe host it applies to.

Type DefaultHostWire

The host a default applies to (D38).

Enum.

IndexVariantPayloadSinceAbout
0Anynone
1Nativenone
2Browsernone

Type DepthMode

How a node is depth-tested against the scene.

Enum.

IndexVariantPayloadSinceAbout
0OccludednoneNormal depth test against the scene.
1AlwaysnoneDrawn over the scene.
2XRaynoneVisible parts drawn normally; hidden parts drawn dimmed.

Type Direction

Enum.

IndexVariantPayloadSinceAbout
0Horizontalnone
1Verticalnone

Type DockRegion

A fixed dock region of a workbench.

Struct.

FieldTypeOptionalSinceAbout
sizef32
resizableboolyesA splitter whose position persists for the player.
contentNode

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.

IndexVariantPayloadSinceAbout
0PhysicsnoneDaedalus G’s manifold:physics/physics.
1BlocksnoneEnki B’s block-read and block-transaction.
2EntitynoneTalos G’s manifold:entity/entity.
3AnimationnonePygmalion H’s manifold:model/animation.
4GameplaynoneTalos G’s manifold:entity/gameplay.
5AinoneTalos G’s manifold:entity/ai.

Type DomainAccess

One system’s declared access to a [Domain]. write implies read.

Struct.

FieldTypeOptionalSinceAbout
domainDomain
readbool
writebool

Type DragPhase

A drag’s phase.

Enum.

IndexVariantPayloadSinceAbout
0Startnone
1Updatenone
2EndnoneThe button was released: commit proposed.
3CancelnoneThe drag ended without a result (the gizmo vanished).

Type DriveMode

What a drive does.

Enum.

IndexVariantPayloadSinceAbout
0Offnone
1Velocity{ target: f32 }Constant speed: m/s or rad/s.
2Servo{ target: f32, max_speed: f32, max_accel: f32 }Profiled move to a target at bounded speed and acceleration, then hold.
3Spring{ target: f32, frequency_hz: f32, damping_ratio: f32 }Raw spring-damper toward a position, mass-independent gains (C1).
4Length{ 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.

IndexVariantPayloadSinceAbout
0Nonenone
1LanguagesnoneEvery installed language, named in itself, valued by its BCP 47 tag. Tags already among the authored options are skipped.

Type DropdownOption

Struct.

FieldTypeOptionalSinceAbout
labelTextValue
valueUiValue

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.

FieldTypeOptionalSinceAbout
listBindingPath
key_fieldstring
label_fieldstring

Type Ellipsis

What is shown when text is cut by max_lines.

Enum.

IndexVariantPayloadSinceAbout
0EndnoneEnd the last visible line with “…”.
1ClipnoneCut 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.

FieldTypeOptionalSinceAbout
disable_skyboolDisable 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.

FieldTypeOptionalSinceAbout
local_idstring
component_keyslist<string>
novel_defaultslist<tuple<string, list<u8>>>yesPer-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.

FieldTypeOptionalSinceAbout
entityu64Session handle (Entity::to_bits). Cheap; invalid after a restart. Zero when unknown.
idu64The 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.

FieldTypeOptionalSinceAbout
type_idu64
sideSide
capacityu32Ring-buffer capacity. Default per spec is 64.

Type Extent

A local-space box: where FACES handles sit.

Struct.

FieldTypeOptionalSinceAbout
minarray<f32, 3>
maxarray<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.

IndexVariantPayloadSinceAbout
0U8none
1U16none
2U32none
3U64none
4I8none
5I16none
6I32none
7I64none
8F32none
9F64none
10Boolnone
11Stringnone

Type FieldRef

One segment of a binding path. Slice A supports field access and array indexing; deeper structures wait until Slice B+.

Enum.

IndexVariantPayloadSinceAbout
0Fieldstring
1Indexu32

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.

FieldTypeOptionalSinceAbout
namestring
kindFieldKindWire

Type FocusProps

A node’s part in directional focus navigation.

Struct.

FieldTypeOptionalSinceAbout
focusableoption<bool>yesNone: true for interactive widgets, false otherwise.
default_focusboolyesTakes focus when its layer or scope is entered.
navNavOverridesyesPer-direction overrides of the spatial search. Boxed so the field, which every node carries, stays small; serde is unaffected.
scopeoption<FocusScope>yesWhen set, this node’s children form a focus scope.

Type FocusScope

A focus scope: how navigation behaves among a node’s children.

Struct.

FieldTypeOptionalSinceAbout
wrapWrapyes
remember_lastboolyesRe-entering the scope restores the child that last had focus.
gridboolyesChildren are laid out in rows and columns (inventories, grids).

Type FontSpec

Struct.

FieldTypeOptionalSinceAbout
familystring
size_pxf32
weightFontWeight

Type FontWeight

Enum.

IndexVariantPayloadSinceAbout
0Lightnone
1Regularnone
2Mediumnone
3SemiBoldnone
4Boldnone

Type GhostCells

The cells of a ghost-blocks shape: a pending edit’s block values.

Enum.

IndexVariantPayloadSinceAbout
0Dense{ 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.
1Sparse{ cells: list<tuple<array<i32, 3>, u32>> }The listed cells and their values.

Type GizmoHandle

One handle of a gizmo.

Enum.

IndexVariantPayloadSinceAbout
0AxisAxisTranslate along the axis.
1PlaneAxisTranslate in the plane normal to the axis.
2CentrenoneTranslate in the view plane.
3RingAxisRotate about the axis.
4ScaleAxisScale along the axis.
5Face{ 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.

IndexVariantPayloadSinceAbout
0Worldnone
1LocalnoneThe 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.

FieldTypeOptionalSinceAbout
handlesGizmoHandles
spaceGizmoSpace
translate_stepf32Translation and face snapping, in blocks; 0 = free.
rotate_step_degf32Rotation snapping, in degrees; 0 = free.
scale_stepf32Scale snapping, in scale units; 0 = free.
coarse_modifieroption<Modifier>yesHeld, the coarse steps below apply (e.g. Ctrl: 1 block, 15°).
coarse_translate_stepf32
coarse_rotate_step_degf32
free_modifieroption<Modifier>yesHeld, nothing snaps (e.g. Shift).
size_pxf32The handles’ constant screen size, in pixels.
extentoption<Extent>yesThe 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.
attachedlist<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.

FieldTypeOptionalSinceAbout
lockedboolyesHard floor: when true, every transform is rejected regardless of per-op flags.
reskinboolyesWhether reskin transforms are permitted. false is the only concealment-safe setting.
move_boolyesWhether Move ops are permitted.
hideboolyesWhether 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.

FieldTypeOptionalSinceAbout
layerstringHudLayerDef key, e.g. "flagship:block_indicator".
anchoroption<string>yesReserved 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.

FieldTypeOptionalSinceAbout
local_idstring
replicationReplicationWire
default_bytesbytesPostcard-encoded default value (guest’s T::default() thunk).

Type ImageFacing

How an image node faces.

Enum.

IndexVariantPayloadSinceAbout
0FixednoneA quad in the node’s local XY plane, facing local +Z.
1BillboardYnoneTurned towards the camera about the world Y axis.
2BillboardnoneTurned towards the camera.

Type ImageFilter

How an image is sampled.

Enum.

IndexVariantPayloadSinceAbout
0Nearestnone
1Linearnone

Type ImageFit

Enum.

IndexVariantPayloadSinceAbout
0Fitnone
1Fillnone

Type ImageShape

An image node: a quad textured with an image the owner registered.

Struct.

FieldTypeOptionalSinceAbout
imageu32
sizearray<f32, 2>Width and height, in blocks, centred on the node’s origin.
facingImageFacing
opacityf320..=1.
filterImageFilter
uvarray<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.

IndexVariantPayloadSinceAbout
0AssetstringA PNG or JPEG in the owner’s asset bundle, by path in it.
1LocalstringA file in the owner’s local-files store (Enki B §7).
2EncodedbytesPNG or JPEG bytes the owner holds.

Type InputCommandKindWire

The command payload an action accepts (§13.6).

Enum.

IndexVariantPayloadSinceAbout
0Targetnone
1Pointnone
2TargetPointnone
3Slotnone
4Bytesnone

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.

FieldTypeOptionalSinceAbout
roleInputRoleWireThe semantic role this binding covers.
action_namestringFully-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.

IndexVariantPayloadSinceAbout
0JumpnoneJump action.
1ToggleFlightnoneToggle flight mode.
2MovenoneHorizontal movement, an Axis2D action (input spec §14.2).
3MoveVerticalnoneVertical movement, an Axis1D action.
4SneaknoneSneak / crouch.
5SprintnoneSprint.
6DebugSpeednoneDebug speed multiplier (10×).
7BreaknoneBreak / mine the targeted block.
8PlacenonePlace a block.
9InteractnoneInteract with the targeted entity or block.
10PushToTalknoneHold to transmit voice chat. Appended: postcard variant order is wire.
11OpenInventorynoneToggle 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.

FieldTypeOptionalSinceAbout
item_idu32
countu16

Type JointBackendHint

The solver backend the planner should prefer (§5.1).

Enum.

IndexVariantPayloadSinceAbout
0Autonone
1Impulsenone
2Multibodynone

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.

FieldTypeOptionalSinceAbout
modeDriveMode
max_forcef32Newtons (slider, rope, spring) or newton-metres (hinge). Required; there is no “infinite” drive.

Type JointEnd

One end of a joint.

Enum.

IndexVariantPayloadSinceAbout
0Body{ frame: JointFrame }The body is the target of this end’s relationship: [JointA] for a, [JointB] for b.
1World{ 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.

FieldTypeOptionalSinceAbout
originarray<f32, 3>
rotationarray<f32, 4>Maps the joint’s principal axis (+X) and secondary axis (+Y).
celloption<array<i32, 3>>yesThe 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.

IndexVariantPayloadSinceAbout
0Fixednone
1Hinge{ limits?: option<array<f32, 2>> }
2Slider{ limits?: option<array<f32, 2>> }
3Ball{ twist?: option<array<f32, 2>>, swing_y?: option<array<f32, 2>>, swing_z?: option<array<f32, 2>> }
4Rope{ length: f32, min_length: f32 }
5Spring{ rest_length: f32, stiffness: f32, damping: f32, limits?: option<array<f32, 2>> }
6KeepUpright{ strength_hz: f32, damping_ratio: f32 }
7NoCollidenone

Type JointOrigin

Who created a joint and why.

Enum.

IndexVariantPayloadSinceAbout
0AuthorednoneToolgun, console, mod.
1Block{ template: string }A mechanical block (§8), by template id.
2ConnectornoneA docking lock (§8.5).
3RagdollnoneA Pygmalion ragdoll (§4.8).

Type JointRejection

Why a joint is not simulated and will not be retried until it changes.

Enum.

IndexVariantPayloadSinceAbout
0InvalidEndsnonea is not a body end, or both ends name the same body.
1CrossSpacenoneBoth bodies and the joint are not in one world space.
2InvalidFramenoneA frame is non-finite, not normalised, or too far from its body.
3InvalidLimitsnoneLimits are non-finite or inverted.
4InvalidDrivenoneDrive values are non-finite, negative or above the ceiling.
5BodyJointBudgetnoneA body already carries max_joints_per_body joints.
6BudgetnoneThe world space holds max_joints joints.
7EndpointUnavailablenoneA body end did not become simulated within pending_ticks.
8UnsupportednoneThe 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.

FieldTypeOptionalSinceAbout
natural_frequencyf32
damping_ratiof32

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.

FieldTypeOptionalSinceAbout
positionf32Slider metres; hinge unwrapped radians; rope/spring distance.
velocityf32
drive_forcef32Applied drive force or torque, calibrated (N or N·m).
load_forcef32Constraint load on the locked linear axes, limits and linear motors, calibrated (N). Measured from C1 (breakage); 0 until then.
load_torquef32The same on the angular axes (N·m); 0 until C1.
flagsJointFlags
turnsi32Hinge only: whole turns, persisted so unwrapped angles survive a restart.

Type JointStatus

A joint’s runtime status.

Enum.

IndexVariantPayloadSinceAbout
0Pending{ reason: PendingReason, since: u64 }Valid, waiting to be simulated since tick since.
1ActivenoneSimulated.
2UnresolvednoneA body end’s target is not loaded (RelTarget { entity: None, .. }): kept, re-saved and relinked when the body spawns (§10.3).
3RejectedJointRejection

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.

FieldTypeOptionalSinceAbout
format_versionu16[JOINT_VIEW_FORMAT_VERSION] when written by this host.
jointEntityRef
statusJointStatusPending, active, unresolved or rejected with the reason.
stateoption<JointState>yesThe last step’s position, velocity, drive force and load; None while the joint is not simulated.

Type KeyId

Tuple struct: (u32).

Type LabelDocument

Struct.

FieldTypeOptionalSinceAbout
lineslist<LabelLine>
imageoption<LabelImage>yes
text_alignLabelTextAlign
image_placementLabelImagePlacement

Type LabelImage

Struct.

FieldTypeOptionalSinceAbout
addressstringNamespaced icon address, e.g. flagship:cog.
sizearray<f32, 2>Requested display extent in logical points.

Type LabelImagePlacement

Enum.

IndexVariantPayloadSinceAbout
0leftnone
1rightnone
2abovenone
3belownone

Type LabelLine

Struct.

FieldTypeOptionalSinceAbout
runslist<LabelRun>

Type LabelRun

Struct.

FieldTypeOptionalSinceAbout
textstring
colorarray<u8, 4>
sizeLabelSize
boldbool
italicbool

Type LabelSize

Enum.

IndexVariantPayloadSinceAbout
0smallnone
1bodynone
2largenone

Type LabelTextAlign

Enum.

IndexVariantPayloadSinceAbout
0leftnone
1centernone
2rightnone

Type LayerBack

What manifold:system.back does while this layer (a Window or a Workbench) is on top.

Enum.

IndexVariantPayloadSinceAbout
0ClosenoneClose the layer (a server-authority UI dispatches Closed, as today).
1ParentnoneGo up one level of the window’s nested pages.
2ActionActionDefDispatch this action instead of closing.

Type LayoutOp

Move or hide a HUD layer.

WIRE-STABLE: new variants may only be appended.

Enum.

IndexVariantPayloadSinceAbout
0Hidenone
1Move{ 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.

FieldTypeOptionalSinceAbout
targetHookTarget
opLayoutOp

Type LimitDecl

One [[limits]] entry (§8.7): per-level defaults and the ceiling for server configuration and the local host.

Struct.

FieldTypeOptionalSinceAbout
namestring
default_playeri64
default_admini64
maxi64

Type LineMode

How a lines shape’s points pair up.

Enum.

IndexVariantPayloadSinceAbout
0StripnoneA polyline through every point in order.
1SegmentsnoneIndependent 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.

IndexVariantPayloadSinceAbout
0StrstringUntranslated text: user input, a proper name, a file path. Always bidi-isolated when substituted.
1Inti64An integer, formatted per locale and usable as a plural selector.
2Floatf64A decimal number, formatted per locale.
3KeystringAnother message, resolved (without arguments) in the reader’s language.
4TextLocalizedTextAnother message with its own arguments.
5ItemstringA namespaced item or block id (flagship:dirt). Resolves to that item’s display name in the reader’s language.
6PlayerstringA player’s display name. User text: isolated, never translated.
7DurationMsu64A duration in milliseconds.
8TimestampMsi64A point in time, milliseconds since the Unix epoch (UTC).
9Currency{ 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.

FieldTypeOptionalSinceAbout
namestring
kindBindingValueKind
defaultBindingValue
persistboolyesPersist 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.

FieldTypeOptionalSinceAbout
keystringNamespaced key, <mod_id>.<segment>(.<segment>)*. See [key].
argslist<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.

IndexVariantPayloadSinceAbout
0Item{ 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.
1Submenu{ label: TextValue, items: list<MenuItem> }
2Separatornone
3DockPanels{ 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.

IndexVariantPayloadSinceAbout
0Autonone
1Nevernone

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.

FieldTypeOptionalSinceAbout
format_versionu16[DECLARATIONS_FORMAT_VERSION] when written by this SDK.
start_context_versionu16The [StartContext] format version this mod’s SDK decodes. The host encodes the context it passes to start at this version.
sharedlist<PluginManifestWire>Side-less declarations (blocks, actions, archetypes) and those of either side. One entry per plugin in the component.
serverlist<PluginManifestWire>Server-side declarations: the server instance’s systems, resources and events.
clientlist<PluginManifestWire>Client-side declarations.
commands_serverlist<CommandLeafWire>Server command leaves.
commands_clientlist<CommandLeafWire>Client command leaves.
synced_resourceslist<ResourceSyncSpecWire>Server-to-client sync specs, by index into the host’s table.
engineEngineRequestsEngine-feature requests.
permissionsModPermissionsThe 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.
channelslist<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.

FieldTypeOptionalSinceAbout
useslist<string>Platform nodes this mod’s own (mod-self) operations need, shown to the operator with its imports.
declarelist<PermissionDecl>
limitslist<LimitDecl>
physicsPhysicsQuotaDecl[physics]: the mod’s physics quotas.

Type Modifier

A modifier key.

Enum.

IndexVariantPayloadSinceAbout
0Shiftnone
1Ctrlnone
2Altnone
3Metanone

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.

FieldTypeOptionalSinceAbout
upNavTargetyes
downNavTargetyes
leftNavTargetyes
rightNavTargetyes

Type NavTarget

Where one direction moves focus.

Enum.

IndexVariantPayloadSinceAbout
0NonenoneThe spatial search decides.
1NodestringThe node with this id in the same document. ui-validate rejects an unknown id.
2StopnoneFocus 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.

FieldTypeOptionalSinceAbout
net_idNetEntityId
generationu8

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.

IndexVariantPayloadSinceAbout
0Window{ 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 }
1Box{ 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 }
2Label{ 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 }
3ProgressBar{ 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 }
4Button{ 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 }
5Slot{ 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 }
6HBox{ 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 }
7VBox{ 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 }
8Grid{ 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 }
9Margin{ 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 }
10Anchor{ 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).
11Shape{ 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).
12Scroll{ 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 }
13TextEdit{ 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 }
14Slider{ 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 }
15Checkbox{ 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 }
16Dropdown{ 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 }
17Image{ 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 }
18Tooltip{ 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 }
19ForEach{ 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.
20Fragment{ 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.
21Component{ 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).
22ExtensionPoint{ 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.
23CarriedCursor{ 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.
24LocalState{ 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.
25Workbench{ 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.
26ToolRail{ 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.
27PaneHeader{ 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).
28StatusBar{ 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.
29KeyHint{ 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).
30PropertyRow{ 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.
31Group{ 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).
32Segmented{ 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).
33NumberField{ 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).
34Vec3Field{ 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.

IndexVariantPayloadSinceAbout
0Scrubnone
1Slidernone

Type OverflowWrap

What happens to a word wider than its box.

Enum.

IndexVariantPayloadSinceAbout
0NormalnoneBreak only at line-break opportunities; a long word overflows.
1BreakWordnoneBreak inside a word only if it would otherwise overflow. UI default.
2AnywherenoneBreak 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.

IndexVariantPayloadSinceAbout
0Hover{ 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.
1Click{ 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.
2GizmoDrag{ 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.
3Overflow{ dropped: u32 }Events were dropped since the last drain: the queue was full.

Type OverlayNode

One retained node.

Struct.

FieldTypeOptionalSinceAbout
shapeShape
styleStyle
transformTransform
visiblebool
pickableboolWhether 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.
orderi16Draw 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.

IndexVariantPayloadSinceAbout
0RegisterImage{ 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.
1ReleaseImage{ id: u32 }Releases an image; nodes still naming it draw the placeholder.
2Create{ id: u32, node: OverlayNode }Adds a node; the id must be free.
3SetTransform{ id: u32, transform: Transform }
4SetShape{ id: u32, shape: Shape }
5SetStyle{ id: u32, style: Style }
6SetVisible{ id: u32, visible: bool }
7SetPickable{ id: u32, pickable: bool }
8SetOrder{ id: u32, order: i16 }
9Remove{ id: u32 }
10ClearnoneRemoves 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.

IndexVariantPayloadSinceAbout
0TextTextValueReplace a text-bearing field (Label.text, Window.title, Button.label).
1ValueValueSourceReplace a value source (ProgressBar.value).
2StyleClassoption<string>Replace the node’s style_class.
3VisibleWhenoption<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.

IndexVariantPayloadSinceAbout
0WorldnoneThe world itself: ambient creatures, engine spawns, restore and boot.
1Playerarray<u8, 16>A player, by PlayerUuid (PlayerRecord.uuid), whether or not they are online.
2ModstringA mod, by id.

Type PendingReason

Why a joint waits.

Enum.

IndexVariantPayloadSinceAbout
0EndpointUnavailablenoneA body end is not simulated yet (spawned this tick, rejected by a body budget, Disabled, or just recreated).
1SuspendednoneThe 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.

FieldTypeOptionalSinceAbout
namestring
defaultPermissionDefault

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.

IndexVariantPayloadSinceAbout
0Playernone
1Adminnone

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.

IndexVariantPayloadSinceAbout
0Playernone
1Adminnone

Type PhysicsBatchOutcome

Enum.

IndexVariantPayloadSinceAbout
0Applied{ created: list<tuple<u16, EntityRef>>, joints: list<tuple<u16, JointStatus>>, outcomes: list<tuple<u16, list<u8>>>, failed: list<tuple<u16, PhysicsReject>> }
1Rejected{ 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.

FieldTypeOptionalSinceAbout
batchu64
ticku64The tick the batch applied in.
outcomePhysicsBatchOutcome

Type PhysicsBody

Authored rigid-body behavior. Solver handles are deliberately absent.

Struct.

FieldTypeOptionalSinceAbout
kindPhysicsBodyKind
gravity_scalef32
linear_dampingf32
angular_dampingf32
can_sleepbool
ccd_enabledbool
dominancei8

Type PhysicsBodyKind

Supported rigid-body motion models.

Enum.

IndexVariantPayloadSinceAbout
0DynamicnoneIntegrated by forces, contacts, and gravity.
1FixednoneImmovable authored geometry.
2KinematicPositionnoneAuthored by its next position and treated as having infinite mass.
3KinematicVelocitynoneAuthored 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.

IndexVariantPayloadSinceAbout
0BodynoneThe world space’s simulated bodies.
1CollidernoneThe world space’s Rapier colliders.
2CommandnoneThis tick’s engine command queue (MAX_PHYSICS_COMMANDS).
3AssemblyVoxelsnoneThe 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.

FieldTypeOptionalSinceAbout
shapeColliderShape
offsetarray<f32, 3>
densityf32kg/m³.
frictionf32Combined with Min against the other collider.
restitutionf32Combined with Max against the other collider.
sensorbool
collision_membershipsu32
collision_filteru32

Type PhysicsJoint

Durable joint descriptor. Contains no Rapier handle and no entity handle.

Struct.

FieldTypeOptionalSinceAbout
aJointEnd
bJointEnd
kindJointKind
collide_connectedboolContacts between the two bodies. Default false (GMod “nocollide” on).
backendJointBackendHintPlanner hint; Auto in almost all content (§5.1).
softnessoption<JointSoftness>yesOverride of the planner’s softness. None = policy (§5.4).
originJointOriginWho 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.

IndexVariantPayloadSinceAbout
0SpawnPrimitiveSpawnPrimitive0: a primitive body.
1Assemble{ 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.
2CreateJoint{ 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).
3SetDrive{ joint: Target, drive: JointDrive }3: replace a joint’s whole drive record.
4Remove{ target: Target }4: remove a body, joint or field.
5ApplyImpulse{ body: Target, impulse: BodyImpulse }5: an impulse on a body.
6ExtractBlock{ 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.

FieldTypeOptionalSinceAbout
bodiesoption<u32>yesphysics.owned-bodies.max for the mod.
voxelsoption<u32>yesphysics.owned-voxels.max for the mod.
collidersoption<u32>yesphysics.colliders.max for the mod.
awake_bodiesoption<u32>yesphysics.awake-bodies.max for the mod.
jointsoption<u32>yesphysics.joints.max for the mod.
ops_per_tickoption<u32>yesPhysics 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.

IndexVariantPayloadSinceAbout
0NotPermittedstring0: the capability node the actor lacks, by name.
1NoRightRight1: the right the actor lacks on a target.
2Limit{ name: string, value: i64 }2: one of the actor’s valued limits (G §6.3), by name, and its value.
3Quotastring3: the owner is at a quota (A §13.2, G §6.3), by its catalogue key.
4UnknownTargetnone4: the target does not exist (any more), or names nothing.
5InvalidValueValueCode5: a value failed the op’s checks.
6Unsupportedu166: an op kind, or a target form, this host does not apply.
7Malformednone7: the op record does not decode.
8BudgetPhysicsBudget8: a physics budget is spent.
9RegionFrozennone9: the target’s physics region is frozen (A §13.4).
10ProtectedProtectionCode10: a protection refused a world-cell op.
11Reservednone11: a written cell is reserved (B’s GridReservations).
12RegionBusynone12: another in-flight world edit overlaps the op’s cells.
13ChunkNotLoadednone13: the op touches a chunk that is not loaded.
14TooLargenone14: the op’s selection is larger than the host reads at once.
15Supersedednone15: a later op wrote the same joint’s drive in the same tick (G §5.4).
16VetoedLocalizedText16: the game’s reviewer refused the world edit, with its own player-facing reason.
17WrongTargetTargetKind17: the target is not the kind of object the op works on.
18OwnerNotAllowednone18: the op names an owner its actor may not create for (G §3.5).
19NotInstallednone19: physics, assemblies, the transaction engine or entity identity are not installed or not ready on this world.
20JointJointRejection20: C refused the joint (C §3.3), by C’s own code.
21SubmitSubmitError21: the world-cell op’s transaction was not accepted for submission.
22TransactionTxnReject22: the world-cell op’s transaction was refused for a reason with no spelling above (Enki B §2.2); nothing was written.
23ConflictConflictReport23: the world-cell op’s cells changed between the op and its commit.

Type PhysicsRender

Replicated, solver-independent presentation description.

Struct.

FieldTypeOptionalSinceAbout
primitiveu8
sizearray<f32, 3>
colorarray<f32, 4>
block_idu16Source 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.

IndexVariantPayloadSinceAbout
0SelectHotbarSlotu8
1SendChatstring
2OpenBlockUi{ ui_id: string, target_block: array<i32, 3> }
3EditBlock{ pos: array<i32, 3>, action: u8 }

Type PluginManifestWire

Wire form of one plugin’s full registrations.

Struct.

FieldTypeOptionalSinceAbout
terrain_recipeslist<TerrainRecipeWire>Server-only declarative terrain providers, authenticated by the host.
plugin_idstring
eventslist<EventDeclWire>
systemslist<SystemDeclWire>
blockslist<BlockDefWire>Block definitions this plugin contributes (raw RON, folded host-side via parse_and_register_block). F3 Slice B.
actionslist<ActionDeclWire>Input-action definitions this plugin contributes (key + optional default binding RON, folded host-side). F3 Slice C.
entity_archetypeslist<EntityArchetypeWire>Entity-archetype declarations this plugin contributes (local id + component key refs, folded host-side). F3 Slice A.
componentslist<ComponentDeclWire>yesNovel 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.
commandslist<CommandNodeWire>yesGuest-declared server console commands (faithful tree). #[serde(default)] so older v6 payloads decode cleanly with an empty vec. (M4c-3)
input_role_bindingslist<InputRoleBindingWire>yesRole→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_archetypeoption<string>yesLocal 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_resourceslist<HostResourceDeclWire>yesGuest-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.
contextslist<ContextDeclWire>yesInput 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.

FieldTypeOptionalSinceAbout
overlay_namestring
schemaUiFieldSchema

Type PointerScopeWire

Where a pointer sink applies.

Enum.

IndexVariantPayloadSinceAbout
0Everywherenone
1WhenOverUinone

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.

FieldTypeOptionalSinceAbout
anchorAnchor2D
offsetVec2
mirrorMirroryes

Type Pred

Enum.

IndexVariantPayloadSinceAbout
0Andlist<Pred>All children must be true. Empty And is vacuously true.
1Orlist<Pred>Any child true. Empty Or is vacuously false.
2NotPredNegation.
3BindBindingPathRead a bool-kinded binding. Non-bool kinds → eval false + warn (see manifold-ui-runtime::pred_eval).
4LiteralboolConstant bool. Useful for debug HUDs that want unconditional visibility: visible_when: Literal(true).
5Eq{ 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.

IndexVariantPayloadSinceAbout
0U16Normalizednone
1F32Directnone

Type PromptStyle

How an input-action prompt is drawn (input system spec §17.1).

Enum.

IndexVariantPayloadSinceAbout
0Glyphnone
1Textnone
2GlyphAndTextnone

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.

IndexVariantPayloadSinceAbout
0Policy{ by: ModId, node: string }A mod’s edit-policy protection (Enki B §3.3): the protecting mod and the node its boxes require.
1ReviewModIdA reviewer’s veto (Enki B’s plugin-review), by the reviewing mod.
2RulestringAn 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.

FieldTypeOptionalSinceAbout
messages_per_secu32
bytes_per_secu32
burstu32

Type RayHit

What a client ray cast hit first (Enki B §5.6).

Enum.

IndexVariantPayloadSinceAbout
0Block{ pos: array<i32, 3>, normal: array<i8, 3>, value: u32, distance: f32 }
1Overlay{ node: u32, normal: array<f32, 3>, distance: f32 }A pickable node of the caller’s own scene.
2Entity{ 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.

IndexVariantPayloadSinceAbout
0Positionarray<f32, 3>
1BlockHit{ pos: array<i32, 3>, block_id: u32, distance: f32 }
2CameraModeu8
3TimeOfDayf32
4HotbarSelectionu8
5Containerlist<option<ItemStackView>>

Type Readout

A sunken readout in a StatusBar’s end zone.

Struct.

FieldTypeOptionalSinceAbout
valueTextValue
unitoption<TextValue>yes
tooltipoption<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.

FieldTypeOptionalSinceAbout
namestring
fieldslist<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.

IndexVariantPayloadSinceAbout
0ReliableOrderednone
1UnreliableLatestnone

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.

IndexVariantPayloadSinceAbout
0OnChangenoneReplicate only when the changed-tick advances (byte-diff).
1EveryTicknoneReplicate every tick regardless of change.
2ManualnoneApplication 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.

IndexVariantPayloadSinceAbout
0ServerOnlynoneComponent lives only on the server; never sent to clients.
1ClientOnlynoneComponent lives only on the client; never sent from/to server.
2Replicated{ 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.

IndexVariantPayloadSinceAbout
0LayerHookTarget
1AllHudLayersnone

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.

FieldTypeOptionalSinceAbout
scopeReskinScope
overridesmap<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.

FieldTypeOptionalSinceAbout
type_namestringStable debug name: "<plugin>:<TypeName>". Must match the corresponding entry in the host’s ResourceSyncSpecTable.
spec_indexu32Index into the host’s ResourceSyncSpecTable. The host validates that table[spec_index].type_name == self.type_name as a sanity check.
initial_snapshot_on_joinboolWhether 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.

IndexVariantPayloadSinceAbout
0CommandnoneDirect the entity’s behaviour.
1ModifynoneChange its gameplay state.
2StructurenoneChange its existence or ownership.
3InteractnoneUse it as a player would (Daedalus G interact).
4OperatenoneRun 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.

IndexVariantPayloadSinceAbout
0StatenoneThe value at the end of the tick.
1DeltanoneThe 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.

IndexVariantPayloadSinceAbout
0ServerStartupnoneRuns once on the server during on_server_world_ready.
1ServerTicknoneRuns every server tick (40 Hz).
2ClientStartupnoneRuns once on the client during on_client_world_ready.
3ClientTicknoneRuns every client tick (40 Hz).

Type SegmentOption

One option of a Segmented control.

Struct.

FieldTypeOptionalSinceAbout
valueBindingValue
labeloption<TextValue>yes
iconoption<TextValue>yes
tooltipoption<TextValue>yesRequired 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.

IndexVariantPayloadSinceAbout
0Box{ 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.
1CellBlockPosOne 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.

IndexVariantPayloadSinceAbout
0Box{ 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.
1Lines{ points: list<array<f32, 3>>, mode: LineMode }A polyline or segment list (paths, axes, splines).
2VoxelOutlineCellSetThe outline of a set of cells: its merged exterior edges, in the edge colour and width.
3GhostBlocksGhostCellsA translucent preview of block values: the cells’ exterior faces, shaded per face, in the fill colour (the edge colour without one).
4Text{ anchor: array<f32, 3>, document: LabelDocument }A world label at anchor (world_label.rs).
5Marker{ anchor: array<f32, 3>, icon: string, size_px: f32 }A billboarded icon at anchor.
6ImageImageShapeA textured quad (reference images, annotations).
7GizmoGizmoSpecEngine-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.

IndexVariantPayloadSinceAbout
0Lines{ 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.

IndexVariantPayloadSinceAbout
0ServernoneServer-side only.
1ClientnoneClient-side only.
2BothnoneBoth server and client; registered on each independently.

Type SinkWire

A context’s sink.

Struct.

FieldTypeOptionalSinceAbout
keyboardbool
pointerbool
gamepadbool

Type SlotWire

A binding slot (§8.2).

Enum.

IndexVariantPayloadSinceAbout
0KBM0none
1KBM1none
2PAD0none
3PAD1none
4TOUCH0none

Type SpawnPrimitive

spawn-primitive’s payload (op 0): a primitive body in space.

Struct.

FieldTypeOptionalSinceAbout
spaceWorldSpaceId
positionarray<f64, 3>The body’s centre, a world position (f64 on the wire, G §5.2).
rotationRotation
velocityarray<f32, 3>
bodyPhysicsBody
colliderPhysicsCollider
renderPhysicsRender
owneroption<Owner>yesDerived 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.

FieldTypeOptionalSinceAbout
format_versionu16[START_CONTEXT_FORMAT_VERSION] when written by this host.
sideStartSideThe instance’s side.

Type StartSide

The side a starting instance runs on. Every instance is one side; a singleplayer game runs two instances.

Enum.

IndexVariantPayloadSinceAbout
0ServernoneThe server instance.
1ClientnoneThe client instance.

Type StatusHint

A key hint in a StatusBar’s start zone.

Struct.

FieldTypeOptionalSinceAbout
input_actionTextValueThe input action id, literal or bound.
labeloption<TextValue>yes
visible_whenoption<Pred>yes

Type StatusMessage

A StatusBar’s message line.

Struct.

FieldTypeOptionalSinceAbout
textTextValue
leveloption<BindingPath>yesA String binding: "info", "warn" or "error"; anything else (or none) is neutral.
progressoption<ValueSource>yesA 0–1 fraction drawn as a meter beside the message.

Type StorageScope

Where a server blob lives (storage-types.scope).

Enum.

IndexVariantPayloadSinceAbout
0WorldnonePer world, per mod.
1WorldPlayernonePer world, per mod, per player.

Type Stroke

Stroke geometry (width + color) for Node::Shape rendering.

Struct.

FieldTypeOptionalSinceAbout
widthf32
colorstring

Type Style

A node’s appearance.

Struct.

FieldTypeOptionalSinceAbout
edgeColorColour of lines, box edges, outlines and gizmo handle lines.
filloption<Color>yesBox faces and ghost blocks; None draws box edges only and ghosts in the edge colour.
width_pxf32Line and edge width in screen pixels, MIN_WIDTH_PX..=MAX_WIDTH_PX.
depthDepthMode

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.

IndexVariantPayloadSinceAbout
0Malformedu32Index of the first record whose framing is broken.
1TooManyOpsu32
2NotDeclarednoneThe calling system did not declare write access.
3QueueFullnone
4ActorUnknownnoneA player actor names no connected player, or a mismatched one.
5OtherstringA condition added after the track opened: a kebab-case code the owning spec documents. Diagnostic.

Type SystemDeclWire

Wire form of a system declaration.

Struct.

FieldTypeOptionalSinceAbout
namestring
scheduleSchedule
read_setlist<u64>Resource + event read-set (global, keyed by TypeId64).
write_setlist<u64>Resource + event write-set (global, keyed by TypeId64).
read_componentslist<u64>yesB2-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_componentslist<u64>yesB2-EC: entity-component write-set (applied by the entity bridge after the system runs). Empty until the macro populates it.
system_idoption<u32>yesAssigned by the host post-collection. None on guest→host; the host fills this in when building its dispatch table.
beforelist<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.
afterlist<string>
domainslist<DomainAccess>yesThe 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.

IndexVariantPayloadSinceAbout
0Entityu64A session handle.
1Stableu64A durable id, resolved through the identity index at apply.
2Pendingu16The entity created by op n earlier in the same batch.
3WorldnoneDaedalus: the static world of a space; rejected by entity ops.
4Rowu32Hook outputs only: the entity of input row n.

Type TargetKind

The kind of object an op needed where its target named something else.

Enum.

IndexVariantPayloadSinceAbout
0Bodynone
1Jointnone
2PhysicsnoneA 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.

FieldTypeOptionalSinceAbout
local_idstring
recipe_ronstring
baked_recipe_ronoption<string>yesOptional material/feature recipe used with immutable baked heightfields.
defaultbool

Type TextArg

An argument of a [TextValue::Localized] message.

Enum.

IndexVariantPayloadSinceAbout
0LiteralstringUntranslated text (bidi-isolated when substituted).
1BindBindingPathA bound value; numbers are formatted for the player’s locale.
2KeystringAnother message key, resolved in the player’s language.

Type TextDir

Paragraph direction of a text node.

Enum.

IndexVariantPayloadSinceAbout
0AutononeFrom the text’s first strong letter. The default for bound user data (chat, names, signs).
1Ltrnone
2Rtlnone
3LocalenoneFrom 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.

FieldTypeOptionalSinceAbout
diroption<TextDir>yesNone: Locale for Localized values, Auto for everything else.
overflow_wrapOverflowWrapyes
max_linesoption<u16>yesCut after this many lines. None: unlimited.
ellipsisEllipsisyes
untranslatedboolyesThis node’s Literal/Template text is intentionally untranslated (a proper name, a symbol). Silences ui-validate’s warning.

Type TextValue

Enum.

IndexVariantPayloadSinceAbout
0LiteralstringCreator 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.
1BindBindingPath
2Template{ 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}).
3Localized{ 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 &lt;mod_id>.&lt;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.

IndexVariantPayloadSinceAbout
0BrassnoneSelection, the active tool.
1BrassDimnone
2Oknone
3Warnnone
4ErrornoneRemoval, failures.
5Infonone
6Textnone
7TextDimnone

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.

IndexVariantPayloadSinceAbout
0Colorstring
1Pxf32
2FontFontSpec

Type ToolRailItem

An entry of a ToolRail.

Enum.

IndexVariantPayloadSinceAbout
0Tool{ 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.
1Separatornone

Type Transform

A node’s placement: world = translation + rotation * (scale * local).

Struct.

FieldTypeOptionalSinceAbout
translationarray<f64, 3>World position of the node’s origin, in blocks.
rotationarray<f32, 4>Unit quaternion [x, y, z, w].
scalearray<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.

IndexVariantPayloadSinceAbout
0Fill{ 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).
1Write{ target: CellTarget, bounds: BlockBox, width: ValueWidth, values: bytes, skip: u32 }1: dense values over a box; cells equal to skip are left unchanged.
2WriteSparse{ target: CellTarget, width: ValueWidth, packed: bytes }2: packed (x: i32, y: i32, z: i32, value) records.
3WriteIfUnchanged{ 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.
4Map{ target: CellTarget, bounds: BlockBox, lut: bytes }4: a value-to-value lookup table over a box (Enki A compiled masks).
5SetComponent{ pos: BlockPos, key: string, version: u16, bytes: bytes }5: an Enki A block component on one cell, in the declaring mod’s codec.
6RemoveComponent{ pos: BlockPos, key: string }6: remove a block component from one cell.
7Props{ ops: bytes }7: Enki D prop ops for the transaction’s props section: framed PropOp records (D §10.1).
8Revert{ record: BlobKey }8: undo a stored record, with compare-and-set (§2.7).
9Reapply{ record: BlobKey }9: redo a stored record, with compare-and-set.
10Expect{ 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.

FieldTypeOptionalSinceAbout
chunks_doneu32
chunks_totalu32

Type TxnReject

Why a transaction was refused. Nothing was written.

Enum.

IndexVariantPayloadSinceAbout
0NotPermittedstringThe missing node, an identifier.
1QuotanoneThe undo record would exceed the owner’s blob quota.
2Unsupportedu16An op kind this host does not implement.
3UnknownTargetnoneThe volume, or an undo record the transaction names, does not exist.
4Malformednone
5ActorUnknownnone
6ProtectedLocalizedTextA protection or review veto, with its reason.
7Unloadedu32Chunks the transaction touches that are not resident (unloaded = reject).
8TooLargeu64Cells the transaction would change, over the cap that applies.
9RegionBusynoneOverlaps another in-flight transaction.
10WaterBusynone
11InvalidValueu32
12Cancellednone
13StoragestringDiagnostic: an undo record could not be read or written.
14ReservednoneA written cell is reserved (Daedalus’s GridReservations).
15SealedComponentstringA section other than the component’s sealed writer would write it (Enki A5 writer: Section(..)). Carries the component key.
16HandlerMissingstringThe 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.
17ComponentOfflinestringThe 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.
18InvalidComponentstringA 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.
19UndoForbiddenstringThe 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.

IndexVariantPayloadSinceAbout
0Status{ id: u64, status: TxnStatus }The state of one transaction.
1Overflow{ 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.

IndexVariantPayloadSinceAbout
0PendingTxnProgress
1CommittedTxnSummary
2RejectedTxnReject
3ConflictConflictReportA revert or reapply found cells that no longer hold what its record expects. Nothing was written.

Type TxnSummary

Struct.

FieldTypeOptionalSinceAbout
changed_cellsu64Cells whose value differs from before the transaction.
skipped_cellsu64write-if-unchanged cells skipped because another writer changed them.
chunksu32Chunks with at least one changed cell.
boundsoption<BlockBox>yesBounds of the changed cells; None when nothing changed.
record_bytesu64Size of the undo record written, 0 when none was requested.

Type UiAuthority

Who builds a UI’s state and handles its events.

Enum.

IndexVariantPayloadSinceAbout
0ServernoneThe mod’s server instance; events cross the network (today’s rail).
1ClientnoneThe 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.

IndexVariantPayloadSinceAbout
0ButtonClicked{ node: NodeId, mods: ModifierSet }
1SlotDragged{ 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.
2ValueChanged{ node: NodeId, value: BindingValue }
3Reorder{ 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.
4SlotClicked{ 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.
5ClosednoneThe 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.
6ValuesChanged{ 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.

FieldTypeOptionalSinceAbout
namestring
kindBindingValueKind
elementoption<string>yesFor 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.

FieldTypeOptionalSinceAbout
fieldslist<UiField>
record_schemaslist<RecordSchemaWire>
hashu64

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.

FieldTypeOptionalSinceAbout
namespaceNamespaceId
keyKeyId

Type UiManifest

What a mod’s ui-manifest export returns (Enki C §1, §14): every UI the mod registers.

Struct.

FieldTypeOptionalSinceAbout
format_versionu16[UI_MANIFEST_FORMAT_VERSION] when written by this build.
registrationslist<UiRegistrationV2>

Type UiRegistrationV2

One UI a mod registers (Enki C §1).

Struct.

FieldTypeOptionalSinceAbout
keyKeyIdThe 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.
schemaUiFieldSchema
treeUiTreeSource
authorityUiAuthority
read_componentslist<u64>
write_componentslist<u64>
read_resourceslist<u64>
write_resourceslist<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.

FieldTypeOptionalSinceAbout
schema_hashu64
fieldslist<tuple<FieldId, BindingValue>>

Type UiTreeSource

Where a registration’s widget tree comes from.

Enum.

IndexVariantPayloadSinceAbout
0InlineNodeBuilt in code. Boxed to keep the enum small; serde is unaffected.
1AssetstringA 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.

IndexVariantPayloadSinceAbout
0Unitnone
1Boolbool
2I64i64
3F64f64
4Strstring
5Optionoption<UiValue>
6Listlist<UiValue>
7Maplist<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.

IndexVariantPayloadSinceAbout
0NonFinitenoneNaN or infinite.
1OutOfRangenoneOutside the range the field allows.
2WrongTypenoneNot the type the field holds (a schema payload’s kind mismatch).
3TooLargenoneLarger than the op allows (a list, a string, a volume).

Type ValueKindWire

An action’s value kind (§7.3).

Enum.

IndexVariantPayloadSinceAbout
0ButtonnoneA held bit plus edges.
1Axis1DnoneOne f32.
2Axis2DnoneTwo components.
3Axis3DnoneThree components.
4CommandnoneNo 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.

IndexVariantPayloadSinceAbout
0LiteralBindingValue
1BindBindingPath

Type ValueSource

Enum.

IndexVariantPayloadSinceAbout
0Literalf32
1BindBindingPath

Type ValueWidth

Bytes per cell in a packed cell buffer (block-types.value-width): 2 today, 4 if Enki A widens values.

Enum.

IndexVariantPayloadSinceAbout
0Twonone
1Fournone

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.

FieldTypeOptionalSinceAbout
xf32
yf32

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.

FieldTypeOptionalSinceAbout
idstring
headeroption<Node>yes

Type ViewportPanes

One viewport pane or four.

Enum.

IndexVariantPayloadSinceAbout
0OneViewportPane
1Quadarray<ViewportPane, 4>Boxed to keep WorkbenchArea small; serde is unaffected.

Type WorkbenchArea

The middle of a Workbench (Enki C §3.15).

Enum.

IndexVariantPayloadSinceAbout
0Fixed{ 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.
1DockedNodeA 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.

FieldTypeOptionalSinceAbout
cellBlockPos
offsetarray<f32, 3>Within the cell, [0, 1)^3.
rotationarray<f32, 4>
supported_by_cellboolIf 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.

IndexVariantPayloadSinceAbout
0Nonenone
1Horizontalnone
2Verticalnone
3Bothnone

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.

OffsetFieldScalarCountSinceAbout
0bodyu641Entity 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.

OffsetFieldScalarCountSinceAbout
0kindu810 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).
4distancef321Distance along the ray, metres.
8entityu641The hit body’s entity handle; 0 for terrain and props.
16idu641The hit body’s durable id, or a prop’s PropId.
24celli323The assembly’s grid-local cell, or the terrain block.
36normalf323The surface normal at the hit.

physics-rays

Owner daedalus · described in docs/architecture/physics-runtime.md#rays

Stride 40 bytes, little-endian.

OffsetFieldScalarCountSinceAbout
0originf643World origin, metres.
24dirf323Direction; normalized by the host.
36maxf321Length, metres.

sha256-digest

Owner enki · described in docs/architecture/block-transactions.md#registry-snapshot

Stride 32 bytes, little-endian.

OffsetFieldScalarCountSinceAbout
0digestu832The 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.

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.

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).