Skip to main content

Inventory

A class in Root.Township, Alta.Character.

Simple view of a player character's hands and body docks, made by PlayerCharacter and reached through its Inventory property. Used for things like the micro tutorial.

Constructors​

MemberWhat it is
Inventory(PlayerCharacter character)Creates an Inventory from character.

Properties​

7 private and internal properties
MemberWhat it is
private IInventoryStore<PickupDock> BackDock { get; }Store for the first back dock.
private IInventoryStore<PickupDock> LeftBeltDock { get; }Store for the second belt dock.
private IInventoryStore<Interactor> LeftHand { get; }Store for what the left hand holds.
private IInventoryStore<PickupDock> LeftHipDock { get; }Store for the first belt dock.
private IInventoryStore<PickupDock> RightBeltDock { get; }Store for the fourth belt dock.
private IInventoryStore<Interactor> RightHand { get; }Store for what the right hand holds.
private IInventoryStore<PickupDock> RightHipDock { get; }Store for the third belt dock.

Methods​

MemberWhat it is
void DockHeldItemsToBack()If the back dock is empty, docks the left hand's item there, or the right hand's if that fails.
void DropHeldItems()Drops what both hands hold. The overload only drops items with one of the given tags (or with no item).
void DropHeldItems(IEnumerable<PickupTag> tags)Drops what both hands hold. The overload only drops items with one of the given tags (or with no item).

Used in​

Members of other types that take, return or hold a Inventory: