add simple fuzz test

This commit is contained in:
Asraelite 2016-03-27 20:26:53 +01:00
parent 0a90b6b77a
commit 27520842e3
59 changed files with 191 additions and 34 deletions

View file

@ -30,8 +30,8 @@ class Ship extends Body {
this.size = traits.size;
// Mounts
traits.mounts.forEach((mount, i) => {
let mounts = new Mount(this, mount);
traits.mounts.forEach((data, i) => {
let mount = new Mount(this, data);
this.mounts.push(mount);
});
@ -112,7 +112,7 @@ class Ship extends Body {
name: this.player.name,
frame: this.frame,
power: this.power,
mounts: this.traits.mounts,
mounts: this.mounts.map(m => m.packFull()),
turrets: this.turrets,
size: this.size,
delta: this.packDelta()

View file

@ -19,6 +19,12 @@ class Mount {
if (!this.fixture) return;
this.fixture.destruct();
}
packFull() {
return {
}
}
}
module.exports = Mount;