Show / Hide Table of Contents

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 Source

BaseLayer

Default IconLayer stack.

Declaration
public string BaseLayer
Field Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

Count

Declaration
public EntityWhitelist Count { get; set; }
Property Value
Type Description
EntityWhitelist
| Improve this Doc View Source

MaxAmount

Declaration
public int? MaxAmount { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾