Interface IQuestPreset
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
Key
Unique ID used to identify the preset.
Guid Key { get; }
Property Value
RewardOverrides
Optionally override the default reward expressions.
IQuestReward[]? RewardOverrides { get; }
Property Value
State
The data that overrides the random variables.
IQuestState State { get; }
Property Value
Methods
UpdateState(IQuestState)
Used to set the state during deserialization.
void UpdateState(IQuestState state)
Parameters
stateIQuestState