reduce update packets sent
This commit is contained in:
parent
d6daed2e9b
commit
ef2d067b38
15 changed files with 67 additions and 14 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue