mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-09-11 11:53:23 +08:00
Progress: Server Loops
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
function GarageServerGame (options) {
|
||||
|
||||
|
||||
this.physicsIntervalId = setInterval(this.updatePhysics, options.physicsInterval ? options.physicsInterval : 15);
|
||||
this.playersIntervalId = setInterval(this.updatePlayers, options.playersInterval ? options.playersInterval : 45);
|
||||
}
|
||||
|
||||
GarageServerGame.prototype.update = function () {
|
||||
GarageServerGame.prototype.updatePlayers = function () {
|
||||
|
||||
};
|
||||
|
||||
GarageServerGame.prototype.updatePhysics = function () {
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user