Table of Contents

Class LocalPlayer

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

Constructors

LocalPlayer()

public LocalPlayer()

Fields

DEFAULT_IS_PLAYER_HOST

public const bool DEFAULT_IS_PLAYER_HOST = false

Field Value

bool

DEFAULT_IS_PLAYER_HOST_IN_MP_GAME

public const bool DEFAULT_IS_PLAYER_HOST_IN_MP_GAME = false

Field Value

bool

DEFAULT_MAX_PLAYERS

public const int DEFAULT_MAX_PLAYERS = 1

Field Value

int

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_ID_HOST

public const byte DEFAULT_PLAYER_ID_HOST = 0

Field Value

byte

DEFAULT_PLAYER_NAME_STRING

public const string DEFAULT_PLAYER_NAME_STRING = ""

Field Value

string

Properties

AgencyId

public int AgencyId { get; }

Property Value

int

Game

public static GameInstance Game { get; }

Property Value

GameInstance

IsPlayerHost

public bool IsPlayerHost { get; }

Property Value

bool

IsPlayerHostInMPGame

public bool IsPlayerHostInMPGame { get; }

Property Value

bool

IsSetup

public bool IsSetup { get; }

Property Value

bool

MaxPlayers

public int MaxPlayers { get; }

Property Value

int

PlayerGuidString

public string PlayerGuidString { get; }

Property Value

string

PlayerId

public byte PlayerId { get; }

Property Value

byte

PlayerIdHost

public byte PlayerIdHost { get; }

Property Value

byte

PlayerNameString

public string PlayerNameString { get; }

Property Value

string

Methods

~LocalPlayer()

protected ~LocalPlayer()

GetDebugPlayerIdAndNameString()

public string GetDebugPlayerIdAndNameString()

Returns

string

Init()

public void Init()

ResetAllDataValues()

public void ResetAllDataValues()

ResetIsPlayerHost()

public void ResetIsPlayerHost()

ResetIsPlayerHostInMPGame()

public void ResetIsPlayerHostInMPGame()

ResetMaxPlayers()

public void ResetMaxPlayers()

ResetPlayerGuidString()

public void ResetPlayerGuidString()

ResetPlayerId()

public void ResetPlayerId()

ResetPlayerIdHost()

public void ResetPlayerIdHost()

ResetPlayerNameString()

public void ResetPlayerNameString()

SetIsPlayerHost(bool)

public void SetIsPlayerHost(bool isPlayerHost)

Parameters

isPlayerHost bool

SetIsPlayerHostInMPGame(bool)

public void SetIsPlayerHostInMPGame(bool isPlayerHostInMPGame)

Parameters

isPlayerHostInMPGame bool

SetMaxPlayers(int)

public void SetMaxPlayers(int maxPlayers)

Parameters

maxPlayers int

SetPlayerGuidString(string)

public void SetPlayerGuidString(string playerGuidString)

Parameters

playerGuidString string

SetPlayerId(byte)

public void SetPlayerId(byte playerId)

Parameters

playerId byte

SetPlayerIdHost(byte)

public void SetPlayerIdHost(byte playerIdHost)

Parameters

playerIdHost byte

SetPlayerNameString(string)

public void SetPlayerNameString(string playerNameString)

Parameters

playerNameString string

Uninit()

public void Uninit()