Barotrauma Client Doc
|
Classes | |
struct | PermissionChangedEvent |
Public Member Functions | |
void | SetName (string value) |
void | ForceNameAndJobUpdate () |
GameClient (string newName, Endpoint endpoint, string serverName, Option< int > ownerKey) | |
ServerInfo | CreateServerInfoFromSettings () |
void | SetLobbyPublic (bool isPublic) |
void | CreateServerCrashMessage () |
void | Update (float deltaTime) |
IEnumerable< CoroutineStatus > | EndGame (string endMessage, CampaignMode.TransitionType transitionType=CampaignMode.TransitionType.None, TraitorManager.TraitorResults? traitorResults=null) |
void | SendChatMessage (ChatMessage msg) |
void | SendChatMessage (string message, ChatMessageType type=ChatMessageType.Default) |
void | SendRespawnPromptResponse (bool waitForNextRoundRespawn) |
void | RequestFile (FileTransferType fileType, string file, string fileHash) |
void | CancelFileTransfer (FileReceiver.FileTransferIn transfer) |
void | UpdateFileTransfer (FileReceiver.FileTransferIn transfer, int expecting, int lastSeen, bool reliable=false) |
void | CancelFileTransfer (int id) |
override void | CreateEntityEvent (INetSerializable entity, NetEntityEvent.IData extraData=null) |
bool | HasPermission (ClientPermissions permission) |
bool | HasConsoleCommandPermission (Identifier commandName) |
void | Quit () |
void | SendCharacterInfo (string newName=null) |
void | WriteCharacterInfo (IWriteMessage msg, string newName=null) |
void | Vote (VoteType voteType, object data) |
void | VoteForKick (Client votedClient) |
void | InitiateSubmarineChange (SubmarineInfo sub, bool transferItems, VoteType voteType) |
void | ShowSubmarineChangeVoteInterface (Client starter, SubmarineInfo info, VoteType type, bool transferItems, float timeOut) |
void | ShowMoneyTransferVoteInterface (Client starter, Client from, int amount, Client to, float timeOut) |
override void | AddChatMessage (ChatMessage message) |
override void | KickPlayer (string kickedName, string reason) |
override void | BanPlayer (string kickedName, string reason, TimeSpan? duration=null) |
override void | UnbanPlayer (string playerName) |
override void | UnbanPlayer (Endpoint endpoint) |
void | UpdateClientPermissions (Client targetClient) |
void | SendCampaignState () |
void | SendConsoleCommand (string command) |
void | RequestStartRound (bool continueCampaign=false) |
Tell the server to start the round (permission required) More... | |
void | RequestSelectSub (SubmarineInfo sub, bool isShuttle) |
Tell the server to select a submarine (permission required) More... | |
void | RequestSelectMode (int modeIndex) |
Tell the server to select a mode (permission required) More... | |
void | SetupNewCampaign (SubmarineInfo sub, string saveName, string mapSeed, CampaignSettings settings) |
void | SetupLoadCampaign (string saveName) |
void | RequestRoundEnd (bool save, bool quitCampaign=false) |
Tell the server to end the round (permission required) More... | |
bool | SpectateClicked (GUIButton button, object _) |
bool | SetReadyToStart (GUITickBox tickBox) |
bool | ToggleEndRoundVote (GUITickBox tickBox) |
void | UpdateLogButtonPermissions () |
bool | TypingChatMessage (GUITextBox textBox, string text) |
bool | EnterChatMessage (GUITextBox textBox, string message) |
void | AddToGUIUpdateList () |
void | UpdateHUD (float deltaTime) |
void | Draw (Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch) |
bool | SelectCrewCharacter (Character character, GUIComponent frame) |
bool | SelectCrewClient (Client client, GUIComponent frame) |
void | CreateKickReasonPrompt (string clientName, bool ban) |
void | ReportError (ClientNetError error, UInt16 expectedId=0, UInt16 eventId=0, UInt16 entityId=0) |
Public Attributes | |
string | PendingName = string.Empty |
LocalizedString | endRoundVoteText |
GUITickBox | EndVoteTickBox |
readonly NetStats | NetStats |
CameraTransition | EndCinematic |
bool | LateCampaignJoin = false |
readonly List< SubmarineInfo > | ServerSubmarines = new List<SubmarineInfo>() |
UInt16 | LastSentEntityEventID |
bool | HasSpawned |
LocalizedString | TraitorFirstObjective |
TraitorEventPrefab | TraitorMission = null |
readonly FileReceiver | FileReceiver |
readonly ClientEntityEventManager | EntityEventManager |
readonly NamedEvent< PermissionChangedEvent > | OnPermissionChanged = new NamedEvent<PermissionChangedEvent>() |
GUIButton | ShowLogButton |
Static Public Attributes | |
static readonly TimeSpan | CampaignSaveTransferTimeOut = new TimeSpan(0, 0, seconds: 100) |
static readonly TimeSpan | LevelTransitionTimeOut = new TimeSpan(0, 0, seconds: 150) |
Protected Attributes | |
GUITickBox | cameraFollowsSub |
CharacterInfo | characterInfo |
Character | myCharacter |
GUIFrame | inGameHUD |
ChatBox | chatBox |
Properties | |
override bool | IsClient [get] |
override bool | IsServer [get] |
override Voting | Voting [get] |
string | Name [get] |
ClientPeer | ClientPeer [get] |
GUITickBox | FollowSubTickBox [get] |
bool | IsFollowSubTickBoxVisible [get] |
bool | RoundStarting [get] |
string | ServerName [get] |
byte | SessionId [get] |
VoipClient | VoipClient [get] |
override IReadOnlyList< Client > | ConnectedClients [get] |
Option< int > | Ping [get] |
IEnumerable< Client > | PreviouslyConnectedClients [get] |
bool | MidRoundSyncing [get] |
bool? | WaitForNextRoundRespawn [get, set] |
bool | IsServerOwner [get] |
CharacterInfo | CharacterInfo [get, set] |
Character | Character [get, set] |
GUIFrame | InGameHUD [get] |
ChatBox | ChatBox [get] |
VotingInterface | VotingInterface [get] |
Definition at line 16 of file GameClient.cs.
Barotrauma.Networking.GameClient.GameClient | ( | string | newName, |
Endpoint | endpoint, | ||
string | serverName, | ||
Option< int > | ownerKey | ||
) |
Definition at line 184 of file GameClient.cs.
override void Barotrauma.Networking.GameClient.AddChatMessage | ( | ChatMessage | message | ) |
Definition at line 2673 of file GameClient.cs.
void Barotrauma.Networking.GameClient.AddToGUIUpdateList | ( | ) |
Definition at line 3016 of file GameClient.cs.
override void Barotrauma.Networking.GameClient.BanPlayer | ( | string | kickedName, |
string | reason, | ||
TimeSpan? | duration = null |
||
) |
Definition at line 2696 of file GameClient.cs.
void Barotrauma.Networking.GameClient.CancelFileTransfer | ( | FileReceiver.FileTransferIn | transfer | ) |
Definition at line 2371 of file GameClient.cs.
void Barotrauma.Networking.GameClient.CancelFileTransfer | ( | int | id | ) |
Definition at line 2393 of file GameClient.cs.
override void Barotrauma.Networking.GameClient.CreateEntityEvent | ( | INetSerializable | entity, |
NetEntityEvent.IData | extraData = null |
||
) |
Definition at line 2543 of file GameClient.cs.
void Barotrauma.Networking.GameClient.CreateKickReasonPrompt | ( | string | clientName, |
bool | ban | ||
) |
Definition at line 3325 of file GameClient.cs.
void Barotrauma.Networking.GameClient.CreateServerCrashMessage | ( | ) |
Definition at line 339 of file GameClient.cs.
ServerInfo Barotrauma.Networking.GameClient.CreateServerInfoFromSettings | ( | ) |
Definition at line 282 of file GameClient.cs.
void Barotrauma.Networking.GameClient.Draw | ( | Microsoft.Xna.Framework.Graphics.SpriteBatch | spriteBatch | ) |
Definition at line 3109 of file GameClient.cs.
IEnumerable<CoroutineStatus> Barotrauma.Networking.GameClient.EndGame | ( | string | endMessage, |
CampaignMode.TransitionType | transitionType = CampaignMode.TransitionType.None , |
||
TraitorManager.TraitorResults? | traitorResults = null |
||
) |
Definition at line 1681 of file GameClient.cs.
bool Barotrauma.Networking.GameClient.EnterChatMessage | ( | GUITextBox | textBox, |
string | message | ||
) |
Definition at line 2989 of file GameClient.cs.
void Barotrauma.Networking.GameClient.ForceNameAndJobUpdate | ( | ) |
Definition at line 40 of file GameClient.cs.
bool Barotrauma.Networking.GameClient.HasConsoleCommandPermission | ( | Identifier | commandName | ) |
Definition at line 2557 of file GameClient.cs.
bool Barotrauma.Networking.GameClient.HasPermission | ( | ClientPermissions | permission | ) |
Definition at line 2552 of file GameClient.cs.
void Barotrauma.Networking.GameClient.InitiateSubmarineChange | ( | SubmarineInfo | sub, |
bool | transferItems, | ||
VoteType | voteType | ||
) |
Definition at line 2644 of file GameClient.cs.
override void Barotrauma.Networking.GameClient.KickPlayer | ( | string | kickedName, |
string | reason | ||
) |
Definition at line 2685 of file GameClient.cs.
void Barotrauma.Networking.GameClient.Quit | ( | ) |
Definition at line 2576 of file GameClient.cs.
void Barotrauma.Networking.GameClient.ReportError | ( | ClientNetError | error, |
UInt16 | expectedId = 0 , |
||
UInt16 | eventId = 0 , |
||
UInt16 | entityId = 0 |
||
) |
Definition at line 3403 of file GameClient.cs.
void Barotrauma.Networking.GameClient.RequestFile | ( | FileTransferType | fileType, |
string | file, | ||
string | fileHash | ||
) |
Definition at line 2352 of file GameClient.cs.
void Barotrauma.Networking.GameClient.RequestRoundEnd | ( | bool | save, |
bool | quitCampaign = false |
||
) |
Tell the server to end the round (permission required)
Definition at line 2857 of file GameClient.cs.
void Barotrauma.Networking.GameClient.RequestSelectMode | ( | int | modeIndex | ) |
Tell the server to select a mode (permission required)
Definition at line 2802 of file GameClient.cs.
void Barotrauma.Networking.GameClient.RequestSelectSub | ( | SubmarineInfo | sub, |
bool | isShuttle | ||
) |
Tell the server to select a submarine (permission required)
Definition at line 2787 of file GameClient.cs.
void Barotrauma.Networking.GameClient.RequestStartRound | ( | bool | continueCampaign = false | ) |
Tell the server to start the round (permission required)
Definition at line 2773 of file GameClient.cs.
bool Barotrauma.Networking.GameClient.SelectCrewCharacter | ( | Character | character, |
GUIComponent | frame | ||
) |
Definition at line 3234 of file GameClient.cs.
bool Barotrauma.Networking.GameClient.SelectCrewClient | ( | Client | client, |
GUIComponent | frame | ||
) |
Definition at line 3249 of file GameClient.cs.
void Barotrauma.Networking.GameClient.SendCampaignState | ( | ) |
Definition at line 2737 of file GameClient.cs.
void Barotrauma.Networking.GameClient.SendCharacterInfo | ( | string | newName = null | ) |
Definition at line 2585 of file GameClient.cs.
void Barotrauma.Networking.GameClient.SendChatMessage | ( | ChatMessage | msg | ) |
Definition at line 2318 of file GameClient.cs.
void Barotrauma.Networking.GameClient.SendChatMessage | ( | string | message, |
ChatMessageType | type = ChatMessageType.Default |
||
) |
Definition at line 2326 of file GameClient.cs.
void Barotrauma.Networking.GameClient.SendConsoleCommand | ( | string | command | ) |
Definition at line 2751 of file GameClient.cs.
void Barotrauma.Networking.GameClient.SendRespawnPromptResponse | ( | bool | waitForNextRoundRespawn | ) |
Definition at line 2343 of file GameClient.cs.
void Barotrauma.Networking.GameClient.SetLobbyPublic | ( | bool | isPublic | ) |
Definition at line 318 of file GameClient.cs.
void Barotrauma.Networking.GameClient.SetName | ( | string | value | ) |
Definition at line 33 of file GameClient.cs.
bool Barotrauma.Networking.GameClient.SetReadyToStart | ( | GUITickBox | tickBox | ) |
Definition at line 2900 of file GameClient.cs.
void Barotrauma.Networking.GameClient.SetupLoadCampaign | ( | string | saveName | ) |
Definition at line 2838 of file GameClient.cs.
void Barotrauma.Networking.GameClient.SetupNewCampaign | ( | SubmarineInfo | sub, |
string | saveName, | ||
string | mapSeed, | ||
CampaignSettings | settings | ||
) |
Definition at line 2818 of file GameClient.cs.
void Barotrauma.Networking.GameClient.ShowMoneyTransferVoteInterface | ( | Client | starter, |
Client | from, | ||
int | amount, | ||
Client | to, | ||
float | timeOut | ||
) |
Definition at line 2660 of file GameClient.cs.
void Barotrauma.Networking.GameClient.ShowSubmarineChangeVoteInterface | ( | Client | starter, |
SubmarineInfo | info, | ||
VoteType | type, | ||
bool | transferItems, | ||
float | timeOut | ||
) |
Definition at line 2650 of file GameClient.cs.
bool Barotrauma.Networking.GameClient.SpectateClicked | ( | GUIButton | button, |
object | _ | ||
) |
Definition at line 2869 of file GameClient.cs.
bool Barotrauma.Networking.GameClient.ToggleEndRoundVote | ( | GUITickBox | tickBox | ) |
Definition at line 2911 of file GameClient.cs.
bool Barotrauma.Networking.GameClient.TypingChatMessage | ( | GUITextBox | textBox, |
string | text | ||
) |
Definition at line 2984 of file GameClient.cs.
override void Barotrauma.Networking.GameClient.UnbanPlayer | ( | Endpoint | endpoint | ) |
Definition at line 2718 of file GameClient.cs.
override void Barotrauma.Networking.GameClient.UnbanPlayer | ( | string | playerName | ) |
Definition at line 2708 of file GameClient.cs.
void Barotrauma.Networking.GameClient.Update | ( | float | deltaTime | ) |
Definition at line 459 of file GameClient.cs.
void Barotrauma.Networking.GameClient.UpdateClientPermissions | ( | Client | targetClient | ) |
Definition at line 2728 of file GameClient.cs.
void Barotrauma.Networking.GameClient.UpdateFileTransfer | ( | FileReceiver.FileTransferIn | transfer, |
int | expecting, | ||
int | lastSeen, | ||
bool | reliable = false |
||
) |
Definition at line 2376 of file GameClient.cs.
void Barotrauma.Networking.GameClient.UpdateHUD | ( | float | deltaTime | ) |
Definition at line 3033 of file GameClient.cs.
void Barotrauma.Networking.GameClient.UpdateLogButtonPermissions | ( | ) |
Definition at line 2946 of file GameClient.cs.
void Barotrauma.Networking.GameClient.Vote | ( | VoteType | voteType, |
object | data | ||
) |
Definition at line 2616 of file GameClient.cs.
void Barotrauma.Networking.GameClient.VoteForKick | ( | Client | votedClient | ) |
Definition at line 2637 of file GameClient.cs.
void Barotrauma.Networking.GameClient.WriteCharacterInfo | ( | IWriteMessage | msg, |
string | newName = null |
||
) |
Definition at line 2593 of file GameClient.cs.
|
protected |
Definition at line 56 of file GameClient.cs.
|
static |
Definition at line 18 of file GameClient.cs.
|
protected |
Definition at line 2925 of file GameClient.cs.
|
protected |
Definition at line 2941 of file GameClient.cs.
CameraTransition Barotrauma.Networking.GameClient.EndCinematic |
Definition at line 63 of file GameClient.cs.
LocalizedString Barotrauma.Networking.GameClient.endRoundVoteText |
Definition at line 50 of file GameClient.cs.
GUITickBox Barotrauma.Networking.GameClient.EndVoteTickBox |
Definition at line 51 of file GameClient.cs.
readonly ClientEntityEventManager Barotrauma.Networking.GameClient.EntityEventManager |
Definition at line 157 of file GameClient.cs.
readonly FileReceiver Barotrauma.Networking.GameClient.FileReceiver |
Definition at line 150 of file GameClient.cs.
bool Barotrauma.Networking.GameClient.HasSpawned |
Definition at line 113 of file GameClient.cs.
|
protected |
Definition at line 2940 of file GameClient.cs.
UInt16 Barotrauma.Networking.GameClient.LastSentEntityEventID |
Definition at line 100 of file GameClient.cs.
bool Barotrauma.Networking.GameClient.LateCampaignJoin = false |
Definition at line 65 of file GameClient.cs.
|
static |
Definition at line 20 of file GameClient.cs.
|
protected |
Definition at line 2926 of file GameClient.cs.
readonly NetStats Barotrauma.Networking.GameClient.NetStats |
Definition at line 54 of file GameClient.cs.
readonly NamedEvent<PermissionChangedEvent> Barotrauma.Networking.GameClient.OnPermissionChanged = new NamedEvent<PermissionChangedEvent>() |
Definition at line 182 of file GameClient.cs.
string Barotrauma.Networking.GameClient.PendingName = string.Empty |
Definition at line 31 of file GameClient.cs.
readonly List<SubmarineInfo> Barotrauma.Networking.GameClient.ServerSubmarines = new List<SubmarineInfo>() |
Definition at line 90 of file GameClient.cs.
GUIButton Barotrauma.Networking.GameClient.ShowLogButton |
Definition at line 2943 of file GameClient.cs.
LocalizedString Barotrauma.Networking.GameClient.TraitorFirstObjective |
Definition at line 115 of file GameClient.cs.
TraitorEventPrefab Barotrauma.Networking.GameClient.TraitorMission = null |
Definition at line 116 of file GameClient.cs.
|
getset |
Definition at line 2934 of file GameClient.cs.
|
getset |
Definition at line 2928 of file GameClient.cs.
|
get |
Definition at line 2973 of file GameClient.cs.
|
get |
Definition at line 45 of file GameClient.cs.
|
get |
Definition at line 126 of file GameClient.cs.
|
get |
Definition at line 57 of file GameClient.cs.
|
get |
Definition at line 2968 of file GameClient.cs.
|
get |
Definition at line 22 of file GameClient.cs.
|
get |
Definition at line 59 of file GameClient.cs.
|
get |
Definition at line 23 of file GameClient.cs.
|
get |
Definition at line 168 of file GameClient.cs.
|
get |
Definition at line 152 of file GameClient.cs.
|
get |
Definition at line 29 of file GameClient.cs.
|
get |
Definition at line 134 of file GameClient.cs.
|
get |
Definition at line 145 of file GameClient.cs.
|
get |
Definition at line 86 of file GameClient.cs.
|
get |
Definition at line 92 of file GameClient.cs.
|
get |
Definition at line 118 of file GameClient.cs.
|
get |
Definition at line 120 of file GameClient.cs.
|
get |
Definition at line 25 of file GameClient.cs.
|
get |
Definition at line 2978 of file GameClient.cs.
|
getset |
Definition at line 159 of file GameClient.cs.