Skip to main content

ProjectVCharacterSkin class

One skin from the catalog, owned or not. Read-only.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Character

public sealed class ProjectVCharacterSkin

Constructors​

ProjectVCharacterSkin(ProjectVSkinId id, ProjectVCharacterId characterId, string nameKey, string rarity, bool owned, bool equipped)​

Creates a skin entry, for example in tests.

public ProjectVCharacterSkin(ProjectVSkinId id, ProjectVCharacterId characterId, string nameKey, string rarity, bool owned, bool equipped);

Parameters

NameTypeDescription
idProjectVSkinIdThe skin's ID.
characterIdProjectVCharacterIdThe character the skin belongs to.
nameKeystringThe localization key of the skin's name; not empty.
raritystringThe rarity name; not empty.
ownedboolTrue when the player owns it.
equippedboolTrue when it is equipped.

Exceptions

ExceptionWhen
ArgumentExceptionnameKey or rarity is null, empty or whitespace.

Properties​

PropertyTypeDescription
IdProjectVSkinIdThe skin's ID.
CharacterIdProjectVCharacterIdThe character this skin belongs to.
NameKeystringThe localization key of the skin's name.
RaritystringThe skin's rarity name, as the server sends it.
OwnedboolTrue when the player owns this skin.
EquippedboolTrue when this skin is equipped.