BaseResourceStorage

From Cosmoteer Wiki
< Modding‎ | ComponentsModding/Components/BaseResourceStorage
Jump to navigation Jump to search
CalloutIconWarning.png
Work in Progress
This page is currently WORK IN PROGRESS. Some things may be missing.

Feel free to contribute and don't worry about perfection - other editors can make corrections if necessary. Just get creating!

Code locations (what's this?):

Cosmoteer.Ships.Parts.Resources.BaseResourceStorage
Cosmoteer.Ships.Parts.Resources.BaseResourceStorageRules

The base class for part sub-components that hold resources which can be used by other sub-components.

This is an abstract class, made only to be inherited from. It cannot be used directly, pick one of its inheritors instead.

Many storage components inherit from this one. "Storage 2x2" parts and similar do not (see FlexResourceGrid).

Inheritors :

Parameters (Complete list)
Name Type Required? Buffable? Default value Description
ResourceType ID<ResourceRules> Yes - - The ID of the resource that can be received.
IsDrainable bool - - Possibly, whether EMP and disruptor projectiles can drain this resource.
SuppliesResources bool
SuppliesResourcesToggle ID<PartComponentRules>?
AllowManualReceiveToggle ID<PartComponentRules>?
IsIntermediateStorage bool
MinResourcesPickUp int 1
MaxResourcesPickUp int?
InitPickUp int?
PickUpRate float?
PickUpLocation Vector2?
DeliveryLocation Vector2?
ExternalPickUpLocation Vector2?
ExternalDeliveryLocation Vector2?
ExpectedResourceGenerationRate float Yes
ExpectedResourceGenerationToggle ID<PartComponentRules>?
AnticipateMoreResourcesFrom ID<PartComponentRules>[]?
ToggleOnResources int 1
ToggleOffResources int 0

(effectively)

ProvidedValueRange Range<float> Range<float>(0.0f, 1f)
ProvidedValuePerResource
SupplyToggleButtonOffset Vector2?
UITileRect
AllowExternalPickupAndDelivery bool
ReceiveResourceMediaEffects MultiMediaEffectRules?
HasSupplyToggle (not serialized?) bool

Notes

Nothing yet.