Barotrauma Server Doc
|
Classes | |
class | ReputationReward |
class | TriggerEvent |
Public Member Functions | |
MissionPrefab (ContentXElement element, MissionsFile file) | |
bool | IsAllowed (Location from, Location to) |
Mission | Instantiate (Location[] locations, Submarine sub) |
override void | Dispose () |
Public Member Functions inherited from Barotrauma.Prefab | |
Prefab (ContentFile file, Identifier identifier) | |
Prefab (ContentFile file, ContentXElement element) | |
Public Attributes | |
readonly MissionType | Type |
readonly bool | MultiplayerOnly |
readonly Identifier | TextIdentifier |
readonly ImmutableHashSet< Identifier > | Tags |
readonly LocalizedString | Name |
readonly LocalizedString | Description |
readonly LocalizedString | SuccessMessage |
readonly LocalizedString | FailureMessage |
readonly LocalizedString | SonarLabel |
readonly Identifier | SonarIconIdentifier |
readonly Identifier | AchievementIdentifier |
readonly ImmutableList< ReputationReward > | ReputationRewards |
readonly List<(Identifier Identifier, object Value, SetDataAction.OperationType OperationType)> | DataRewards = new List<(Identifier Identifier, object Value, SetDataAction.OperationType OperationType)>() |
readonly int | Commonness |
readonly? int | Difficulty |
Displayed difficulty (indicator) More... | |
readonly int | MinLevelDifficulty = 0 |
The actual minimum difficulty of the level allowed for this mission to trigger. More... | |
readonly int | MaxLevelDifficulty = 100 |
The actual maximum difficulty of the level allowed for this mission to trigger. More... | |
readonly int | Reward |
readonly ImmutableArray< LocalizedString > | Headers |
readonly ImmutableArray< LocalizedString > | Messages |
readonly bool | AllowRetry |
readonly bool | ShowInMenus |
readonly bool | IsSideObjective |
readonly bool | AllowOtherMissionsInLevel |
readonly bool | RequireWreck |
readonly bool | BlockLocationTypeChanges |
If enabled, locations this mission takes place in cannot change their type More... | |
readonly bool | ShowProgressBar |
readonly bool | ShowProgressInNumbers |
readonly int | MaxProgressState |
readonly LocalizedString | ProgressBarLabel |
readonly List<(Identifier from, Identifier to)> | AllowedConnectionTypes |
The mission can only be received when travelling from a location of the first type to a location of the second type More... | |
readonly List< Identifier > | AllowedLocationTypes = new List<Identifier>() |
The mission can only be received in these location types More... | |
readonly Identifier | RequiredLocationFaction |
The mission can only happen in locations owned by this faction. In the mission mode, the location is forced to be owned by this faction. More... | |
readonly List< string > | UnhideEntitySubCategories = new List<string>() |
Show entities belonging to these sub categories when the mission starts More... | |
readonly List< TriggerEvent > | TriggerEvents = new List<TriggerEvent>() |
LocationTypeChange | LocationTypeChangeOnCompleted |
readonly ContentXElement | ConfigElement |
Public Attributes inherited from Barotrauma.Prefab | |
readonly Identifier | Identifier |
readonly ContentFile | ContentFile |
Static Public Attributes | |
static readonly PrefabCollection< MissionPrefab > | Prefabs = new PrefabCollection<MissionPrefab>() |
static readonly Dictionary< MissionType, Type > | CoOpMissionClasses |
static readonly Dictionary< MissionType, Type > | PvPMissionClasses |
static readonly HashSet< MissionType > | HiddenMissionClasses = new HashSet<MissionType>() { MissionType.GoTo, MissionType.End } |
const int | MinDifficulty = 1 |
Static Public Attributes inherited from Barotrauma.Prefab | |
static readonly ImmutableHashSet< Type > | Types |
Additional Inherited Members | |
Static Public Member Functions inherited from Barotrauma.Prefab | |
static void | DisallowCallFromConstructor () |
Protected Member Functions inherited from Barotrauma.PrefabWithUintIdentifier | |
PrefabWithUintIdentifier (ContentFile file, Identifier identifier) | |
PrefabWithUintIdentifier (ContentFile file, ContentXElement element) | |
Protected Member Functions inherited from Barotrauma.Prefab | |
virtual Identifier | DetermineIdentifier (XElement element) |
Properties inherited from Barotrauma.PrefabWithUintIdentifier | |
UInt32 | UintIdentifier [get, set] |
Properties inherited from Barotrauma.Prefab | |
ContentPackage? | ContentPackage [get] |
ContentPath | FilePath [get] |
Definition at line 31 of file MissionPrefab.cs.
Barotrauma.MissionPrefab.MissionPrefab | ( | ContentXElement | element, |
MissionsFile | file | ||
) |
Definition at line 182 of file MissionPrefab.cs.
|
virtual |
Implements Barotrauma.Prefab.
Definition at line 448 of file MissionPrefab.cs.
Definition at line 442 of file MissionPrefab.cs.
Definition at line 399 of file MissionPrefab.cs.
readonly Identifier Barotrauma.MissionPrefab.AchievementIdentifier |
Definition at line 89 of file MissionPrefab.cs.
readonly List<(Identifier from, Identifier to)> Barotrauma.MissionPrefab.AllowedConnectionTypes |
The mission can only be received when travelling from a location of the first type to a location of the second type
Definition at line 139 of file MissionPrefab.cs.
readonly List<Identifier> Barotrauma.MissionPrefab.AllowedLocationTypes = new List<Identifier>() |
The mission can only be received in these location types
Definition at line 144 of file MissionPrefab.cs.
readonly bool Barotrauma.MissionPrefab.AllowOtherMissionsInLevel |
Definition at line 122 of file MissionPrefab.cs.
readonly bool Barotrauma.MissionPrefab.AllowRetry |
Definition at line 116 of file MissionPrefab.cs.
readonly bool Barotrauma.MissionPrefab.BlockLocationTypeChanges |
If enabled, locations this mission takes place in cannot change their type
Definition at line 129 of file MissionPrefab.cs.
readonly int Barotrauma.MissionPrefab.Commonness |
Definition at line 96 of file MissionPrefab.cs.
readonly ContentXElement Barotrauma.MissionPrefab.ConfigElement |
Definition at line 180 of file MissionPrefab.cs.
|
static |
Definition at line 35 of file MissionPrefab.cs.
readonly List<(Identifier Identifier, object Value, SetDataAction.OperationType OperationType)> Barotrauma.MissionPrefab.DataRewards = new List<(Identifier Identifier, object Value, SetDataAction.OperationType OperationType)>() |
Definition at line 94 of file MissionPrefab.cs.
readonly LocalizedString Barotrauma.MissionPrefab.Description |
Definition at line 83 of file MissionPrefab.cs.
readonly? int Barotrauma.MissionPrefab.Difficulty |
Displayed difficulty (indicator)
Definition at line 100 of file MissionPrefab.cs.
readonly LocalizedString Barotrauma.MissionPrefab.FailureMessage |
Definition at line 85 of file MissionPrefab.cs.
readonly ImmutableArray<LocalizedString> Barotrauma.MissionPrefab.Headers |
Definition at line 113 of file MissionPrefab.cs.
|
static |
Definition at line 70 of file MissionPrefab.cs.
readonly bool Barotrauma.MissionPrefab.IsSideObjective |
Definition at line 120 of file MissionPrefab.cs.
LocationTypeChange Barotrauma.MissionPrefab.LocationTypeChangeOnCompleted |
Definition at line 178 of file MissionPrefab.cs.
readonly int Barotrauma.MissionPrefab.MaxLevelDifficulty = 100 |
The actual maximum difficulty of the level allowed for this mission to trigger.
Definition at line 109 of file MissionPrefab.cs.
readonly int Barotrauma.MissionPrefab.MaxProgressState |
Definition at line 133 of file MissionPrefab.cs.
readonly ImmutableArray<LocalizedString> Barotrauma.MissionPrefab.Messages |
Definition at line 114 of file MissionPrefab.cs.
|
static |
Definition at line 101 of file MissionPrefab.cs.
readonly int Barotrauma.MissionPrefab.MinLevelDifficulty = 0 |
The actual minimum difficulty of the level allowed for this mission to trigger.
Definition at line 105 of file MissionPrefab.cs.
readonly bool Barotrauma.MissionPrefab.MultiplayerOnly |
Definition at line 76 of file MissionPrefab.cs.
readonly LocalizedString Barotrauma.MissionPrefab.Name |
Definition at line 82 of file MissionPrefab.cs.
|
static |
Definition at line 33 of file MissionPrefab.cs.
readonly LocalizedString Barotrauma.MissionPrefab.ProgressBarLabel |
Definition at line 134 of file MissionPrefab.cs.
|
static |
Definition at line 51 of file MissionPrefab.cs.
readonly ImmutableList<ReputationReward> Barotrauma.MissionPrefab.ReputationRewards |
Definition at line 91 of file MissionPrefab.cs.
readonly Identifier Barotrauma.MissionPrefab.RequiredLocationFaction |
The mission can only happen in locations owned by this faction. In the mission mode, the location is forced to be owned by this faction.
Definition at line 149 of file MissionPrefab.cs.
readonly bool Barotrauma.MissionPrefab.RequireWreck |
Definition at line 124 of file MissionPrefab.cs.
readonly int Barotrauma.MissionPrefab.Reward |
Definition at line 111 of file MissionPrefab.cs.
readonly bool Barotrauma.MissionPrefab.ShowInMenus |
Definition at line 118 of file MissionPrefab.cs.
readonly bool Barotrauma.MissionPrefab.ShowProgressBar |
Definition at line 131 of file MissionPrefab.cs.
readonly bool Barotrauma.MissionPrefab.ShowProgressInNumbers |
Definition at line 132 of file MissionPrefab.cs.
readonly Identifier Barotrauma.MissionPrefab.SonarIconIdentifier |
Definition at line 87 of file MissionPrefab.cs.
readonly LocalizedString Barotrauma.MissionPrefab.SonarLabel |
Definition at line 86 of file MissionPrefab.cs.
readonly LocalizedString Barotrauma.MissionPrefab.SuccessMessage |
Definition at line 84 of file MissionPrefab.cs.
readonly ImmutableHashSet<Identifier> Barotrauma.MissionPrefab.Tags |
Definition at line 80 of file MissionPrefab.cs.
readonly Identifier Barotrauma.MissionPrefab.TextIdentifier |
Definition at line 78 of file MissionPrefab.cs.
readonly List<TriggerEvent> Barotrauma.MissionPrefab.TriggerEvents = new List<TriggerEvent>() |
Definition at line 176 of file MissionPrefab.cs.
readonly MissionType Barotrauma.MissionPrefab.Type |
Definition at line 74 of file MissionPrefab.cs.
readonly List<string> Barotrauma.MissionPrefab.UnhideEntitySubCategories = new List<string>() |
Show entities belonging to these sub categories when the mission starts
Definition at line 154 of file MissionPrefab.cs.