Creating new GarageServer.IO client API calls to support client side prediction for entities - #20

This commit is contained in:
Jeremiah Billmann
2015-05-20 01:20:14 +00:00
parent e96adda2c2
commit 21d8fb2884
3 changed files with 63 additions and 2 deletions
+2 -2
View File
@@ -181,7 +181,7 @@ List of all previous states and their execution times up to `options.maxHistoryS
GarageServerIO.updatePlayerState(id, state)
```
Notify GargeServer.IO of a new state with an id of the player to be updated. The idea here is that this call is made during each pass of the physics loop on the server.
Notify GarageServer.IO of a new state with an id of the player to be updated. The idea here is that this call is made during each pass of the physics loop on the server.
`id` **string**
Id of the player whose state should be updated.
@@ -193,7 +193,7 @@ New state of the entity containing all of the properties specific to a player fo
GarageServerIO.updateEntityState(id, state)
```
Notify GargeServer.IO of a new state with an id of the entity to be updated. The idea here is that this call is made during each pass of the physics loop on the server.
Notify GarageServer.IO of a new state with an id of the entity to be updated. The idea here is that this call is made during each pass of the physics loop on the server.
`id` **string**
Id of the entity whose state should be updated.