Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

data/presentation/

A presentation field: one value of the public manifold-gameplay:presentation component, which animation binding tables read (Field(..) and Counter(..) sources). Abilities write fields with SetPresentation and bump counters with BumpCounter, so a model can show a wind-up or recoil without its own component. The engine declares manifold:dead, which is set while an entity is dead. Keep a world under 32 fields.

Registrymanifold:presentation-field
Filesdata/presentation/*.ron, *.update.ron, *.final.ron
Sidesboth: the server and every client load it, and the handshake’s data hash covers it
Readsnothing
ContractGameplay framework, data stage

Entry

A record, written Field(..); the name before the parentheses is optional.

FieldTypeRequiredDefaultDescription
idstringyesThe field’s key, <mod-id>:<name>.
kindPresentationKindnoCounterThe value’s type.
defaultf32no0The value it holds until set, and returns to when the ability that set it ends.

Example

From game/flagship-game/data/presentation/flagship.ron:

Field(id: "flagship-game:shots", kind: Counter)

Types

PresentationKind

A presentation field’s type.

VariantWrittenDescription
CounterCounterA byte that wraps; a binding table fires on each change (BumpCounter).
U8U8A byte, 0 to 255.
U16U160 to 65535.
BoolBooltrue or false (a non-zero value).
F32F32A float.