core-spaceship
The core models relating to building and launching a Spaceship
, including Part
s (of which the Spaceship
is
constructed) and the associated Rule
s.
A Spaceship
is built using Layout
which consists of Slot
s and is chosen from the LayoutRegistry
.
Rules
-
Active
- confirms whether aSlot
is active. -
Built
- triggered when aPart
is built. -
ChanceOfSuccess
- returns a value between0
and1
. -
ChooseSlot
- picks the preferredSlot
for thePart
. -
FlightTime
- returns the number ofYear
s the flight will take. -
Landed
- triggered when theSpaceship
successfully lands at its destination. -
Launch
- triggered when theSpaceship
is launched. -
Lost
- triggered when theSpaceship
doesn't reach its final destination. -
Yield
- used to calculate the associatedYield
s from eachPart
(Mass
,Fuel
,Population
, etc).