mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-19 11:19:49 +08:00
Removed set player state from client - should set from server
This commit is contained in:
@@ -31,13 +31,5 @@ EntityController.prototype = {
|
||||
return;
|
||||
}
|
||||
}
|
||||
},
|
||||
setState: function (id, state) {
|
||||
this.entities.some(function (entity) {
|
||||
if (entity.client.id === id) {
|
||||
entity.state = state;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -34,14 +34,4 @@ PlayerController.prototype.addInput = function (id, input, sequence, time) {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
PlayerController.prototype.setState = function (id, state) {
|
||||
this.entities.some(function (player) {
|
||||
if (player.client.id === id) {
|
||||
player.state = state;
|
||||
player.inputs = [];
|
||||
return true;
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user