Show / Hide Table of Contents

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 Source

HeldPrefix

Declaration
public string? HeldPrefix
Field Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

InhandVisuals

Declaration
public Dictionary<HandLocation, List<PrototypeLayerData>> InhandVisuals
Field Value
Type Description
Dictionary<HandLocation, List<PrototypeLayerData>>
| Improve this Doc View Source

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

Size

Declaration
public int Size
Field Value
Type Description
System.Int32
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾