Class LevelUnlockRequirement
public class LevelUnlockRequirement : UnlockRequirement, ICloneable
- Inheritance
-
LevelUnlockRequirement
- Implements
- Inherited Members
Properties
UnlockLevel
[JsonPropertyName("unlock_level")]
public int UnlockLevel { get; set; }
Property Value
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
playerWarfarePlayer
Returns
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
objobjectThe object to compare with the current object.
Returns
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
playerWarfarePlayerlanguageLanguageInfocultureCultureInfo
Returns
ReadLegacyProperty(ILogger?, ref Utf8JsonReader, string)
protected override void ReadLegacyProperty(ILogger? logger, ref Utf8JsonReader reader, string property)
Parameters
loggerILoggerreaderUtf8JsonReaderpropertystring
RequestKitFailureToMeet(CommandContext, Kit)
public override Exception RequestKitFailureToMeet(CommandContext ctx, Kit kit)
Parameters
ctxCommandContextkitKit
Returns
RequestVehicleFailureToMeet(CommandContext, WarfareVehicleInfo)
public override Exception RequestVehicleFailureToMeet(CommandContext ctx, WarfareVehicleInfo data)
Parameters
ctxCommandContextdataWarfareVehicleInfo