mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
working towards usable new structure
This commit is contained in:
parent
3afc2fa66e
commit
815c63009f
15 changed files with 223 additions and 84 deletions
20
app/Game/Server/CoordinatorLink.js
Executable file
20
app/Game/Server/CoordinatorLink.js
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
define([
|
||||
],
|
||||
|
||||
function() {
|
||||
|
||||
function CoordinatorLink(process) {
|
||||
this.process = process;
|
||||
}
|
||||
|
||||
CoordinatorLink.prototype.send = function(message) {
|
||||
this.process.send(message);
|
||||
};
|
||||
|
||||
CoordinatorLink.prototype.receive = function(message) {
|
||||
throw 'This method is abstract and must be overwritten by Channel';
|
||||
};
|
||||
|
||||
return CoordinatorLink;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue