mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
update of client data by server
This commit is contained in:
parent
2cb401bbd3
commit
c8d0a48489
11 changed files with 239 additions and 120 deletions
|
|
@ -2,7 +2,7 @@ define(["Chuck/Processors/ClientProcessor"], function(ClientProcessor) {
|
|||
|
||||
function ClientGame(networker, id) {
|
||||
this.networker = networker;
|
||||
this.processor = new ClientProcessor();
|
||||
this.processor = new ClientProcessor(this);
|
||||
this.processor.spawnMeWithId(id);
|
||||
}
|
||||
|
||||
|
|
@ -15,7 +15,11 @@ define(["Chuck/Processors/ClientProcessor"], function(ClientProcessor) {
|
|||
};
|
||||
|
||||
ClientGame.prototype.processGameCommand = function(command, options){
|
||||
console.log('(not implemented) processGameCommand:', command, options);
|
||||
this.processor.processGameCommand(command, options);
|
||||
}
|
||||
|
||||
ClientGame.prototype.sendGameCommand = function(command, options) {
|
||||
this.networker.sendGameCommand(command, options);
|
||||
}
|
||||
|
||||
ClientGame.prototype.destruct = function(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue