mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-08-03 12:31:02 +08:00
Added TODOs
This commit is contained in:
@@ -12,6 +12,7 @@ function GarageServerGame (socket, options) {
|
||||
GarageServerGame.prototype.updatePlayers = function () {
|
||||
var currentTime = new Date().getTime();
|
||||
for(var i = 0; i < this.players.length; i ++) {
|
||||
//TODO: Retink efficiency
|
||||
this.socket.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