Cleanup...

This commit is contained in:
Jeremiah Billmann
2013-05-11 17:06:03 -04:00
parent 16fbcee65d
commit 5b36b314f4
7 changed files with 19 additions and 0 deletions
View File
View File
View File
View File
+19
View File
@@ -0,0 +1,19 @@
function GarageServer (io) {
this.io = io;
}
GarageServer.prototype.PlayerConnect = function (callback) {
this.io.sockets.on('connection', function (socket) {
callback(socket);
});
};
GarageServer.prototype.PlayerDisconnect = function (callback) {
this.io.sockets.on('connection', function (socket) {
callback(socket);
});
};
exports.createGameServer = function (io, options){
return new GarageServer(io);
};
View File