GameClass.server_onReceiveUpdate
Called occasionally to indicate that some time has passed.
Kind: Callback
Environments: Game
Game
Callback side: Server
GameClass:server_onReceiveUpdate( )
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. |