TypedResourceGrid

From Cosmoteer Wiki
< Modding‎ | ComponentsModding/Components/TypedResourceGrid
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.TypedResourceGrid
Cosmoteer.Ships.Parts.Resources.TypedResourceGridRules

Holds a grid of resource stacks of a single type.

Used by (?)

Inherits from BaseResourceStorage.

Parameters (Complete list)
Name Type Required? Buffable? Default value Description
GridRect IntRect Yes - - The area in which resource stacks can be placed.

See DisableCells.

DisableCells HashSet<IntVector2>?

meaning :

A block of [] containing cell coordinates.

- - - These are the cells where resource stacks will not be placed.

See Examples below for the syntax.

Layer ID<ShipRenderLayerRules> Yes - -
SpriteInset Borders - - -
RandomSpriteRotation bool - - -
StartingResources int - - -
InitToMaxResources int? - - - Presumably fills the resource storage when built.
DelayBeforeReadyToUse Time - - -
DrainOnFtlJump bool - - - Presumably empties this resource storage when a hyperjump is performed.

Notes

Nothing yet.

Examples

Random part

Imaginary part with a size of at least 2x3 tiles.

DisableCells
[
    //Top row
    [0,0]
    [1,0]
    
    //Bottom row
    [0,2]
    [1,2]
]