mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added notification center call for adding filters to meshes
This commit is contained in:
parent
460aa9678d
commit
40cdf9867e
4 changed files with 151 additions and 65 deletions
|
|
@ -18,6 +18,8 @@ function (DomController, Settings, Exception, Nc) {
|
|||
Nc.on(Nc.ns.client.view.mesh.add, this.addMesh, this),
|
||||
Nc.on(Nc.ns.client.view.mesh.remove, this.removeMesh, this),
|
||||
Nc.on(Nc.ns.client.view.mesh.update, this.updateMesh, this),
|
||||
Nc.on(Nc.ns.client.view.mesh.addFilter, this.addFilter, this),
|
||||
Nc.on(Nc.ns.client.view.mesh.removeFilter, this.removeFilter, this),
|
||||
|
||||
Nc.on(Nc.ns.client.view.fullscreen.change, this.onFullscreenChange, this),
|
||||
Nc.on(Nc.ns.client.view.debugMode.toggle, this.onToggleDebugMode, this),
|
||||
|
|
@ -82,6 +84,14 @@ function (DomController, Settings, Exception, Nc) {
|
|||
throw new Exception('Abstract Function updateMesh not overwritten');
|
||||
};
|
||||
|
||||
AbstractView.prototype.addFilter = function(mesh, options) {
|
||||
throw new Exception('Abstract Function addFilter not overwritten');
|
||||
};
|
||||
|
||||
AbstractView.prototype.removeFilter = function(mesh, options) {
|
||||
throw new Exception('Abstract Function removeFilter not overwritten');
|
||||
};
|
||||
|
||||
AbstractView.prototype.setMe = function(player) {
|
||||
this.me = player;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue