PlayerClass.server_onReceiveUpdate

Called occasionally to indicate that some time has passed.

Kind: Callback

Environments: Game

Game

Callback side: Server

PlayerClass:server_onReceiveUpdate(  )

Open the full Game reference

For performance reasons; it recommended to use this instead of server_onFixedUpdate for updates that do not need to happen frequently.

Use sm.game.getCurrentTick to calculate the time.

Parameters:

Name Type Description
self table The class instance.