Class ItemComponent
Handles items which can be picked up to hands and placed in pockets, as well as storage containers like backpacks.
Inheritance
System.Object
ItemComponent
Namespace: Content.Shared.Item
Assembly: Content.Shared.dll
Syntax
public sealed class ItemComponent : Component
Fields
| Improve this Doc View SourceHeldPrefix
Declaration
public string? HeldPrefix
Field Value
Type | Description |
---|---|
System.Nullable<System.String> |
InhandVisuals
Declaration
public Dictionary<HandLocation, List<PrototypeLayerData>> InhandVisuals
Field Value
Type | Description |
---|---|
Dictionary<HandLocation, List<PrototypeLayerData>> |
RsiPath
Rsi of the sprite shown on the player when this item is in their hands. Used to generate a default entry for InhandVisuals
Declaration
public string? RsiPath
Field Value
Type | Description |
---|---|
System.Nullable<System.String> |
Size
Declaration
public int Size
Field Value
Type | Description |
---|---|
System.Int32 |