Class ItemCounterComponent
Storage that spawns and counts a single item. Usually used for things like matchboxes, cigarette packs, cigar cases etc.
Inheritance
System.Object
ItemCounterComponent
Namespace: Content.Shared.Storage.Components
Assembly: Content.Shared.dll
Syntax
public sealed class ItemCounterComponent : Component
Fields
| Improve this Doc View SourceBaseLayer
Default IconLayer stack.
Declaration
public string BaseLayer
Field Value
Type | Description |
---|---|
System.String |
IsComposite
Determines if the visualizer uses composite or non-composite layers for icons. Defaults to false.
- false: they are opaque and mutually exclusive (e.g. sprites in a cable coil). Default value
- true: they are transparent and thus layered one over another in ascending order first
Declaration
public bool IsComposite
Field Value
Type | Description |
---|---|
System.Boolean |
LayerStates
Sprite layers used in counter visualizer. Sprites first in layer correspond to lower stack states e.g.
_spriteLayers[0]
is lower stack level than _spriteLayers[1]
.
Declaration
public List<string> LayerStates
Field Value
Type | Description |
---|---|
List<System.String> |
Properties
| Improve this Doc View SourceCount
Declaration
public EntityWhitelist Count { get; set; }
Property Value
Type | Description |
---|---|
EntityWhitelist |
MaxAmount
Declaration
public int? MaxAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |