stepReplica
stepReplica(
world,session,input):Move|null
Defined in: packages/engine/src/gameplay/replication/client.ts:487
Runs one step of a client’s world on the move in progress, beginning a
move on input when the last is whole, with the streamed walkers’
bodies where the frame draws them. Returns the move this step
completed, for the loop to send, or null. Before the welcome it steps
the world on input and runs no move.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
session |
RoomSession |
input |
StepInput |
Returns
Section titled “Returns”Move | null