mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-27 04:58:24 +02:00
+ Concept of PluginModule and inherited classes such as ServerModule, MenuModule, ...
* Client now tracks current menu module. Auto detach events, etc.
This commit is contained in:
parent
d3e35d286a
commit
f7462bbbdd
11 changed files with 226 additions and 60 deletions
19
core/server_module.js
Normal file
19
core/server_module.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
/* jslint node: true */
|
||||
'use strict';
|
||||
|
||||
var PluginModule = require('./plugin_module.js').PluginModule;
|
||||
|
||||
exports.ServerModule = ServerModule;
|
||||
|
||||
function ServerModule() {
|
||||
PluginModule.call(this);
|
||||
|
||||
this.viewControllers = [];
|
||||
}
|
||||
|
||||
require('util').inherits(ServerModule, PluginModule);
|
||||
|
||||
ServerModule.prototype.createServer = function() {
|
||||
console.log('ServerModule createServer')
|
||||
return null;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue