NC refactoring

This commit is contained in:
Jeena 2014-03-17 21:45:40 +01:00
parent 28f71f49e1
commit 96bf9bffbd
24 changed files with 69 additions and 69 deletions

View file

@ -27,7 +27,7 @@ function (Parent, Settings, Nc) {
var callback = function(mesh) {
self.mesh = mesh;
Nc.trigger("view/addMesh", mesh);
Nc.trigger(Nc.ns.client.view.mesh.add, mesh);
}
Nc.trigger("view/createMesh",
@ -45,13 +45,13 @@ function (Parent, Settings, Nc) {
};
Tile.prototype.destroy = function() {
Nc.trigger("view/removeMesh", this.mesh);
Nc.trigger(Nc.ns.client.view.mesh.remove, this.mesh);
Parent.prototype.destroy.call(this);
};
Tile.prototype.render = function() {
Nc.trigger("view/updateMesh",
Nc.trigger(Nc.ns.client.view.mesh.update,
this.mesh,
{
x: this.body.GetPosition().x * Settings.RATIO,