mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
deleted obsolete Game Module
This commit is contained in:
parent
6b5a689662
commit
84afcdfdd0
1 changed files with 0 additions and 30 deletions
|
|
@ -1,30 +0,0 @@
|
|||
define(["Chuck/Settings", "Chuck/Processors/ServerProcessor", "Chuck/Processors/ClientProcessor"], function(Settings, ServerProcessor, ClientProcessor){
|
||||
|
||||
function Game(networker){
|
||||
this.networker = networker;
|
||||
this.processor = this.createProcessor();
|
||||
|
||||
this.processor.loadLevel("default.json");
|
||||
}
|
||||
|
||||
Game.prototype.createProcessor = function(){
|
||||
var processor;
|
||||
|
||||
if(Settings.IS_BROWSER_ENVIRONMENT){
|
||||
processor = new ClientProcessor();
|
||||
} else {
|
||||
processor = new ServerProcessor();
|
||||
}
|
||||
return processor;
|
||||
}
|
||||
|
||||
Game.prototype.processGameCommand = function(command, options){
|
||||
console.log('(not implemented) processGameCommand:', command, options);
|
||||
}
|
||||
|
||||
Game.prototype.destruct = function(){
|
||||
this.processor.destruct();
|
||||
}
|
||||
|
||||
return Game;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue