cell
Vars | |
cell_can_be_removed | Can this cell be removed from the parent? |
---|---|
cell_overlay | Our reference to the cell overlay |
equipment | The item reference to parent. |
has_cell_overlays | Do we have cell overlays to be applied? |
inserted_cell | Our reference to the inserted cell, which will be stored in the parent. |
on_cell_removed | Callback interaction for when the cell is removed. |
power_use_amount | How much power do we use each process? |
Procs | |
insert_cell | Handling of cell insertion. |
remove_cell | Handling of cell removal. |
simple_power_use | The basic way of processing the cell, with included feedback. |
Var Details
cell_can_be_removed
Can this cell be removed from the parent?
cell_overlay
Our reference to the cell overlay
equipment
The item reference to parent.
has_cell_overlays
Do we have cell overlays to be applied?
inserted_cell
Our reference to the inserted cell, which will be stored in the parent.
on_cell_removed
Callback interaction for when the cell is removed.
power_use_amount
How much power do we use each process?
Proc Details
insert_cell
Handling of cell insertion.
remove_cell
Handling of cell removal.
simple_power_use
The basic way of processing the cell, with included feedback.
This proc is the basic way of processing the cell, with included feedback. It will return a bitflag if it failed to use the power, or COMPONENT_POWER_SUCCESS if it succeeds. Arguments:
- use_amount - an override
- check_only - will only return if it can use the cell and feedback relating to that including any relevant detail