Add zooming
This commit is contained in:
parent
56a09f98c5
commit
b02675f4fb
12 changed files with 156 additions and 29 deletions
|
@ -3,6 +3,9 @@ export default class Module {
|
|||
name = 'Unnamed Module',
|
||||
type = 'block',
|
||||
mass = 1,
|
||||
// Fuel
|
||||
filled = false,
|
||||
fuelCapacity = 0,
|
||||
...properties
|
||||
}) {
|
||||
this.x = x;
|
||||
|
@ -10,6 +13,7 @@ export default class Module {
|
|||
this.name = name;
|
||||
this.type = type;
|
||||
this.mass = mass;
|
||||
|
||||
// Fuel
|
||||
this.fuel = filled ? fuelCapacity : 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue