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
| Name | Type | Description |
|---|---|---|
id | ProjectVSkinId | The skin's ID. |
characterId | ProjectVCharacterId | The character the skin belongs to. |
nameKey | string | The localization key of the skin's name; not empty. |
rarity | string | The rarity name; not empty. |
owned | bool | True when the player owns it. |
equipped | bool | True when it is equipped. |
Exceptions
| Exception | When |
|---|---|
ArgumentException | nameKey or rarity is null, empty or whitespace. |
Properties
| Property | Type | Description |
|---|---|---|
Id | ProjectVSkinId | The skin's ID. |
CharacterId | ProjectVCharacterId | The character this skin belongs to. |
NameKey | string | The localization key of the skin's name. |
Rarity | string | The skin's rarity name, as the server sends it. |
Owned | bool | True when the player owns this skin. |
Equipped | bool | True when this skin is equipped. |