mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-06-29 16:30:43 +08:00
Updated GarageServer.IO API calls to support client side prediction for entities - #20
This commit is contained in:
@@ -202,13 +202,15 @@ New state of the entity containing all of the properties specific to an entity f
|
||||
#### addEntity
|
||||
---
|
||||
```js
|
||||
GarageServerIO.addEntity(id)
|
||||
GarageServerIO.addEntity(id, referrerId)
|
||||
```
|
||||
|
||||
Notify GarageServer.IO that a new entity has been added to the game.
|
||||
|
||||
`id` **string**
|
||||
Id of the entity to be added.
|
||||
`referrerId` **string**
|
||||
Id of the player who invoked/create the entity - optional and used primarily for client side prediction.
|
||||
#### removeEntity
|
||||
---
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user