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

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

NameTypeDescription
allowedboolTrue when the level can be reset.
refundsIReadOnlyList<ProjectVCharacterItemRefund>The items given back; at most 32 lines, each item once.
reasonstringWhy the reset is not allowed, or empty; at most 512 characters.

Exceptions

ExceptionWhen
ArgumentExceptionrefunds is null, too long, has a null line or the same item twice, or reason is too long.
ArgumentNullExceptionreason is null.

Properties​

PropertyTypeDescription
AllowedboolTrue when the level can be reset.
RefundsIReadOnlyList<ProjectVCharacterItemRefund>The items a reset gives back.
ReasonstringWhy the reset is not allowed, from the server; may be empty.