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

ProjectVCharacterCastSkillSet class

The cast skills of one character: up to one per slot. Read-only.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Character

public sealed class ProjectVCharacterCastSkillSet

Constructors​

ProjectVCharacterCastSkillSet(ProjectVCharacterId characterId, IReadOnlyList<ProjectVCharacterCastSkill> slots)​

Creates a cast skill set, for example in tests.

public ProjectVCharacterCastSkillSet(ProjectVCharacterId characterId, IReadOnlyList<ProjectVCharacterCastSkill> slots);

Parameters

NameTypeDescription
characterIdProjectVCharacterIdThe character that owns the skills.
slotsIReadOnlyList<ProjectVCharacterCastSkill>At most two skills, each in a different slot.

Exceptions

ExceptionWhen
ArgumentNullExceptionslots is null.
ArgumentExceptionslots contains null, more than two skills or the same slot twice.

Properties​

PropertyTypeDescription
CharacterIdProjectVCharacterIdThe character that owns the skills.
SlotsIReadOnlyList<ProjectVCharacterCastSkill>The character's cast skills, at most one per slot.