ProjectVCharacterLevelResetRequirements class
Whether the server allows a character's level to be reset, and what it gives back. Read-only.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Character
public sealed class ProjectVCharacterLevelResetRequirements
Constructors​
ProjectVCharacterLevelResetRequirements(bool allowed, IReadOnlyList<ProjectVCharacterItemRefund> refunds, string reason)​
Creates reset requirements, for example in tests.
public ProjectVCharacterLevelResetRequirements(bool allowed, IReadOnlyList<ProjectVCharacterItemRefund> refunds, string reason);
Parameters
| Name | Type | Description |
|---|---|---|
allowed | bool | True when the level can be reset. |
refunds | IReadOnlyList<ProjectVCharacterItemRefund> | The items given back; at most 32 lines, each item once. |
reason | string | Why the reset is not allowed, or empty; at most 512 characters. |
Exceptions
| Exception | When |
|---|---|
ArgumentException | refunds is null, too long, has a null line or the same item twice, or reason is too long. |
ArgumentNullException | reason is null. |
Properties​
| Property | Type | Description |
|---|---|---|
Allowed | bool | True when the level can be reset. |
Refunds | IReadOnlyList<ProjectVCharacterItemRefund> | The items a reset gives back. |
Reason | string | Why the reset is not allowed, from the server; may be empty. |