initial commit of poker game
This commit is contained in:
8
game-server/app/components/botComponent.js
Normal file
8
game-server/app/components/botComponent.js
Normal file
@@ -0,0 +1,8 @@
|
||||
var BotService = require('../services/botService');
|
||||
|
||||
module.exports = function(app, opts){
|
||||
var service = new BotService(app, opts);
|
||||
app.set('botService', service, true);
|
||||
service.name = '__bot__';
|
||||
return service;
|
||||
};
|
8
game-server/app/components/stateComponent.js
Normal file
8
game-server/app/components/stateComponent.js
Normal file
@@ -0,0 +1,8 @@
|
||||
var BotService = require('../services/stateService');
|
||||
|
||||
module.exports = function(app, opts){
|
||||
var service = new StateService(app, opts);
|
||||
app.set('stateService', service, true);
|
||||
service.name = '__state__';
|
||||
return service;
|
||||
};
|
8
game-server/app/components/tableComponent.js
Normal file
8
game-server/app/components/tableComponent.js
Normal file
@@ -0,0 +1,8 @@
|
||||
var TableService = require('../services/tableService');
|
||||
|
||||
module.exports = function(app, opts){
|
||||
var service = new TableService(app, opts);
|
||||
app.set('tableService', service, true);
|
||||
service.name = '__table__';
|
||||
return service;
|
||||
};
|
Reference in New Issue
Block a user