mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-01 16:50:06 +08:00
Progress: Documentation
This commit is contained in:
@@ -146,7 +146,7 @@ Function to be invoked upon event firing.
|
||||
```js
|
||||
options.onPlayerUpdate(callback(state))
|
||||
```
|
||||
Event fired each time state has been received to the client for a player.
|
||||
Event fired each time `state` has been received to the client for a player.
|
||||
`callback` **function**
|
||||
Function to be invoked upon event firing.
|
||||
`state` **object literal**
|
||||
@@ -156,7 +156,7 @@ Object containing all of the properties pertaining to a player for your game - x
|
||||
```js
|
||||
options.onEntityUpdate(callback(state))
|
||||
```
|
||||
Event fired each time state has been received to the client for an entity.
|
||||
Event fired each time `state` has been received to the client for an entity.
|
||||
`callback` **function**
|
||||
Function to be invoked upon event firing.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user