Class GameClient
- Namespace
- KSP.Networking.MP.GameClient
- Assembly
- Assembly-CSharp.dll
public class GameClient : IDisposable
- Inheritance
-
GameClient
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
GameClient(MPFramework)
public GameClient(MPFramework mpFramework = null)
Parameters
mpFramework MPFramework
Fields
DEFAULT_CONNECTING_FAILURE_REASON_STRING
public const string DEFAULT_CONNECTING_FAILURE_REASON_STRING = ""
Field Value
- string
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
JSON_SNAPSHOT_HISTORY_LIST_MAX_SIZE
public const int JSON_SNAPSHOT_HISTORY_LIST_MAX_SIZE = 24
Field Value
- int
NO_PLAYER_GUID_STRING
public const string NO_PLAYER_GUID_STRING = ""
Field Value
- string
NO_PLAYER_ID
public const byte NO_PLAYER_ID = 0
Field Value
- byte
NO_PLAYER_NAME_STRING
public const string NO_PLAYER_NAME_STRING = ""
Field Value
- string
Properties
Local
public Local Local { get; }
Property Value
- Local
MP
public MPFramework MP { get; }
Property Value
- MPFramework
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
Remote
public Remote Remote { get; }
Property Value
- Remote
Methods
ClearPlayerInfo()
public void ClearPlayerInfo()
Dispose()
~GameClient()
Init(MPFramework)
public void Init(MPFramework mp)
Parameters
mp MPFramework
OnUpdate()
ResetMaxPlayers()
public void ResetMaxPlayers()
ResetPlayerIdHost()
public void ResetPlayerIdHost()
SetMaxPlayers(int)
public void SetMaxPlayers(int maxPlayers)
Parameters
maxPlayers int
SetPlayerIdHost(byte)
public void SetPlayerIdHost(byte playerIdHost)
Parameters
playerIdHost byte
SetPlayerInfo(byte, string, string)
public void SetPlayerInfo(byte playerId, string playerNameString, string playerGuidString)
Parameters
playerId byte
playerNameString string
playerGuidString string
Uninit()