Table of Contents

Class CampaignPlayerEntry

Namespace
KSP.Game
Assembly
Assembly-CSharp.dll
public class CampaignPlayerEntry
Inheritance
CampaignPlayerEntry
Inherited Members
Extension Methods

Constructors

CampaignPlayerEntry(CampaignPlayerManager, string, string, byte, GameState, GameState, int, string, IGGuid, string, IGGuid, ActiveCameraGroup, SerializedActiveCameraInfo, SerializedFlightControlState, OABHistoricalSnapshot, SerializedOABConfig, string, Dictionary<string, uint>, bool, List<MissionSaveData>, List<string>, List<string>, List<TrackedMissions>, Color, Color)

public CampaignPlayerEntry(CampaignPlayerManager campaignPlayerManager, string playerNameString, string playerGuidString, byte playerId, GameState startingGameState, GameState historicalGameState, int agencyId, string activeLocalSpaceCB, IGGuid observedSimObjectGuid, string activeVesselName, IGGuid activeVesselGuid, ActiveCameraGroup activeCameraGroup, SerializedActiveCameraInfo activeCameraInfo, SerializedFlightControlState flightControlState, OABHistoricalSnapshot lastOABWorkspaceSnapshot, SerializedOABConfig lastOABConfig, string copyLocationString, Dictionary<string, uint> favoritedParts, bool isFTUEEnabled, List<MissionSaveData> missionSaveData, List<string> completedTutorials, List<string> completedFTUEs, List<TrackedMissions> trackedMissions, Color partColorBase, Color partColorAccent)

Parameters

campaignPlayerManager CampaignPlayerManager
playerNameString string
playerGuidString string
playerId byte
startingGameState GameState
historicalGameState GameState
agencyId int
activeLocalSpaceCB string
observedSimObjectGuid IGGuid
activeVesselName string
activeVesselGuid IGGuid
activeCameraGroup ActiveCameraGroup
activeCameraInfo SerializedActiveCameraInfo
flightControlState SerializedFlightControlState
lastOABWorkspaceSnapshot OABHistoricalSnapshot
lastOABConfig SerializedOABConfig
copyLocationString string
favoritedParts Dictionary<string, uint>
isFTUEEnabled bool
missionSaveData List<MissionSaveData>
completedTutorials List<string>
completedFTUEs List<string>
trackedMissions List<TrackedMissions>
partColorBase Color
partColorAccent Color

Fields

DEFAULT_ACTIVE_CAMERA_GROUP

public const ActiveCameraGroup DEFAULT_ACTIVE_CAMERA_GROUP = None

Field Value

ActiveCameraGroup

DEFAULT_ACTIVE_LOCAL_SPACE_CB

public const string DEFAULT_ACTIVE_LOCAL_SPACE_CB = ""

Field Value

string

DEFAULT_ACTIVE_VESSEL_GUID

public static IGGuid DEFAULT_ACTIVE_VESSEL_GUID

Field Value

IGGuid

DEFAULT_ACTIVE_VESSEL_NAME

public const string DEFAULT_ACTIVE_VESSEL_NAME = ""

Field Value

string

DEFAULT_AGENCY_ID

public const int DEFAULT_AGENCY_ID = 0

Field Value

int

DEFAULT_CAMPAIGN_PLAYER_MANAGER

public const CampaignPlayerManager DEFAULT_CAMPAIGN_PLAYER_MANAGER = null

Field Value

CampaignPlayerManager

DEFAULT_COPY_LOCATION_STRING

public const string DEFAULT_COPY_LOCATION_STRING = ""

Field Value

string

DEFAULT_FAVORITED_PARTS

public const Dictionary<string, uint> DEFAULT_FAVORITED_PARTS = null

Field Value

Dictionary<string, uint>

DEFAULT_FLIGHT_CONTROL_STATE

public const SerializedFlightControlState DEFAULT_FLIGHT_CONTROL_STATE = null

Field Value

SerializedFlightControlState

DEFAULT_HISTORICAL_GAME_STATE

public const GameState DEFAULT_HISTORICAL_GAME_STATE = Invalid

Field Value

GameState

DEFAULT_IS_FTUE_ENABLED

public const bool DEFAULT_IS_FTUE_ENABLED = true

Field Value

bool

DEFAULT_LAST_OAB_CONFIG

public const SerializedOABConfig DEFAULT_LAST_OAB_CONFIG = null

Field Value

SerializedOABConfig

DEFAULT_LAST_OAB_WORKSPACE_SNAPSHOT

public const OABHistoricalSnapshot DEFAULT_LAST_OAB_WORKSPACE_SNAPSHOT = null

Field Value

OABHistoricalSnapshot

DEFAULT_OBSERVED_SIMOBJECT_GUID

public static readonly IGGuid DEFAULT_OBSERVED_SIMOBJECT_GUID

Field Value

IGGuid

DEFAULT_PART_COLOR_ACCENT

public static Color DEFAULT_PART_COLOR_ACCENT

Field Value

Color

DEFAULT_PART_COLOR_BASE

public static Color DEFAULT_PART_COLOR_BASE

Field Value

Color

DEFAULT_PLAYER_GUID_STRING

public const string DEFAULT_PLAYER_GUID_STRING = ""

Field Value

string

DEFAULT_PLAYER_ID

public const byte DEFAULT_PLAYER_ID = 0

Field Value

byte

DEFAULT_PLAYER_NAME_STRING

public const string DEFAULT_PLAYER_NAME_STRING = ""

Field Value

string

DEFAULT_STARTING_GAME_STATE

public const GameState DEFAULT_STARTING_GAME_STATE = KerbalSpaceCenter

Field Value

GameState

Properties

ActiveCameraGroup

public ActiveCameraGroup ActiveCameraGroup { get; }

Property Value

ActiveCameraGroup

ActiveCameraInfo

public SerializedActiveCameraInfo ActiveCameraInfo { get; }

Property Value

SerializedActiveCameraInfo

ActiveLocalSpaceCB

public string ActiveLocalSpaceCB { get; }

Property Value

string

ActiveVesselGuid

public IGGuid ActiveVesselGuid { get; }

Property Value

IGGuid

ActiveVesselName

public string ActiveVesselName { get; }

Property Value

string

AgencyId

public int AgencyId { get; }

Property Value

int

CampaignPlayerManager

public CampaignPlayerManager CampaignPlayerManager { get; }

Property Value

CampaignPlayerManager

CompletedFTUEs

public IReadOnlyList<string> CompletedFTUEs { get; }

Property Value

IReadOnlyList<string>

CompletedTutorials

public IReadOnlyList<string> CompletedTutorials { get; }

Property Value

IReadOnlyList<string>

CopyLocationString

public string CopyLocationString { get; }

Property Value

string

FavoritedParts

public Dictionary<string, uint> FavoritedParts { get; }

Property Value

Dictionary<string, uint>

FavoritedPartsString

public string FavoritedPartsString { get; }

Property Value

string

FlightControlState

public SerializedFlightControlState FlightControlState { get; }

Property Value

SerializedFlightControlState

Game

public static GameInstance Game { get; }

Property Value

GameInstance

HistoricalGameState

public GameState HistoricalGameState { get; }

Property Value

GameState

IsFTUEEnabled

public bool IsFTUEEnabled { get; }

Property Value

bool

LastOABConfig

public SerializedOABConfig LastOABConfig { get; }

Property Value

SerializedOABConfig

LastOABWorkspaceSnapshot

public OABHistoricalSnapshot LastOABWorkspaceSnapshot { get; }

Property Value

OABHistoricalSnapshot

MissionSaveData

public List<MissionSaveData> MissionSaveData { get; }

Property Value

List<MissionSaveData>

NumFavoritedParts

public int NumFavoritedParts { get; }

Property Value

int

ObservedSimObjectGuid

public IGGuid ObservedSimObjectGuid { get; }

Property Value

IGGuid

PartColorAccent

public Color PartColorAccent { get; }

Property Value

Color

PartColorBase

public Color PartColorBase { get; }

Property Value

Color

PlayerGuidString

public string PlayerGuidString { get; }

Property Value

string

PlayerId

public byte PlayerId { get; }

Property Value

byte

PlayerNameString

public string PlayerNameString { get; }

Property Value

string

StartingGameState

public GameState StartingGameState { get; }

Property Value

GameState

TrackedMissions

public IReadOnlyList<TrackedMissions> TrackedMissions { get; }

Property Value

IReadOnlyList<TrackedMissions>

Methods

AddCompletedFTUE(string)

public void AddCompletedFTUE(string missionId)

Parameters

missionId string

AddCompletedTutorial(string)

public void AddCompletedTutorial(string missionId)

Parameters

missionId string

AddFavoritedPart(string)

public bool AddFavoritedPart(string partName)

Parameters

partName string

Returns

bool

AddTrackedMission(MissionOwner, int, string)

public void AddTrackedMission(MissionOwner owner, int ownerId, string missionID)

Parameters

owner MissionOwner
ownerId int
missionID string

ClearMissionSaveData()

public void ClearMissionSaveData()

~CampaignPlayerEntry()

protected ~CampaignPlayerEntry()

GetDebugPlayerIdNameAndGuidString(PlayerNameFlag)

public string GetDebugPlayerIdNameAndGuidString(StringUtil.PlayerNameFlag playerNameFlags = PlayerNameFlag.Default)

Parameters

playerNameFlags StringUtil.PlayerNameFlag

Returns

string

GetDebugString(bool)

public string GetDebugString(bool abbrev = true)

Parameters

abbrev bool

Returns

string

GetDefaultCompletedMissionIds()

[Obsolete("KERBAL2-2802")]
public static List<string> GetDefaultCompletedMissionIds()

Returns

List<string>

GetIndex()

public int GetIndex()

Returns

int

Init(CampaignPlayerManager, string, string, byte, GameState, GameState, int, string, IGGuid, string, IGGuid, ActiveCameraGroup, SerializedActiveCameraInfo, SerializedFlightControlState, OABHistoricalSnapshot, SerializedOABConfig, string, Dictionary<string, uint>, bool, List<MissionSaveData>, List<string>, List<string>, List<TrackedMissions>, Color, Color)

public void Init(CampaignPlayerManager campaignPlayerManager, string playerNameString, string playerGuidString, byte playerId, GameState startingGameState, GameState historicalGameState, int agencyId, string activeLocalSpaceCB, IGGuid observedSimObjectGuid, string activeVesselName, IGGuid activeVesselGuid, ActiveCameraGroup activeCameraGroup, SerializedActiveCameraInfo activeCameraInfo, SerializedFlightControlState flightControlState, OABHistoricalSnapshot lastOABWorkspaceSnapshot, SerializedOABConfig lastOABConfig, string copyLocationString, Dictionary<string, uint> favoritedParts, bool isFTUEEnabled, List<MissionSaveData> missionSaveData, List<string> completedTutorials, List<string> completedFTUEs, List<TrackedMissions> trackedMissions, Color partColorBase, Color partColorAccent)

Parameters

campaignPlayerManager CampaignPlayerManager
playerNameString string
playerGuidString string
playerId byte
startingGameState GameState
historicalGameState GameState
agencyId int
activeLocalSpaceCB string
observedSimObjectGuid IGGuid
activeVesselName string
activeVesselGuid IGGuid
activeCameraGroup ActiveCameraGroup
activeCameraInfo SerializedActiveCameraInfo
flightControlState SerializedFlightControlState
lastOABWorkspaceSnapshot OABHistoricalSnapshot
lastOABConfig SerializedOABConfig
copyLocationString string
favoritedParts Dictionary<string, uint>
isFTUEEnabled bool
missionSaveData List<MissionSaveData>
completedTutorials List<string>
completedFTUEs List<string>
trackedMissions List<TrackedMissions>
partColorBase Color
partColorAccent Color

IsFavoritedPart(string)

public bool IsFavoritedPart(string partName)

Parameters

partName string

Returns

bool

MoveToIndex(int)

public bool MoveToIndex(int index)

Parameters

index int

Returns

bool

RemoveFavoritedPart(string)

public bool RemoveFavoritedPart(string partName)

Parameters

partName string

Returns

bool

RemoveTrackedMission(MissionOwner, int, string)

public void RemoveTrackedMission(MissionOwner owner, int ownerId, string missionID)

Parameters

owner MissionOwner
ownerId int
missionID string

ResetActiveCameraInfo()

public void ResetActiveCameraInfo()

SetActiveCameraGroup(ActiveCameraGroup, bool)

public void SetActiveCameraGroup(ActiveCameraGroup activeCameraGroup, bool force = false)

Parameters

activeCameraGroup ActiveCameraGroup
force bool

SetActiveCameraInfo(SerializedActiveCameraInfo, bool)

public void SetActiveCameraInfo(SerializedActiveCameraInfo activeCameraInfo, bool force = false)

Parameters

activeCameraInfo SerializedActiveCameraInfo
force bool

SetActiveLocalSpaceCB(string, bool)

public void SetActiveLocalSpaceCB(string activeLocalSpaceCB, bool force = false)

Parameters

activeLocalSpaceCB string
force bool

SetActiveVesselGuid(IGGuid, bool)

public void SetActiveVesselGuid(IGGuid activeVesselGuid, bool force = false)

Parameters

activeVesselGuid IGGuid
force bool

SetActiveVesselName(string, bool)

public void SetActiveVesselName(string activeVesselName, bool force = false)

Parameters

activeVesselName string
force bool

SetAgencyId(int, bool)

public void SetAgencyId(int agencyId, bool force = false)

Parameters

agencyId int
force bool

SetCopyLocationString(string)

public void SetCopyLocationString(string copyLocationString)

Parameters

copyLocationString string

SetFavoritedParts(Dictionary<string, uint>)

public bool SetFavoritedParts(Dictionary<string, uint> src)

Parameters

src Dictionary<string, uint>

Returns

bool

SetFavoritedPartsFromString(string)

public bool SetFavoritedPartsFromString(string favoritedPartsString)

Parameters

favoritedPartsString string

Returns

bool

SetFlightControlState(SerializedFlightControlState, bool)

public void SetFlightControlState(SerializedFlightControlState flightControlState, bool force = false)

Parameters

flightControlState SerializedFlightControlState
force bool

SetHistoricalGameState(GameState, bool)

public void SetHistoricalGameState(GameState historicalGameState, bool force = false)

Parameters

historicalGameState GameState
force bool

SetIsFTUEEnabled(bool)

public void SetIsFTUEEnabled(bool isFTUEEnabled)

Parameters

isFTUEEnabled bool

SetLastOABConfig(SerializedOABConfig, bool)

public void SetLastOABConfig(SerializedOABConfig lastOABConfig, bool force = false)

Parameters

lastOABConfig SerializedOABConfig
force bool

SetLastOABWorkspaceSnapshot(OABHistoricalSnapshot, bool)

public void SetLastOABWorkspaceSnapshot(OABHistoricalSnapshot lastOABWorkspaceSnapshot, bool force = false)

Parameters

lastOABWorkspaceSnapshot OABHistoricalSnapshot
force bool

SetMissions(List<MissionSaveData>)

public void SetMissions(List<MissionSaveData> src)

Parameters

src List<MissionSaveData>

SetObservedSimObjectGuid(IGGuid, bool)

public void SetObservedSimObjectGuid(IGGuid simObjectGuid, bool force = false)

Parameters

simObjectGuid IGGuid
force bool

SetPartColorAccent(Color)

public bool SetPartColorAccent(Color partColorAccent)

Parameters

partColorAccent Color

Returns

bool

SetPartColorBase(Color)

public bool SetPartColorBase(Color partColorBase)

Parameters

partColorBase Color

Returns

bool

SetPlayerGuidString(string, bool)

public void SetPlayerGuidString(string playerGuidString, bool force = false)

Parameters

playerGuidString string
force bool

SetPlayerId(byte, bool)

public void SetPlayerId(byte playerId, bool force = false)

Parameters

playerId byte
force bool

SetPlayerNameString(string, bool)

public void SetPlayerNameString(string playerNameString, bool force = false)

Parameters

playerNameString string
force bool

SetStartingGameState(GameState, bool)

public void SetStartingGameState(GameState startingGameState, bool force = false)

Parameters

startingGameState GameState
force bool

ToString()

public override string ToString()

Returns

string

ToggleFavoritedPart(string)

public bool ToggleFavoritedPart(string partName)

Parameters

partName string

Returns

bool

Uninit()

public void Uninit()

UpdateLookupInfo(string, string, byte)

public void UpdateLookupInfo(string playerNameString, string playerGuidString, byte playerId)

Parameters

playerNameString string
playerGuidString string
playerId byte