Table of Contents

Class KingSlayer.State

Namespace
Uncreated.Warfare.Quests.Templates
Assembly
Uncreated.Warfare.dll
public class KingSlayer.State : IQuestState<KingSlayer>, IQuestState
Inheritance
KingSlayer.State
Implements
Inherited Members

Properties

FlagValue

The value of the Unturned Quest Flag. This is formatted into SDG.Unturned.QuestAsset translations.

[JsonIgnore]
public QuestParameterValue<int> FlagValue { get; }

Property Value

QuestParameterValue<int>

Kills

[RewardVariable("k")]
public QuestParameterValue<int> Kills { get; set; }

Property Value

QuestParameterValue<int>

Text

[JsonIgnore]
public string Text { get; set; }

Property Value

string

Methods

CreateFromConfigurationAsync(IQuestStateConfiguration, KingSlayer, IServiceProvider, CancellationToken)

Reads a pre-configured state from a configuration file.

public UniTask CreateFromConfigurationAsync(IQuestStateConfiguration configuration, KingSlayer template, IServiceProvider serviceProvider, CancellationToken token)

Parameters

configuration IQuestStateConfiguration
template KingSlayer
serviceProvider IServiceProvider
token CancellationToken

Returns

UniTask

CreateFromTemplateAsync(KingSlayer, CancellationToken)

Creates a random state from a QuestTemplate type.

public UniTask CreateFromTemplateAsync(KingSlayer template, CancellationToken token)

Parameters

template KingSlayer
token CancellationToken

Returns

UniTask

CreateQuestDescriptiveString()

Creates a string used to auto-generate quests.

public string CreateQuestDescriptiveString()

Returns

string

Remarks

Used by Daily Quests.