Barotrauma Server
|
Public Types | |
enum | InfoFrameTab { Crew , Mission , MyCharacter , Traitor } |
Public Member Functions | |
GameSession (SubmarineInfo submarineInfo, string savePath, GameModePreset gameModePreset, CampaignSettings settings, string? seed=null, MissionType missionType=MissionType.None) | |
Start a new GameSession. Will be saved to the specified save path (if playing a game mode that can be saved). | |
GameSession (SubmarineInfo submarineInfo, GameModePreset gameModePreset, string? seed=null, IEnumerable< MissionPrefab >? missionPrefabs=null) | |
Start a new GameSession with a specific pre-selected mission. | |
GameSession (SubmarineInfo submarineInfo, List< SubmarineInfo > ownedSubmarines, XDocument doc, string saveFile) | |
Load a game session from the specified XML document. The session will be saved to the specified path. | |
void | LoadPreviousSave () |
void | SwitchSubmarine (SubmarineInfo newSubmarine, bool transferItems, Client? client=null) |
Switch to another submarine. The sub is loaded when the next round starts. | |
bool | TryPurchaseSubmarine (SubmarineInfo newSubmarine, Client? client=null) |
bool | IsSubmarineOwned (SubmarineInfo query) |
bool | IsCurrentLocationRadiated () |
void | StartRound (string levelSeed, float? difficulty=null, LevelGenerationParams? levelGenerationParams=null) |
void | StartRound (LevelData? levelData, bool mirrorLevel=false, SubmarineInfo? startOutpost=null, SubmarineInfo? endOutpost=null) |
void | PlaceSubAtStart (Level? level) |
void | Update (float deltaTime) |
Mission? | GetMission (int index) |
int | GetMissionIndex (Mission mission) |
void | EnforceMissionOrder (List< Identifier > missionIdentifiers) |
void | EndRound (string endMessage, CampaignMode.TransitionType transitionType=CampaignMode.TransitionType.None, TraitorManager.TraitorResults? traitorResults=null) |
void | LogEndRoundStats (string eventId, TraitorManager.TraitorResults? traitorResults=null) |
void | KillCharacter (Character character) |
void | ReviveCharacter (Character character) |
void | Save (string filePath) |
Static Public Member Functions | |
static Location[] | CreateDummyLocations (LevelData levelData, LocationType? forceLocationType=null) |
static Location[] | CreateDummyLocations (string seed, LocationType? forceLocationType=null) |
static ImmutableHashSet< Character > | GetSessionCrewCharacters (CharacterType type) |
Returns a list of crew characters currently in the game with a given filter. | |
static bool | IsCompatibleWithEnabledContentPackages (IList< string > contentPackageNames, out LocalizedString errorMsg) |
Public Attributes | |
readonly EventManager | EventManager |
GameMode? | GameMode |
CrewManager? | CrewManager |
double | TimeSpentCleaning |
double | TimeSpentPainting |
CharacterTeamType? | WinningTeam |
List< SubmarineInfo > | OwnedSubmarines = new List<SubmarineInfo>() |
Properties | |
Version | LastSaveVersion = GameMain.Version [get, set] |
float | RoundDuration [get] |
IEnumerable< Mission > | Missions [get] |
IEnumerable< Character > | Casualties [get] |
bool | IsRunning [get] |
bool | RoundEnding [get] |
Level? | Level [get] |
LevelData? | LevelData [get] |
bool | MirrorLevel [get] |
Map? | Map [get] |
CampaignMode? | Campaign [get] |
Location | StartLocation [get] |
Location | EndLocation [get] |
SubmarineInfo | SubmarineInfo [get, set] |
Submarine? | Submarine [get, set] |
string? | SavePath [get, set] |
bool | TraitorsEnabled [get] |
Barotrauma.GameSession.GameSession | ( | SubmarineInfo | submarineInfo, |
string | savePath, | ||
GameModePreset | gameModePreset, | ||
CampaignSettings | settings, | ||
string? | seed = null, | ||
MissionType | missionType = MissionType::None ) |
Start a new GameSession. Will be saved to the specified save path (if playing a game mode that can be saved).
Barotrauma.GameSession.GameSession | ( | SubmarineInfo | submarineInfo, |
GameModePreset | gameModePreset, | ||
string? | seed = null, | ||
IEnumerable< MissionPrefab >? | missionPrefabs = null ) |
Start a new GameSession with a specific pre-selected mission.
Barotrauma.GameSession.GameSession | ( | SubmarineInfo | submarineInfo, |
List< SubmarineInfo > | ownedSubmarines, | ||
XDocument | doc, | ||
string | saveFile ) |
Load a game session from the specified XML document. The session will be saved to the specified path.
|
static |
|
static |
void Barotrauma.GameSession.EndRound | ( | string | endMessage, |
CampaignMode.TransitionType | transitionType = CampaignMode::TransitionType::None, | ||
TraitorManager.TraitorResults? | traitorResults = null ) |
void Barotrauma.GameSession.EnforceMissionOrder | ( | List< Identifier > | missionIdentifiers | ) |
Mission? Barotrauma.GameSession.GetMission | ( | int | index | ) |
int Barotrauma.GameSession.GetMissionIndex | ( | Mission | mission | ) |
|
static |
Returns a list of crew characters currently in the game with a given filter.
type | Character type filter |
In singleplayer mode the CharacterType.Player returns the currently controlled player.
|
static |
bool Barotrauma.GameSession.IsCurrentLocationRadiated | ( | ) |
bool Barotrauma.GameSession.IsSubmarineOwned | ( | SubmarineInfo | query | ) |
void Barotrauma.GameSession.KillCharacter | ( | Character | character | ) |
void Barotrauma.GameSession.LoadPreviousSave | ( | ) |
void Barotrauma.GameSession.LogEndRoundStats | ( | string | eventId, |
TraitorManager.TraitorResults? | traitorResults = null ) |
void Barotrauma.GameSession.PlaceSubAtStart | ( | Level? | level | ) |
void Barotrauma.GameSession.ReviveCharacter | ( | Character | character | ) |
void Barotrauma.GameSession.Save | ( | string | filePath | ) |
void Barotrauma.GameSession.StartRound | ( | LevelData? | levelData, |
bool | mirrorLevel = false, | ||
SubmarineInfo? | startOutpost = null, | ||
SubmarineInfo? | endOutpost = null ) |
void Barotrauma.GameSession.StartRound | ( | string | levelSeed, |
float? | difficulty = null, | ||
LevelGenerationParams? | levelGenerationParams = null ) |
void Barotrauma.GameSession.SwitchSubmarine | ( | SubmarineInfo | newSubmarine, |
bool | transferItems, | ||
Client? | client = null ) |
Switch to another submarine. The sub is loaded when the next round starts.
bool Barotrauma.GameSession.TryPurchaseSubmarine | ( | SubmarineInfo | newSubmarine, |
Client? | client = null ) |
void Barotrauma.GameSession.Update | ( | float | deltaTime | ) |
CrewManager? Barotrauma.GameSession.CrewManager |
readonly EventManager Barotrauma.GameSession.EventManager |
GameMode? Barotrauma.GameSession.GameMode |
List<SubmarineInfo> Barotrauma.GameSession.OwnedSubmarines = new List<SubmarineInfo>() |
double Barotrauma.GameSession.TimeSpentCleaning |
double Barotrauma.GameSession.TimeSpentPainting |
CharacterTeamType? Barotrauma.GameSession.WinningTeam |
|
get |
|
get |
|
get |
|
get |
|
getset |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
getset |
|
get |
|
getset |
|
getset |
|
get |