mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-08-14 12:00:08 +08:00
Code cleanup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
var GarageServerGame = require('./garageservergame');
|
||||
var garageServerGame = require('./garageservergame');
|
||||
|
||||
/*
|
||||
options = {
|
||||
@@ -19,7 +19,7 @@ options = {
|
||||
|
||||
function GarageServer (socketio, options) {
|
||||
this.io = socketio;
|
||||
this.game = new GarageServerGame(options);
|
||||
this.game = new garageServerGame(options);
|
||||
this.registerSocketEvents(options);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
var PlayerController = require('./controllers/playercontroller'),
|
||||
EntityController = require('./controllers/entitycontroller');
|
||||
var playerController = require('./controllers/playercontroller'),
|
||||
entityController = require('./controllers/entitycontroller');
|
||||
|
||||
exports = module.exports = GarageServerGame;
|
||||
|
||||
function GarageServerGame(options) {
|
||||
this.playerController = new PlayerController();
|
||||
this.entityController = new EntityController();
|
||||
this.playerController = new playerController();
|
||||
this.entityController = new entityController();
|
||||
this.options = options;
|
||||
this.startTime;
|
||||
this.stateInterval = options.stateInterval ? options.stateInterval : 45;
|
||||
|
||||
Reference in New Issue
Block a user