Show / Hide Table of Contents

Class SyncStateMachine<T>

Inheritance
object
InternalBaseClass
SyncableField
SyncStateMachine<T>
Inherited Members
SyncableField.IsClient
SyncableField.IsServer
SyncableField.ParentEntity
SyncableField.ParentEntityLogic
SyncableField.BeforeReadRPC()
SyncableField.AfterReadRPC()
SyncableField.OnRollback()
SyncableField.RegisterRPC(ref SyncableRPCRegistrator)
SyncableField.ExecuteRPC(in RemoteCall)
SyncableField.ExecuteRPC<T>(in RemoteCall<T>, T)
SyncableField.ExecuteRPC<T>(in RemoteCallSpan<T>, ReadOnlySpan<T>)
SyncableField.ExecuteRPC<T>(in RemoteCallSerializable<T>, T)
InternalBaseClass.OnSyncRequested()
Namespace: LiteEntitySystem.Extensions
Assembly: LiteEntitySystem.dll
Syntax
public class SyncStateMachine<T> : SyncableField where T : unmanaged, Enum
Type Parameters
Name Description
T

Constructors

SyncStateMachine()

Declaration
public SyncStateMachine()

Properties

CurrentState

Declaration
public T CurrentState { get; }
Property Value
Type Description
T

IsRollbackSupported

Is supported rollback by this syncable field

Declaration
public override bool IsRollbackSupported { get; }
Property Value
Type Description
bool
Overrides
SyncableField.IsRollbackSupported

Methods

Add(T, StateCalls)

Declaration
public SyncStateMachine<T> Add(T stateName, StateCalls stateCalls)
Parameters
Type Name Description
T stateName
StateCalls stateCalls
Returns
Type Description
SyncStateMachine<T>

ChangeState(T)

Declaration
public void ChangeState(T state)
Parameters
Type Name Description
T state

SetInitialState(T)

Declaration
public void SetInitialState(T state)
Parameters
Type Name Description
T state

Update(float)

Declaration
public void Update(float dt)
Parameters
Type Name Description
float dt
In this article
Back to top Generated by DocFX