Constructor
new State(equipment, equipment_map)
- Source:
- Since:
- 0.0.7
Parameters:
Name | Type | Description |
---|---|---|
equipment |
struct | |
equipment_map |
map |
Methods
getSelectedOptionIDs() → {array}
- Source:
Loop over the equipment to see which options are selected, run after dependencies have been handled
Returns:
Array of selected options
- Type
- array
handleDependencies(equipment, already_handled)
- Source:
Handle dependencies
Parameters:
Name | Type | Description |
---|---|---|
equipment |
||
already_handled |
process(interaction_idx, is_initializing)
- Source:
Handle interaction
Parameters:
Name | Type | Default | Description |
---|---|---|---|
interaction_idx |
number | equipment id |
|
is_initializing |
boolean |
false
|
whether we're currently setting up the configurator |
processAffectedBy()
- Source:
Loop over the equipment to handle affecting relationships (what will affect this)
processAffects()
- Source:
Loop over the equipment to handle what this affects (what does this affect)