Skip to main content

Crate renamite_machine

Crate renamite_machine 

Source
Expand description

Clips (named timelines) + state machines. Pure, deterministic, and WASM-safe.

A Clip is a bag of (NodeId, PropPath) -> keyframe tracks. They are the same KeyframeData the history system already uses, so clip authoring reuses EditorCommand semantics later. A Machine turns inputs into an Overrides patch per tick. The host feeds that to evaluate_with.

State-machine semantics (exit time, any-state, trigger consumption, crossfade) are implemented here from first principles / public documentation of how such runtimes behave generally (though no one asked).

Structs§

BlendChild
Clip
ClipId
EventKey
InputDef
Listener
Machine
MachineId
MachineInstance
MachineLayer
State
TickOutput
Track
Transition

Enums§

CmpOp
Condition
InputKind
InputValue
ListenerAction
MachineError
PointerEventKind
StateKind

Functions§

value_tween
Tween two Values of the same variant; Hold otherwise (mirrors path rules).

Type Aliases§

ClipMap
MachineMap