Barotrauma Client Doc
|
Public Member Functions | |
override void | UpdateWhilePaused (float deltaTime) |
override void | HUDScaleChanged () |
override void | Start () |
override void | Update (float deltaTime) |
override void | Save (XElement element) |
Public Member Functions inherited from Barotrauma.CampaignMode | |
virtual Wallet | GetWallet (Client client=null) |
virtual bool | TryPurchase (Client client, int price) |
virtual int | GetBalance (Client client=null) |
bool | CanAfford (int cost, Client client=null) |
Location | GetCurrentDisplayLocation () |
The location that's displayed as the "current one" in the map screen. Normally the current outpost or the location at the start of the level, but when selecting the next destination at the end of the level at an uninhabited location we use the location at the end More... | |
void | InitFactions () |
override void | AddExtraMissions (LevelData levelData) |
void | LoadNewLevel () |
TransitionType | GetAvailableTransition (out LevelData nextLevel, out Submarine leavingSub) |
Which type of transition between levels is currently possible (if any) More... | |
TransitionType | GetAvailableTransition () |
override void | End (CampaignMode.TransitionType transitionType=CampaignMode.TransitionType.None) |
void | UpdateStoreStock () |
Updates store stock before saving the game More... | |
void | EndCampaign () |
Faction | GetRandomFaction (Rand.RandSync randSync, bool allowEmpty=true) |
Returns a random faction based on their ControlledOutpostPercentage More... | |
Faction | GetRandomSecondaryFaction (Rand.RandSync randSync, bool allowEmpty=true) |
Returns a random faction based on their SecondaryControlledOutpostPercentage More... | |
bool | TryHireCharacter (Location location, CharacterInfo characterInfo, Character hirer, Client client=null) |
void | AssignNPCMenuInteraction (Character character, InteractionType interactionType) |
void | OutpostNPCAttacked (Character npc, Character attacker, AttackResult attackResult) |
Faction | GetFaction (Identifier identifier) |
float | GetReputation (Identifier factionIdentifier) |
FactionAffiliation | GetFactionAffiliation (Identifier factionIdentifier) |
void | LogState () |
override void | Remove () |
int | NumberOfMissionsAtLocation (Location location) |
void | CheckTooManyMissions (Location currentLocation, Client sender) |
void | SwitchSubs () |
void | SavePets (XElement parentElement=null) |
void | LoadPets () |
void | SaveActiveOrders (XElement parentElement=null) |
void | LoadActiveOrders () |
override void | ShowStartMessage () |
override void | Draw (SpriteBatch spriteBatch) |
Task | SelectSummaryScreen (RoundSummary roundSummary, LevelData newLevel, bool mirror, Action action) |
void | CancelStartRound () |
void | ThrowIfStartRoundCancellationRequested () |
override void | AddToGUIUpdateList () |
Public Member Functions inherited from Barotrauma.GameMode | |
GameMode (GameModePreset preset) | |
virtual void | End (CampaignMode.TransitionType transitionType=CampaignMode.TransitionType.None) |
Static Public Member Functions | |
static SinglePlayerCampaign | StartNew (string mapSeed, CampaignSettings startingSettings) |
Start a completely new single player campaign More... | |
static SinglePlayerCampaign | Load (XElement element) |
Load a previously saved single player campaign from xml More... | |
Static Public Member Functions inherited from Barotrauma.CampaignMode | |
static bool | BlocksInteraction (InteractionType interactionType) |
static List< Submarine > | GetSubsToLeaveBehind (Submarine leavingSub) |
static int | GetHullRepairCost () |
static int | GetItemRepairCost () |
static Faction | GetRandomFaction (IEnumerable< Faction > factions, Rand.RandSync randSync, bool secondary=false, bool allowEmpty=true) |
static Faction | GetRandomFaction (IEnumerable< Faction > factions, Random random, bool secondary=false, bool allowEmpty=true) |
static bool | AllowedToManageCampaign (ClientPermissions permissions) |
There is a server-side implementation of the method in MultiPlayerCampaign More... | |
static bool | AllowedToManageWallets () |
static bool | AllowImmediateItemDelivery () |
Static Public Attributes | |
const int | MinimumInitialMoney = 0 |
Static Public Attributes inherited from Barotrauma.CampaignMode | |
readonly record struct SaveInfo(string FilePath, Option< SerializableDateTime > SaveTime, string SubmarineName, ImmutableArray< string > EnabledContentPackageNames) const int | MaxMoney = int.MaxValue / 2 |
const int | InitialMoney = 8500 |
const float | HullRepairCostPerDamage = 0.1f |
const int | ShuttleReplaceCost = 1000 |
const int | MaxHullRepairCost = 600 |
Static Public Attributes inherited from Barotrauma.GameMode | |
static List< GameModePreset > | PresetList = new List<GameModePreset>() |
Protected Member Functions | |
override void | LoadInitialLevel () |
Load the first level and start the round after loading a save file More... | |
override IEnumerable< CoroutineStatus > | DoLevelTransition (TransitionType transitionType, LevelData newLevel, Submarine leavingSub, bool mirror) |
override void | EndCampaignProjSpecific () |
Protected Member Functions inherited from Barotrauma.CampaignMode | |
CampaignMode (GameModePreset preset, CampaignSettings settings) | |
void | KeepCharactersCloseToOutpost (float deltaTime) |
void | LoadStats (XElement element) |
XElement | SaveStats () |
void | TransferItemsBetweenSubs () |
Also serializes the current sub. More... | |
void | RefreshOwnedSubmarines () |
GUIButton | CreateEndRoundButton () |
SubmarineInfo | GetPredefinedStartOutpost () |
void | TryEndRoundWithFuelCheck (Action onConfirm, Action onReturnToMapScreen) |
Properties | |
override bool | Paused [get] |
override bool | PurchasedHullRepairs [get, set] |
override bool | PurchasedLostShuttles [get, set] |
override bool | PurchasedItemRepairs [get, set] |
Properties inherited from Barotrauma.CampaignMode | |
IReadOnlyList< Faction > | Factions [get] |
XElement | ActiveOrdersElement [get, set] |
bool | IsFirstRound = true [get, protected set] |
bool | DisableEvents [get] |
bool | TransferItemsOnSubSwitch [get, set] |
bool | SwitchedSubsThisRound [get] |
Map | Map [get] |
override IEnumerable< Mission > | Missions [get] |
Location | CurrentLocation [get] |
LevelData | NextLevel [get, protected set] |
virtual bool | PurchasedHullRepairs [get, set] |
virtual bool | PurchasedLostShuttles [get, set] |
virtual bool | PurchasedItemRepairs [get, set] |
GUIButton | EndRoundButton [get] |
SlideshowPlayer | SlideshowPlayer [get, protected set] |
bool | ForceMapUI [get, protected set] |
bool??????? | ShowCampaignUI [get, set] |
virtual Wallet | Wallet [get] |
Gets the current personal wallet In singleplayer this is the campaign bank and in multiplayer this is the personal wallet More... | |
Properties inherited from Barotrauma.GameMode | |
CrewManager? | CrewManager [get] |
virtual IEnumerable< Mission > | Missions [get] |
bool | IsSinglePlayer [get] |
LocalizedString | Name [get] |
virtual bool | Paused [get] |
GameModePreset | Preset [get] |
Definition at line 9 of file SinglePlayerCampaign.cs.
|
protectedvirtual |
Implements Barotrauma.CampaignMode.
Definition at line 371 of file SinglePlayerCampaign.cs.
|
protectedvirtual |
Reimplemented from Barotrauma.CampaignMode.
Definition at line 480 of file SinglePlayerCampaign.cs.
|
virtual |
Reimplemented from Barotrauma.GameMode.
Definition at line 227 of file SinglePlayerCampaign.cs.
|
static |
Load a previously saved single player campaign from xml
element |
|
protectedvirtual |
Load the first level and start the round after loading a save file
Implements Barotrauma.CampaignMode.
Definition at line 259 of file SinglePlayerCampaign.cs.
|
virtual |
Implements Barotrauma.CampaignMode.
Definition at line 673 of file SinglePlayerCampaign.cs.
|
virtual |
Reimplemented from Barotrauma.CampaignMode.
Definition at line 234 of file SinglePlayerCampaign.cs.
|
static |
Start a completely new single player campaign
|
virtual |
Reimplemented from Barotrauma.CampaignMode.
Definition at line 494 of file SinglePlayerCampaign.cs.
|
virtual |
Reimplemented from Barotrauma.GameMode.
Definition at line 24 of file SinglePlayerCampaign.cs.
|
static |
Definition at line 11 of file SinglePlayerCampaign.cs.
|
get |
Definition at line 13 of file SinglePlayerCampaign.cs.
|
getset |
Definition at line 56 of file SinglePlayerCampaign.cs.
|
getset |
Definition at line 72 of file SinglePlayerCampaign.cs.
|
getset |
Definition at line 64 of file SinglePlayerCampaign.cs.