mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added Server and Client Game
This commit is contained in:
parent
e959c8e7a2
commit
bffb16e77c
5 changed files with 57 additions and 10 deletions
21
lib/Chuck/ServerGame.js
Normal file
21
lib/Chuck/ServerGame.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
define(["Chuck/Processors/ServerProcessor"], function(ServerProcessor) {
|
||||
|
||||
function ServerGame(chanel) {
|
||||
this.chanel = chanel;
|
||||
this.processor = new ServerProcessor();
|
||||
}
|
||||
|
||||
ServerGame.prototype.loadLevel = function(path) {
|
||||
this.processor.loadLevel(path);
|
||||
}
|
||||
|
||||
ServerGame.prototype.processGameCommand = function(command, options) {
|
||||
console.log('(not implemented) processGameCommand:', command, options);
|
||||
}
|
||||
|
||||
ServerGame.prototype.destruct = function() {
|
||||
this.processor.destruct();
|
||||
}
|
||||
|
||||
return ServerGame;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue