Barotrauma Server
|
Classes | |
class | ReputationReward |
class | TriggerEvent |
Public Member Functions | |
MissionPrefab (ContentXElement element, MissionsFile file) | |
bool | IsAllowed (Location from, Location to) |
bool | IsAllowedDifficulty (float difficulty) |
Inclusive (matching the min an max values is accepted). | |
Mission | Instantiate (Location[] locations, Submarine sub) |
override void | Dispose () |
![]() | |
Prefab (ContentFile file, Identifier identifier) | |
Prefab (ContentFile file, ContentXElement element) | |
void | Dispose () |
Public Attributes | |
readonly MissionType | Type |
readonly bool | MultiplayerOnly |
readonly bool | SingleplayerOnly |
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) | |
readonly int | MinLevelDifficulty = 0 |
The actual minimum difficulty of the level allowed for this mission to trigger. | |
readonly int | MaxLevelDifficulty = 100 |
The actual maximum difficulty of the level allowed for this mission to trigger. | |
readonly int | Reward |
readonly ImmutableArray< LocalizedString > | Headers |
readonly ImmutableArray< LocalizedString > | Messages |
readonly bool | AllowRetry |
readonly bool | ShowInMenus |
readonly bool | ShowStartMessage |
readonly bool | IsSideObjective |
readonly bool | AllowOtherMissionsInLevel |
readonly bool | RequireWreck |
readonly bool | RequireRuin |
readonly bool | RequireThalamusWreck |
readonly bool | BlockLocationTypeChanges |
If enabled, locations this mission takes place in cannot change their type. | |
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. | |
readonly List< Identifier > | AllowedLocationTypes = new List<Identifier>() |
The mission can only be received in these location types. | |
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. | |
readonly List< string > | UnhideEntitySubCategories = new List<string>() |
Show entities belonging to these sub categories when the mission starts. | |
readonly List< TriggerEvent > | TriggerEvents = new List<TriggerEvent>() |
LocationTypeChange | LocationTypeChangeOnCompleted |
readonly ContentXElement | ConfigElement |
![]() | |
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 |
const int | MaxDifficulty = 4 |
![]() | |
static readonly ImmutableHashSet< Type > | Types |
Additional Inherited Members | |
![]() | |
static void | DisallowCallFromConstructor () |
![]() | |
PrefabWithUintIdentifier (ContentFile file, Identifier identifier) | |
PrefabWithUintIdentifier (ContentFile file, ContentXElement element) | |
![]() | |
virtual Identifier | DetermineIdentifier (XElement element) |
![]() | |
UInt32 | UintIdentifier [get, set] |
![]() | |
ContentPackage? | ContentPackage [get] |
ContentPath | FilePath [get] |
Barotrauma.MissionPrefab.MissionPrefab | ( | ContentXElement | element, |
MissionsFile | file ) |
override void Barotrauma.MissionPrefab.Dispose | ( | ) |
bool Barotrauma.MissionPrefab.IsAllowedDifficulty | ( | float | difficulty | ) |
Inclusive (matching the min an max values is accepted).
readonly Identifier Barotrauma.MissionPrefab.AchievementIdentifier |
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.
readonly List<Identifier> Barotrauma.MissionPrefab.AllowedLocationTypes = new List<Identifier>() |
The mission can only be received in these location types.
readonly bool Barotrauma.MissionPrefab.AllowOtherMissionsInLevel |
readonly bool Barotrauma.MissionPrefab.AllowRetry |
readonly bool Barotrauma.MissionPrefab.BlockLocationTypeChanges |
If enabled, locations this mission takes place in cannot change their type.
readonly int Barotrauma.MissionPrefab.Commonness |
readonly ContentXElement Barotrauma.MissionPrefab.ConfigElement |
|
static |
readonly List<(Identifier Identifier, object Value, SetDataAction.OperationType OperationType)> Barotrauma.MissionPrefab.DataRewards = new List<(Identifier Identifier, object Value, SetDataAction.OperationType OperationType)>() |
readonly LocalizedString Barotrauma.MissionPrefab.Description |
readonly? int Barotrauma.MissionPrefab.Difficulty |
Displayed difficulty (indicator)
readonly LocalizedString Barotrauma.MissionPrefab.FailureMessage |
readonly ImmutableArray<LocalizedString> Barotrauma.MissionPrefab.Headers |
|
static |
readonly bool Barotrauma.MissionPrefab.IsSideObjective |
LocationTypeChange Barotrauma.MissionPrefab.LocationTypeChangeOnCompleted |
|
static |
readonly int Barotrauma.MissionPrefab.MaxLevelDifficulty = 100 |
The actual maximum difficulty of the level allowed for this mission to trigger.
readonly int Barotrauma.MissionPrefab.MaxProgressState |
readonly ImmutableArray<LocalizedString> Barotrauma.MissionPrefab.Messages |
|
static |
readonly int Barotrauma.MissionPrefab.MinLevelDifficulty = 0 |
The actual minimum difficulty of the level allowed for this mission to trigger.
readonly bool Barotrauma.MissionPrefab.MultiplayerOnly |
readonly LocalizedString Barotrauma.MissionPrefab.Name |
|
static |
readonly LocalizedString Barotrauma.MissionPrefab.ProgressBarLabel |
|
static |
readonly ImmutableList<ReputationReward> Barotrauma.MissionPrefab.ReputationRewards |
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.
readonly bool Barotrauma.MissionPrefab.RequireRuin |
readonly bool Barotrauma.MissionPrefab.RequireThalamusWreck |
readonly bool Barotrauma.MissionPrefab.RequireWreck |
readonly int Barotrauma.MissionPrefab.Reward |
readonly bool Barotrauma.MissionPrefab.ShowInMenus |
readonly bool Barotrauma.MissionPrefab.ShowProgressBar |
readonly bool Barotrauma.MissionPrefab.ShowProgressInNumbers |
readonly bool Barotrauma.MissionPrefab.ShowStartMessage |
readonly bool Barotrauma.MissionPrefab.SingleplayerOnly |
readonly Identifier Barotrauma.MissionPrefab.SonarIconIdentifier |
readonly LocalizedString Barotrauma.MissionPrefab.SonarLabel |
readonly LocalizedString Barotrauma.MissionPrefab.SuccessMessage |
readonly ImmutableHashSet<Identifier> Barotrauma.MissionPrefab.Tags |
readonly Identifier Barotrauma.MissionPrefab.TextIdentifier |
readonly List<TriggerEvent> Barotrauma.MissionPrefab.TriggerEvents = new List<TriggerEvent>() |
readonly MissionType Barotrauma.MissionPrefab.Type |
readonly List<string> Barotrauma.MissionPrefab.UnhideEntitySubCategories = new List<string>() |
Show entities belonging to these sub categories when the mission starts.