ClientStateManager
This item only works when running on the client. Client
Manages the local replication and storage of game states received from the server. Utilizes the Networker module to listen for state updates and maintains a local cache.
Functions
init
ClientStateManager.init() → ()
Initializes the ClientStateManager by connecting to the ReplicateClientStates remote.
It automatically handles JSON decoding for string-based state values.
checkState
ClientStateManager.checkState(stateName: string--
The name of the state to check.
) → any--
The current value of the state, or nil if not set.
Retrieves the value of a specific state by its name.
getStates
ClientStateManager.getStates() → {[string]: any}--
The dictionary of all states.
Returns the entire table of currently tracked states.