Table of Contents

Class ShovelBuildables.State

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

Properties

Amount

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

Property Value

QuestParameterValue<int>

Base

public QuestParameterValue<Guid>? Base { get; set; }

Property Value

QuestParameterValue<Guid>

Buildable

public QuestParameterValue<ShovelableType>? Buildable { get; set; }

Property Value

QuestParameterValue<ShovelableType>

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>

Text

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

Property Value

string

Methods

CreateFromConfigurationAsync(IQuestStateConfiguration, ShovelBuildables, IServiceProvider, CancellationToken)

Reads a pre-configured state from a configuration file.

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

Parameters

configuration IQuestStateConfiguration
template ShovelBuildables
serviceProvider IServiceProvider
token CancellationToken

Returns

UniTask

CreateFromTemplateAsync(ShovelBuildables, CancellationToken)

Creates a random state from a QuestTemplate type.

public UniTask CreateFromTemplateAsync(ShovelBuildables template, CancellationToken token)

Parameters

template ShovelBuildables
token CancellationToken

Returns

UniTask

CreateQuestDescriptiveString()

Creates a string used to auto-generate quests.

public string CreateQuestDescriptiveString()

Returns

string

Remarks

Used by Daily Quests.