Table of Contents

Class LevelUnlockRequirement

Namespace
Uncreated.Warfare.Players.Unlocks
Assembly
Uncreated.Warfare.dll
public class LevelUnlockRequirement : UnlockRequirement, ICloneable
Inheritance
LevelUnlockRequirement
Implements
Inherited Members

Properties

UnlockLevel

[JsonPropertyName("unlock_level")]
public int UnlockLevel { get; set; }

Property Value

int

Methods

CanAccessFast(WarfarePlayer)

If a player passes the requirements. This check can do some caching, mainly for signs.

public override bool CanAccessFast(WarfarePlayer player)

Parameters

player WarfarePlayer

Returns

bool

Clone()

Creates a new object that is a copy of the current instance.

public override object Clone()

Returns

object

A new object that is a copy of this instance.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

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

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetSignText(WarfarePlayer?, LanguageInfo, CultureInfo)

Get the text that shows on a sign when the player is missing the requirement.

public override string GetSignText(WarfarePlayer? player, LanguageInfo language, CultureInfo culture)

Parameters

player WarfarePlayer
language LanguageInfo
culture CultureInfo

Returns

string

ReadLegacyProperty(ILogger?, ref Utf8JsonReader, string)

protected override void ReadLegacyProperty(ILogger? logger, ref Utf8JsonReader reader, string property)

Parameters

logger ILogger
reader Utf8JsonReader
property string

RequestKitFailureToMeet(CommandContext, Kit)

public override Exception RequestKitFailureToMeet(CommandContext ctx, Kit kit)

Parameters

ctx CommandContext
kit Kit

Returns

Exception

RequestVehicleFailureToMeet(CommandContext, WarfareVehicleInfo)

public override Exception RequestVehicleFailureToMeet(CommandContext ctx, WarfareVehicleInfo data)

Parameters

ctx CommandContext
data WarfareVehicleInfo

Returns

Exception