Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ItemComponent

From starcup wiki
Revision as of 01:22, 10 May 2025 by Little meow meow (talk | contribs) (Created page with "<!-- Begin auto-generated segment: Summary --> Handles items which can be picked up to hands and placed in pockets, as well as storage containers like backpacks. '''View code''': [https://github.com/teamstarcup/starcup/blob/bbcdbae05fb6e13366976a537c9035378e6112f7/Content.Shared/Item/ItemComponent.cs#L17 Content.Shared/Item/ItemComponent.cs] <!-- End auto-generated segment --> == Fields == <!-- Begin auto-generated segment: Fields --> {| class="wikitable" |+ ItemCompo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Handles items which can be picked up to hands and placed in pockets, as well as storage containers like backpacks.

View code: Content.Shared/Item/ItemComponent.cs

Fields

ItemComponent
Type Name Default value
ProtoId<ItemSizePrototype> Size "Small"
Dictionary<HandLocation, List<PrototypeLayerData>> InhandVisuals new();
string? HeldPrefix
string? RsiPath
List<Box2i>? Shape
SpriteSpecifier? StoredSprite
float StoredRotation 0
Vector2i StoredOffset
Contents