add setname client command

This commit is contained in:
Asraelite 2016-03-28 15:10:20 +01:00
parent 52e1673e3e
commit 1af386d9f5
10 changed files with 50 additions and 11 deletions

View file

@ -35,7 +35,7 @@ class Ship extends Body {
this.mounts.push(mount);
});
this.turrets = [];
this.turrets = build.turrets || [];
this.thrust = {
forward: 0,
@ -113,7 +113,7 @@ class Ship extends Body {
frame: this.frame,
power: this.power,
mounts: this.mounts.map(m => m.packFull()),
turrets: this.turrets,
turrets: this.turrets.map(t => t.packFull()),
size: this.size,
delta: this.packDelta()
};