mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-09-10 11:40:34 +08:00
Progress #3
This commit is contained in:
@@ -34,4 +34,12 @@
|
|||||||
return interpolationState;
|
return interpolationState;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function s4() {
|
||||||
|
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function guid() {
|
||||||
|
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
|
||||||
|
}
|
||||||
|
|
||||||
})(typeof exports === 'undefined' ? window.GamePhysics = {} : exports);
|
})(typeof exports === 'undefined' ? window.GamePhysics = {} : exports);
|
||||||
@@ -133,7 +133,7 @@ GarageServer.prototype.removeEntity = function (id) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
GarageServer.prototype.updateEntityState = function (id, state) {
|
GarageServer.prototype.updateEntityState = function (id, state) {
|
||||||
|
this.game.updateEntityState(id, state);
|
||||||
};
|
};
|
||||||
|
|
||||||
GarageServer.prototype.getEntities = function () {
|
GarageServer.prototype.getEntities = function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user