Removed set player state from client - should set from server

This commit is contained in:
Jeremiah Billmann
2013-07-14 12:02:24 -04:00
parent 4911079981
commit 5a778589ea
7 changed files with 3 additions and 46 deletions
+1 -6
View File
@@ -233,10 +233,6 @@ var GarageServerIO = (function (socketio) {
return _stateController.id;
},
setState = function (state) {
_socket.emit('playerState', state);
},
addInput = function (clientInput) {
_playerController.entities.some(function (player) {
if (player.id === _stateController.id) {
@@ -341,8 +337,7 @@ var GarageServerIO = (function (socketio) {
initializeGarageServer: initializeGarageServer,
addInput: addInput,
getStates: getStates,
getId: getId,
setState: setState
getId: getId
};
}) (io);