Chuyển tới nội dung chính

ProjectVCharacterLoadoutSlot class

One loadout slot and the character placed in it. Read-only.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Character

public sealed class ProjectVCharacterLoadoutSlot

Constructors​

ProjectVCharacterLoadoutSlot(ProjectVLoadoutSlotId slotId, ProjectVCharacterId? characterId)​

Creates a loadout slot, for example in tests.

public ProjectVCharacterLoadoutSlot(ProjectVLoadoutSlotId slotId, ProjectVCharacterId? characterId);

Parameters

NameTypeDescription
slotIdProjectVLoadoutSlotIdThe slot's ID.
characterIdProjectVCharacterId?The character in the slot, or null for an empty slot.

Properties​

PropertyTypeDescription
SlotIdProjectVLoadoutSlotIdThe slot's ID. Pass SlotId.Value to IProjectVCharacterScreen.SelectCharacterAsync.
CharacterIdProjectVCharacterId?The character in the slot, or null when the slot is empty.