wingbase/server/game/room/world/ship.js
2016-03-21 23:45:27 +00:00

18 lines
376 B
JavaScript

'use strict';
const defaults = require('./traits/defaults.json');
const hulls = require('./traits/hulls.json');
const Body = require('./body.js');
class Ship extends Body {
constructor(world, player, build) {
super(world);
this.build = build || defaults.spawnShip.build;
this.player = player;
this.structure = hulls[this.build.hull];
}
}
module.exports = Ship;