wingbase/server/game/room/world/body/turret/mount.js
2016-03-27 20:26:53 +01:00

30 lines
453 B
JavaScript

'use strict';
const Blaster = require('./blaster.js');
class Mount {
constructor(ship, data, fixture) {
this.ship = ship;
this.type = data.type || 'turret';
this.fixture = false; // TODO: Create fixture.
this.traversal = data.traversal ? {
cw: data.bounds[0],
ccw: data.bounds[1]
} : false;
}
destruct() {
if (!this.fixture) return;
this.fixture.destruct();
}
packFull() {
return {
}
}
}
module.exports = Mount;