reduce update packets sent

This commit is contained in:
Asraelite 2016-03-30 12:50:59 +01:00
parent d6daed2e9b
commit ef2d067b38
15 changed files with 67 additions and 14 deletions

View file

@ -7,7 +7,7 @@ class Mount {
this.ship = ship;
this.type = data.type || 'turret';
this.fixture = fixture || false;
this.fixture = fixture || false//new Fixture(fixture);
this.size = data.size || 0;
this.position = {
x: data.pos[0],
@ -27,6 +27,10 @@ class Mount {
//this.fixture.destruct();
}
fire() {
console.log(this.fixture);
}
packDelta() {
return [this.traversal || 0];
}