ReadonlycurrentReadonlycurrentThis is a read-only property that always returns 0. It is only added for compatibility with renderers. (And it is only used in the initialization code of renderers.)
ReadonlygameThe original object that holds the game state information. Returns null if game is not active.
ReadonlymaxThe original current frame number of the room where the game is actually being played.
ReadonlyspeedThe current speed of the simulation.
ReadonlystateAn object containing all information about the current room state.
Frees the resources that are used by this object.
void.
Extrapolates the current room state and sets the ext variables inside
original objects to their newly calculated extrapolated states. Normally
designed to be used in renderers.
The time to extrapolate the state for in milliseconds.
The extrapolated room state.
A callback that reads the data stream for "immediate" streaming mode.
The stream reader instance.
A callback that reads the data stream for "interval" streaming mode.
The stream reader instance.
Runs the simulation count steps. Simulation should be stopped for this function to work as expected.
Number of steps to run the simulation.
void.
Changes the speed of the simulation.
The desired speed coefficient. Must be a real number >=0. Meaning of possible value ranges is as follows:
void.
Returns a complete snapshot of the current room state.
The snapshot copy of the current RoomState object.
Generates a copy of the given RoomState and sets the current room state reference to the generated RoomState.
The RoomState to use. Should be created by takeSnapshot() first.
void.
The current frame number of the room state that you are currently observing.