OperationalPartComponent
< Modding | Components(Redirected from OperationalPartComponent)
Modding/Components/OperationalPartComponent
Jump to navigation
Jump to search
Modding/Components/OperationalPartComponent
Code location (what's this?):
Cosmoteer.Ships.Parts.OperationalPartComponent
Extends the PartComponent base class to implement on/off "operational" functionality common to many components.
This is an abstract class, made only to be inherited from. That provides the On/Off functionality to many components without having to repeat the code in each of them.
It itself inherits from PartComponent
.
Inheritors :
Name | Type | Required? | Buffable? | Default value | Description |
---|---|---|---|---|---|
OperationalToggle | ID<PartComponentRules>? | - | - | - | A toggle can be referenced here to be used an On/Off "button".
Some things like resource storages also qualify : 0 resources means Off. |
InvertOperationalToggle | (True / False) | - | - | - | This makes it work in the opposite way. One use case can be found in the toggles article. |
DisableWhenDeconstructing | (True / False) | - | - | - | Presumably, if true, the part stops functioning while being deconstructed. |
Notes
- Nothing yet.
This subsection is currently work-in-progress: Some things may be missing.
Feel free to contribute to make it better!