Table of Contents

Class SaveLoadGameUtil

Namespace
KSP.Game
Assembly
Assembly-CSharp.dll
public static class SaveLoadGameUtil
Inheritance
SaveLoadGameUtil
Inherited Members

Properties

Game

public static GameInstance Game { get; }

Property Value

GameInstance

MPLoadingLogRunning

public static bool MPLoadingLogRunning { get; }

Property Value

bool

MPLoadingLogToFile

public static bool MPLoadingLogToFile { get; }

Property Value

bool

Methods

DebugMPLoadingLogWriteLineToFile(string)

public static void DebugMPLoadingLogWriteLineToFile(string line)

Parameters

line string

FlushMPLoadingLogMaybe()

public static void FlushMPLoadingLogMaybe()

GetMPLoadingLogEntryList()

public static List<SaveLoadGameUtil.MPLoadingLogEntry> GetMPLoadingLogEntryList()

Returns

List<SaveLoadGameUtil.MPLoadingLogEntry>

GetMyActiveCameraInfoFromSavedGame(SerializedSavedGame)

public static SerializedActiveCameraInfo GetMyActiveCameraInfoFromSavedGame(SerializedSavedGame savedGame)

Parameters

savedGame SerializedSavedGame

Returns

SerializedActiveCameraInfo

GetMyActiveLocalSpaceBodyFromSavedGame(SerializedSavedGame)

public static string GetMyActiveLocalSpaceBodyFromSavedGame(SerializedSavedGame savedGame)

Parameters

savedGame SerializedSavedGame

Returns

string

GetMyActiveVesselGuidFromSavedGame(SerializedSavedGame)

public static IGGuid GetMyActiveVesselGuidFromSavedGame(SerializedSavedGame savedGame)

Parameters

savedGame SerializedSavedGame

Returns

IGGuid

GetMyFlightCtrlStateFromSavedGame(SerializedSavedGame)

public static SerializedFlightControlState GetMyFlightCtrlStateFromSavedGame(SerializedSavedGame savedGame)

Parameters

savedGame SerializedSavedGame

Returns

SerializedFlightControlState

GetMyHistoricalGameStateFromSavedGame(SerializedSavedGame)

public static GameState GetMyHistoricalGameStateFromSavedGame(SerializedSavedGame savedGame)

Parameters

savedGame SerializedSavedGame

Returns

GameState

GetMyLastOABConfigFromSavedData(SerializedSavedGame)

public static SerializedOABConfig GetMyLastOABConfigFromSavedData(SerializedSavedGame savedGame)

Parameters

savedGame SerializedSavedGame

Returns

SerializedOABConfig

GetMyLastOABWorkspaceSnapshotFromSavedData(SerializedSavedGame)

public static OABHistoricalSnapshot GetMyLastOABWorkspaceSnapshotFromSavedData(SerializedSavedGame savedGame)

Parameters

savedGame SerializedSavedGame

Returns

OABHistoricalSnapshot

GetMyObservedSimObjectGuidFromSavedGame(SerializedSavedGame)

public static IGGuid GetMyObservedSimObjectGuidFromSavedGame(SerializedSavedGame savedGame)

Parameters

savedGame SerializedSavedGame

Returns

IGGuid

GetMyStartingGameStateFromSavedGame(SerializedSavedGame)

public static GameState GetMyStartingGameStateFromSavedGame(SerializedSavedGame savedGame)

Parameters

savedGame SerializedSavedGame

Returns

GameState

LogToMPLoadingLogMaybe(MPLoadingLogEntryType, long, string)

public static void LogToMPLoadingLogMaybe(SaveLoadGameUtil.MPLoadingLogEntryType mpLoadingLogEntryType, long ms, string line)

Parameters

mpLoadingLogEntryType SaveLoadGameUtil.MPLoadingLogEntryType
ms long
line string

LogToMPLoadingLogMaybe(MPLoadingLogEntryType, string)

public static void LogToMPLoadingLogMaybe(SaveLoadGameUtil.MPLoadingLogEntryType mpLoadingLogEntryType, string line)

Parameters

mpLoadingLogEntryType SaveLoadGameUtil.MPLoadingLogEntryType
line string

SetMyActiveVesselGuidToSavedGame(SerializedSavedGame, IGGuid)

public static void SetMyActiveVesselGuidToSavedGame(SerializedSavedGame savedGame, IGGuid activeVesselGuid)

Parameters

savedGame SerializedSavedGame
activeVesselGuid IGGuid

SetMyActiveVesselNameToSavedGame(SerializedSavedGame, string)

public static void SetMyActiveVesselNameToSavedGame(SerializedSavedGame savedGame, string activeVesselName)

Parameters

savedGame SerializedSavedGame
activeVesselName string

SetMyFlightControlStateToSavedGame(SerializedSavedGame, SerializedFlightControlState)

public static void SetMyFlightControlStateToSavedGame(SerializedSavedGame savedGame, SerializedFlightControlState serializedFlightControlState)

Parameters

savedGame SerializedSavedGame
serializedFlightControlState SerializedFlightControlState

SetMyLastOABWorkspaceSnapshotToSavedGame(SerializedSavedGame, OABHistoricalSnapshot)

public static void SetMyLastOABWorkspaceSnapshotToSavedGame(SerializedSavedGame savedGame, OABHistoricalSnapshot lastOABWorkspaceSnapshot)

Parameters

savedGame SerializedSavedGame
lastOABWorkspaceSnapshot OABHistoricalSnapshot

StartMPLoadingLogMaybe()

public static void StartMPLoadingLogMaybe()

StopMPLoadingLogMaybe()

public static void StopMPLoadingLogMaybe()

TryGetMyActiveCameraInfo(out SerializedActiveCameraInfo)

public static bool TryGetMyActiveCameraInfo(out SerializedActiveCameraInfo serializedActiveCameraInfoOut)

Parameters

serializedActiveCameraInfoOut SerializedActiveCameraInfo

Returns

bool