mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-10-02 11:50:38 +08:00
Moving shared JS
This commit is contained in:
1 parent
0cd3f08b3f
commit
c009deb540
2 files changed
+1
-1
No files matched your search
@@ -11,7 +11,7 @@ function GarageServerGame (socketio, options) {
|
||||
GarageServerGame.prototype.updatePlayers = function (options) {
|
||||
var currentTime = new Date().getTime();
|
||||
for(var i = 0; i < this.players.length; i ++) {
|
||||
this.io.emit('playerUpdate', { id: this.players[i].client.id, state: this.players[i].state, seq: this.players[i].sequence, timestamp: currentTime });
|
||||
this.io.emit('update', { id: this.players[i].client.id, state: this.players[i].state, seq: this.players[i].sequence, timestamp: currentTime });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user