Skip to content

EntityStateMachine

15.2

Class Documentation

Edit documentation

The state table of the state machine of a map entity. The entity's StateMachineGeComponentDef links it in StateMachineDef.

The entity is in one state at a time. A state is named by a hash. When the client creates the state machine component, the current state is DefaultState. After that, the server sends the state changes, and each change carries the time at which it happened.

The client finds the current state by its hash in states. On a change it plays the OutSequence of the old state, then the InSequence of the new state. StateMachineGeComponentDef describes how the sequences play and which entities they act on.

Properties

DefaultState

Hash = "0x0"
Edit documentation

Hash of the state that the entity is in when the client creates its state machine component.

Referenced by 1 class · 1 property