Barotrauma Client Doc
Barotrauma.Networking Namespace Reference

Classes

class  Client
 
class  BannedPlayer
 
class  BanList
 
class  ChatMessage
 
class  ChildServerRelay
 
struct  TempClient
 
class  PermissionPreset
 
interface  INetSerializable
 
interface  IClientSerializable
 Interface for entities that the clients can send events to the server More...
 
interface  IServerSerializable
 Interface for entities that the server can send events to the clients More...
 
interface  IServerPositionSync
 Interface for entities that handle ServerNetObject.ENTITY_POSITION More...
 
class  NetConfig
 
class  NetEntityEvent
 
class  NetEntityEventManager
 
class  NetIdUtils
 Helper class for dealing with 16-bit IDs that wrap around ushort.MaxValue
 
class  OrderChatMessage
 
class  AccountId
 
class  SteamId
 
struct  AccountInfo
 
class  Address
 
class  LidgrenAddress
 
class  PipeAddress
 
class  SteamP2PAddress
 
class  UnknownAddress
 
class  Endpoint
 
class  LidgrenEndpoint
 
class  SteamP2PEndpoint
 
interface  IReadMessage
 
interface  IWriteMessage
 
class  MsgConstants
 
struct  SingleUIntUnion
 Utility struct for writing Singles More...
 
class  MsgWriter
 
class  MsgReader
 
class  WriteOnlyMessage
 
class  ReadOnlyMessage
 
class  ReadWriteMessage
 
class  LidgrenConnection
 
class  NetworkConnection
 
class  PipeEndpoint
 
class  PipeConnection
 
class  SteamP2PConnection
 
class  NetworkEnumExtensions
 
class  WriteOnlyMessageExtensions
 
class  NetIncomingMessageExtensions
 
class  DeliveryMethodExtensions
 
struct  PeerPacketHeaders
 
struct  ClientSteamTicketAndVersionPacket
 
struct  SteamP2PInitializationRelayPacket
 
struct  SteamP2PInitializationOwnerPacket
 
struct  ServerPeerContentPackageOrderPacket
 
struct  PeerPacketMessage
 
struct  ClientPeerPasswordPacket
 
struct  ServerPeerPasswordPacket
 
struct  PeerDisconnectPacket
 
class  ServerContentPackage
 
class  RespawnManager
 
class  ServerLog
 
class  ServerSettings
 
class  VoipConfig
 
class  VoipQueue
 
class  FileReceiver
 
class  ModReceiver
 
class  GameClient
 
class  ClientEntityEventManager
 
class  ClientEntityEvent
 
class  NetStats
 
class  ClientPeer
 
class  LidgrenClientPeer
 
class  SteamP2PClientPeer
 
class  SteamP2POwnerPeer
 
class  PingUtils
 
class  ServerInfo
 
class  VoipCapture
 
class  VoipClient
 

Enumerations

enum class  ChatMessageType {
  Default = 0 , Error = 1 , Dead = 2 , Server = 3 ,
  Radio = 4 , Private = 5 , Console = 6 , MessageBox = 7 ,
  Order = 8 , ServerLog = 9 , ServerMessageBox = 10 , ServerMessageBoxInGame = 11
}
 
enum class  PlayerConnectionChangeType {
  None = 0 , Joined = 1 , Kicked = 2 , Disconnected = 3 ,
  Banned = 4
}
 
enum class  ClientPermissions {
  None = 0x0 , ManageRound = 0x1 , Kick = 0x2 , Ban = 0x4 ,
  Unban = 0x8 , SelectSub = 0x10 , SelectMode = 0x20 , ManageCampaign = 0x40 ,
  ConsoleCommands = 0x80 , ServerLog = 0x100 , ManageSettings = 0x200 , ManagePermissions = 0x400 ,
  KarmaImmunity = 0x800 , ManageMoney = 0x1000 , SellInventoryItems = 0x2000 , SellSubItems = 0x4000 ,
  ManageMap = 0x8000 , ManageHires = 0x10000 , ManageBotTalents = 0x20000 , SpamImmunity = 0x40000 ,
  All = 0x7FFFF
}
 
enum class  FileTransferStatus {
  NotStarted , Sending , Receiving , Finished ,
  Canceled , Error
}
 
enum class  FileTransferMessageType {
  Unknown , Initiate , Data , TransferOnSameMachine ,
  Cancel
}
 
enum class  FileTransferType { Submarine , CampaignSave , Mod }
 
enum class  ClientPacketHeader {
  UPDATE_LOBBY , UPDATE_INGAME , SERVER_SETTINGS , CAMPAIGN_SETUP_INFO ,
  FILE_REQUEST , VOICE , PING_RESPONSE , RESPONSE_STARTGAME ,
  SERVER_COMMAND , EVENTMANAGER_RESPONSE , REQUEST_STARTGAMEFINALIZE , UPDATE_CHARACTERINFO ,
  ERROR , CREW , MEDICAL , TRANSFER_MONEY ,
  REWARD_DISTRIBUTION , CIRCUITBOX , READY_CHECK , READY_TO_SPAWN ,
  LUA_NET_MESSAGE
}
 
enum class  ClientNetSegment {
  SyncIds , ChatMessage , Vote , CharacterInput ,
  EntityState , SpectatingPos
}
 
enum class  ClientNetError { MISSING_EVENT , MISSING_ENTITY }
 
enum class  ServerPacketHeader {
  AUTH_RESPONSE , AUTH_FAILURE , UPDATE_LOBBY , UPDATE_INGAME ,
  PERMISSIONS , ACHIEVEMENT , CHEATS_ENABLED , CAMPAIGN_SETUP_INFO ,
  FILE_TRANSFER , VOICE , PING_REQUEST , CLIENT_PINGS ,
  QUERY_STARTGAME , STARTGAME , STARTGAMEFINALIZE , ENDGAME ,
  MISSION , EVENTACTION , TRAITOR_MESSAGE , CREW ,
  MEDICAL , CIRCUITBOX , MONEY , READY_CHECK ,
  LUA_NET_MESSAGE
}
 
enum class  ServerNetSegment {
  SyncIds , ChatMessage , Vote , ClientList ,
  EntityPosition , EntityEvent , EntityEventInitial
}
 
enum class  NetworkConnectionStatus { Connected = 0x1 , Disconnected = 0x2 }
 
enum class  DeliveryMethod : int { Unreliable = 0x0 , Reliable = 0x1 , ReliableOrdered = 0x2 }
 
enum class  ConnectionInitialization : int {
  SteamTicketAndVersion = 0x1 , ContentPackageOrder = 0x2 , Password = 0x3 , Success = 0x0 ,
  ConnectionStarted = 0x4
}
 
enum class  PacketHeader : int {
  None = 0x0 , IsCompressed = 0x1 , IsConnectionInitializationStep = 0x2 , IsDisconnectMessage = 0x4 ,
  IsServerMessage = 0x8 , IsHeartbeatMessage = 0x10
}
 
enum class  SelectionMode { Manual = 0 , Random = 1 , Vote = 2 }
 
enum class  BotSpawnMode { Normal , Fill }
 
enum class  PlayStyle {
  Serious = 0 , Casual = 1 , Roleplay = 2 , Rampage = 3 ,
  SomethingDifferent = 4
}
 

Enumeration Type Documentation

◆ BotSpawnMode

Enumerator
Normal 
Fill 

Definition at line 19 of file BarotraumaShared/SharedSource/Networking/ServerSettings.cs.

◆ ChatMessageType

Enumerator
Default 
Error 
Dead 
Server 
Radio 
Private 
Console 
MessageBox 
Order 
ServerLog 
ServerMessageBox 
ServerMessageBoxInGame 

Definition at line 9 of file BarotraumaShared/SharedSource/Networking/ChatMessage.cs.

◆ ClientNetError

Enumerator
MISSING_EVENT 
MISSING_ENTITY 

Definition at line 55 of file NetworkMember.cs.

◆ ClientNetSegment

Enumerator
SyncIds 
ChatMessage 
Vote 
CharacterInput 
EntityState 
SpectatingPos 

Definition at line 45 of file NetworkMember.cs.

◆ ClientPacketHeader

Enumerator
UPDATE_LOBBY 
UPDATE_INGAME 
SERVER_SETTINGS 
CAMPAIGN_SETUP_INFO 
FILE_REQUEST 
VOICE 
PING_RESPONSE 
RESPONSE_STARTGAME 
SERVER_COMMAND 
EVENTMANAGER_RESPONSE 
REQUEST_STARTGAMEFINALIZE 
UPDATE_CHARACTERINFO 
ERROR 
CREW 
MEDICAL 
TRANSFER_MONEY 
REWARD_DISTRIBUTION 
CIRCUITBOX 
READY_CHECK 
READY_TO_SPAWN 
LUA_NET_MESSAGE 

Definition at line 9 of file NetworkMember.cs.

◆ ClientPermissions

Enumerator
None 
ManageRound 
Kick 
Ban 
Unban 
SelectSub 
SelectMode 
ManageCampaign 
ConsoleCommands 
ServerLog 
ManageSettings 
ManagePermissions 
KarmaImmunity 
ManageMoney 
SellInventoryItems 
SellSubItems 
ManageMap 
ManageHires 
ManageBotTalents 
SpamImmunity 
All 

Definition at line 10 of file ClientPermissions.cs.

◆ ConnectionInitialization

Enumerator
SteamTicketAndVersion 
ContentPackageOrder 
Password 
Success 
ConnectionStarted 

Definition at line 12 of file NetworkEnums.cs.

◆ DeliveryMethod

Enumerator
Unreliable 
Reliable 
ReliableOrdered 

Definition at line 5 of file NetworkEnums.cs.

◆ FileTransferMessageType

Enumerator
Unknown 
Initiate 
Data 
TransferOnSameMachine 
Cancel 

Definition at line 8 of file FileTransfer.cs.

◆ FileTransferStatus

Enumerator
NotStarted 
Sending 
Receiving 
Finished 
Canceled 
Error 

Definition at line 3 of file FileTransfer.cs.

◆ FileTransferType

Enumerator
Submarine 
CampaignSave 
Mod 

Definition at line 13 of file FileTransfer.cs.

◆ NetworkConnectionStatus

Enumerator
Connected 
Disconnected 

Definition at line 5 of file NetworkConnection.cs.

◆ PacketHeader

Enumerator
None 
IsCompressed 
IsConnectionInitializationStep 
IsDisconnectMessage 
IsServerMessage 
IsHeartbeatMessage 

Definition at line 25 of file NetworkEnums.cs.

◆ PlayerConnectionChangeType

Enumerator
None 
Joined 
Kicked 
Disconnected 
Banned 

Definition at line 25 of file BarotraumaShared/SharedSource/Networking/ChatMessage.cs.

◆ PlayStyle

Enumerator
Serious 
Casual 
Roleplay 
Rampage 
SomethingDifferent 

Definition at line 24 of file BarotraumaShared/SharedSource/Networking/ServerSettings.cs.

◆ SelectionMode

Enumerator
Manual 
Random 
Vote 

Definition at line 14 of file BarotraumaShared/SharedSource/Networking/ServerSettings.cs.

◆ ServerNetSegment

Enumerator
SyncIds 
ChatMessage 
Vote 
ClientList 
EntityPosition 
EntityEvent 
EntityEventInitial 

Definition at line 97 of file NetworkMember.cs.

◆ ServerPacketHeader

Enumerator
AUTH_RESPONSE 
AUTH_FAILURE 
UPDATE_LOBBY 
UPDATE_INGAME 
PERMISSIONS 
ACHIEVEMENT 
CHEATS_ENABLED 
CAMPAIGN_SETUP_INFO 
FILE_TRANSFER 
VOICE 
PING_REQUEST 
CLIENT_PINGS 
QUERY_STARTGAME 
STARTGAME 
STARTGAMEFINALIZE 
ENDGAME 
MISSION 
EVENTACTION 
TRAITOR_MESSAGE 
CREW 
MEDICAL 
CIRCUITBOX 
MONEY 
READY_CHECK 
LUA_NET_MESSAGE 

Definition at line 61 of file NetworkMember.cs.