mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-08-03 12:31:02 +08:00
Removed set player state from client - should set from server
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user