Table of Contents

Interface IQuestPreset

Namespace
Uncreated.Warfare.Quests
Assembly
Uncreated.Warfare.dll

Represents a preset for a quest template that can be used to load exact values for the random variables. It is identified by a unqiue Guid and can contain overridden or precalculated rewards.

public interface IQuestPreset

Properties

Flag

Unturned Quest Flag ID, just needs to be a unique UInt16 value amongst all other flags.

ushort Flag { get; }

Property Value

ushort

Key

Unique ID used to identify the preset.

Guid Key { get; }

Property Value

Guid

RewardOverrides

Optionally override the default reward expressions.

IQuestReward[]? RewardOverrides { get; }

Property Value

IQuestReward[]

State

The data that overrides the random variables.

IQuestState State { get; }

Property Value

IQuestState

Methods

UpdateState(IQuestState)

Used to set the state during deserialization.

void UpdateState(IQuestState state)

Parameters

state IQuestState