Table of Contents

Class QuestUnlockRequirement

Namespace
Uncreated.Warfare.Players.Unlocks
Assembly
Uncreated.Warfare.dll
public class QuestUnlockRequirement : UnlockRequirement, ICloneable, IEquatable<QuestUnlockRequirement>
Inheritance
QuestUnlockRequirement
Implements
Inherited Members

Constructors

QuestUnlockRequirement(TranslationInjection<RequestTranslations>)

public QuestUnlockRequirement(TranslationInjection<RequestTranslations> reqTranslations)

Parameters

reqTranslations TranslationInjection<RequestTranslations>

Properties

QuestId

public Guid QuestId { get; set; }

Property Value

Guid

UnlockPresets

public Guid[] UnlockPresets { get; set; }

Property Value

Guid[]

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.

Equals(QuestUnlockRequirement)

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

public bool Equals(QuestUnlockRequirement other)

Parameters

other QuestUnlockRequirement

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; 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