mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
26 lines
No EOL
670 B
JavaScript
26 lines
No EOL
670 B
JavaScript
define(["Chuck/Processors/ClientProcessor"], function(ClientProcessor) {
|
|
|
|
function ClientGame(networker, id) {
|
|
this.networker = networker;
|
|
this.processor = new ClientProcessor();
|
|
this.processor.spawnMeWithId(id);
|
|
}
|
|
|
|
ClientGame.prototype.loadLevel = function(path) {
|
|
this.processor.loadLevel(path);
|
|
}
|
|
|
|
ClientGame.prototype.userJoined = function(userId) {
|
|
this.processor.spawnNewPlayerWithId(userId);
|
|
};
|
|
|
|
ClientGame.prototype.processGameCommand = function(command, options){
|
|
console.log('(not implemented) processGameCommand:', command, options);
|
|
}
|
|
|
|
ClientGame.prototype.destruct = function(){
|
|
this.processor.destruct();
|
|
}
|
|
|
|
return ClientGame;
|
|
}); |