Table of Contents

Class Int32ParameterTemplate.Int32ParameterValue

Namespace
Uncreated.Warfare.Quests.Parameters
Assembly
Uncreated.Warfare.dll
[JsonConverter(typeof(QuestParameterConverter))]
protected class Int32ParameterTemplate.Int32ParameterValue : QuestParameterValue<int>, IFormattable, IEquatable<QuestParameterValue<int>>, IEquatable<Int32ParameterTemplate.Int32ParameterValue>
Inheritance
Int32ParameterTemplate.Int32ParameterValue
Implements
Inherited Members
Extension Methods

Constructors

Int32ParameterValue(int)

public Int32ParameterValue(int constant)

Parameters

constant int

Int32ParameterValue(Int32ParameterTemplate)

public Int32ParameterValue(Int32ParameterTemplate template)

Parameters

template Int32ParameterTemplate

Methods

Equals(Int32ParameterValue?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Int32ParameterTemplate.Int32ParameterValue? other)

Parameters

other Int32ParameterTemplate.Int32ParameterValue

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(QuestParameterValue<int>?)

Indicates whether the current object is equal to another object of the same type.

public override bool Equals(QuestParameterValue<int>? other)

Parameters

other QuestParameterValue<int>

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetDisplayString(ITranslationValueFormatter)

Creates a string for use in translations.

public override object GetDisplayString(ITranslationValueFormatter formatter)

Parameters

formatter ITranslationValueFormatter

Returns

object

GetSingleValue()

Get one value to use. Must either be a constant or selective.

public override int GetSingleValue()

Returns

int

Exceptions

InvalidOperationException

Inclusive selection is not supported when getting a single value.

GetSingleValueOrMaximum()

Get one value to use. If this is a range or list it'll return the maximum of the set.

public override int GetSingleValueOrMaximum()

Returns

int

Exceptions

InvalidOperationException

Inclusive selection is not supported when getting a single value for this type.

GetSingleValueOrMinimum()

Get one value to use. If this is a range or list it'll return the minimum of the set.

public override int GetSingleValueOrMinimum()

Returns

int

Exceptions

InvalidOperationException

Inclusive selection is not supported when getting a single value for this type.

IsMatch(int)

Compare a value against the current value of this parameter. Best used with inclusive selection.

public override bool IsMatch(int otherValue)

Parameters

otherValue int

Returns

bool

ToString()

Convert a parameter value back to a string.

public override string ToString()

Returns

string

TryParse(ReadOnlySpan<char>, out QuestParameterValue<int>)

public static bool TryParse(ReadOnlySpan<char> str, out QuestParameterValue<int> value)

Parameters

str ReadOnlySpan<char>
value QuestParameterValue<int>

Returns

bool

WriteJson(Utf8JsonWriter)

Write to a JSON writer.

public override void WriteJson(Utf8JsonWriter writer)

Parameters

writer Utf8JsonWriter