Skip to main content

ProjectVCharacterBackpackSlot class

One backpack slot and the item in it. Read-only.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Character

public sealed class ProjectVCharacterBackpackSlot

Constructors​

ProjectVCharacterBackpackSlot(ProjectVBackpackSlotId slotId, ProjectVItemId? itemId)​

Creates a backpack slot, for example in tests.

public ProjectVCharacterBackpackSlot(ProjectVBackpackSlotId slotId, ProjectVItemId? itemId);

Parameters

NameTypeDescription
slotIdProjectVBackpackSlotIdThe slot's ID.
itemIdProjectVItemId?The item in the slot, or null for an empty slot.

Properties​

PropertyTypeDescription
SlotIdProjectVBackpackSlotIdThe slot's ID.
ItemIdProjectVItemId?The item in the slot, or null when the slot is empty.