|
Barotrauma Server
|
Public Member Functions | |
| GameServer (string name, IPAddress listenIp, int port, int queryPort, bool isPublic, string password, bool attemptUPnP, int maxPlayers, Option< int > ownerKey, Option< P2PEndpoint > ownerEndpoint) | |
| void | StartServer () |
| void | NotifyCrash () |
| void | Update (float deltaTime) |
| override void | CreateEntityEvent (INetSerializable entity, NetEntityEvent.IData extraData=null) |
| void | ClientWriteLobby (Client c) |
| bool | TryStartGame () |
| void | EndGame (CampaignMode.TransitionType transitionType=CampaignMode.TransitionType.None, bool wasSaved=false, IEnumerable< Mission > missions=null) |
| override void | AddChatMessage (ChatMessage message) |
| bool | TryChangeClientName (Client c, string newName) |
| bool | IsNameValid (Client c, string newName) |
| override void | KickPlayer (string playerName, string reason) |
| void | KickClient (NetworkConnection conn, string reason) |
| void | KickClient (Client client, string reason, bool resetKarma=false) |
| override void | BanPlayer (string playerName, string reason, TimeSpan? duration=null) |
| void | BanClient (Client client, string reason, TimeSpan? duration=null) |
| void | BanPreviousPlayer (PreviousPlayer previousPlayer, string reason, TimeSpan? duration=null) |
| override void | UnbanPlayer (string playerName) |
| override void | UnbanPlayer (Endpoint endpoint) |
| void | DisconnectClient (NetworkConnection senderConnection, PeerDisconnectPacket peerDisconnectPacket) |
| void | DisconnectClient (Client client, PeerDisconnectPacket peerDisconnectPacket) |
| void | SendDirectChatMessage (string txt, Client recipient, ChatMessageType messageType=ChatMessageType.Server) |
| void | SendConsoleMessage (string txt, Client recipient, Color? color=null) |
| void | SendDirectChatMessage (ChatMessage msg, Client recipient) |
| void | SendChatMessage (string message, ChatMessageType? type=null, Client senderClient=null, Character senderCharacter=null, PlayerConnectionChangeType changeType=PlayerConnectionChangeType.None, ChatMode chatMode=ChatMode.None) |
| Add the message to the chatbox and pass it to all clients who can receive it. | |
| void | SendOrderChatMessage (OrderChatMessage message) |
| void | SendCancelTransferMsg (FileSender.FileTransferOut transfer) |
| void | UpdateVoteStatus (bool checkActiveVote=true) |
| void | SendVoteStatus (List< Client > recipients) |
| bool | TrySwitchSubmarine () |
| void | UpdateClientPermissions (Client client) |
| void | GiveAchievement (Character character, Identifier achievementIdentifier) |
| void | IncrementStat (Character character, AchievementStat stat, int amount) |
| void | GiveAchievement (Client client, Identifier achievementIdentifier) |
| void | IncrementStat (Client client, AchievementStat stat, int amount) |
| void | SendTraitorMessage (WriteOnlyMessage msg, Client client) |
| void | UpdateCheatsEnabled () |
| void | SetClientCharacter (Client client, Character newCharacter) |
| void | AssignJobs (List< Client > unassigned) |
| void | AssignBotJobs (List< CharacterInfo > bots, CharacterTeamType teamID) |
| void | UpdateMissionState (Mission mission) |
| void | Quit () |
Static Public Member Functions | |
| static void | AddPendingMessageToOwner (string message, ChatMessageType messageType) |
| Creates a message that gets sent to the server owner once the connection is initialized. Can be used to for example notify the owner of problems during initialization. | |
| static string | CharacterLogName (Character character) |
| static void | Log (string line, ServerLog.MessageType messageType) |
Public Attributes | |
| bool | SubmarineSwitchLoad = false |
| readonly List< string > | JobAssignmentDebugLog = new List<string>() |
Properties | |
| override bool | IsServer [get] |
| override bool | IsClient [get] |
| override Voting | Voting [get] |
| string | ServerName [get, set] |
| ServerPeer | ServerPeer [get] |
| float | EndRoundTimer [get] |
| float | EndRoundDelay [get] |
| float | EndRoundTimeRemaining [get] |
| VoipServer | VoipServer [get] |
| FileSender | FileSender [get] |
| ModSender | ModSender [get] |
| TraitorManager | TraitorManager [get] |
| override IReadOnlyList< Client > | ConnectedClients [get] |
| ServerEntityEventManager | EntityEventManager [get] |
| int | Port [get] |
| int | QueryPort [get] |
| NetworkConnection | OwnerConnection [get] |
Properties inherited from Barotrauma.Networking.NetworkMember | |
| Character | Character [get] |
| Barotrauma.Networking.GameServer.GameServer | ( | string | name, |
| IPAddress | listenIp, | ||
| int | port, | ||
| int | queryPort, | ||
| bool | isPublic, | ||
| string | password, | ||
| bool | attemptUPnP, | ||
| int | maxPlayers, | ||
| Option< int > | ownerKey, | ||
| Option< P2PEndpoint > | ownerEndpoint ) |
| override void Barotrauma.Networking.GameServer.AddChatMessage | ( | ChatMessage | message | ) |
|
static |
Creates a message that gets sent to the server owner once the connection is initialized. Can be used to for example notify the owner of problems during initialization.
| void Barotrauma.Networking.GameServer.AssignBotJobs | ( | List< CharacterInfo > | bots, |
| CharacterTeamType | teamID ) |
| void Barotrauma.Networking.GameServer.AssignJobs | ( | List< Client > | unassigned | ) |
| void Barotrauma.Networking.GameServer.BanClient | ( | Client | client, |
| string | reason, | ||
| TimeSpan? | duration = null ) |
| override void Barotrauma.Networking.GameServer.BanPlayer | ( | string | playerName, |
| string | reason, | ||
| TimeSpan? | duration = null ) |
| void Barotrauma.Networking.GameServer.BanPreviousPlayer | ( | PreviousPlayer | previousPlayer, |
| string | reason, | ||
| TimeSpan? | duration = null ) |
|
static |
| void Barotrauma.Networking.GameServer.ClientWriteLobby | ( | Client | c | ) |
| override void Barotrauma.Networking.GameServer.CreateEntityEvent | ( | INetSerializable | entity, |
| NetEntityEvent.IData | extraData = null ) |
| void Barotrauma.Networking.GameServer.DisconnectClient | ( | Client | client, |
| PeerDisconnectPacket | peerDisconnectPacket ) |
| void Barotrauma.Networking.GameServer.DisconnectClient | ( | NetworkConnection | senderConnection, |
| PeerDisconnectPacket | peerDisconnectPacket ) |
| void Barotrauma.Networking.GameServer.EndGame | ( | CampaignMode.TransitionType | transitionType = CampaignMode::TransitionType::None, |
| bool | wasSaved = false, | ||
| IEnumerable< Mission > | missions = null ) |
| void Barotrauma.Networking.GameServer.GiveAchievement | ( | Character | character, |
| Identifier | achievementIdentifier ) |
| void Barotrauma.Networking.GameServer.GiveAchievement | ( | Client | client, |
| Identifier | achievementIdentifier ) |
| void Barotrauma.Networking.GameServer.IncrementStat | ( | Character | character, |
| AchievementStat | stat, | ||
| int | amount ) |
| void Barotrauma.Networking.GameServer.IncrementStat | ( | Client | client, |
| AchievementStat | stat, | ||
| int | amount ) |
| bool Barotrauma.Networking.GameServer.IsNameValid | ( | Client | c, |
| string | newName ) |
| void Barotrauma.Networking.GameServer.KickClient | ( | Client | client, |
| string | reason, | ||
| bool | resetKarma = false ) |
| void Barotrauma.Networking.GameServer.KickClient | ( | NetworkConnection | conn, |
| string | reason ) |
| override void Barotrauma.Networking.GameServer.KickPlayer | ( | string | playerName, |
| string | reason ) |
|
static |
| void Barotrauma.Networking.GameServer.NotifyCrash | ( | ) |
| void Barotrauma.Networking.GameServer.Quit | ( | ) |
| void Barotrauma.Networking.GameServer.SendCancelTransferMsg | ( | FileSender.FileTransferOut | transfer | ) |
| void Barotrauma.Networking.GameServer.SendChatMessage | ( | string | message, |
| ChatMessageType? | type = null, | ||
| Client | senderClient = null, | ||
| Character | senderCharacter = null, | ||
| PlayerConnectionChangeType | changeType = PlayerConnectionChangeType::None, | ||
| ChatMode | chatMode = ChatMode::None ) |
Add the message to the chatbox and pass it to all clients who can receive it.
| void Barotrauma.Networking.GameServer.SendConsoleMessage | ( | string | txt, |
| Client | recipient, | ||
| Color? | color = null ) |
| void Barotrauma.Networking.GameServer.SendDirectChatMessage | ( | ChatMessage | msg, |
| Client | recipient ) |
| void Barotrauma.Networking.GameServer.SendDirectChatMessage | ( | string | txt, |
| Client | recipient, | ||
| ChatMessageType | messageType = ChatMessageType::Server ) |
| void Barotrauma.Networking.GameServer.SendOrderChatMessage | ( | OrderChatMessage | message | ) |
| void Barotrauma.Networking.GameServer.SendTraitorMessage | ( | WriteOnlyMessage | msg, |
| Client | client ) |
| void Barotrauma.Networking.GameServer.SendVoteStatus | ( | List< Client > | recipients | ) |
| void Barotrauma.Networking.GameServer.StartServer | ( | ) |
| bool Barotrauma.Networking.GameServer.TryChangeClientName | ( | Client | c, |
| string | newName ) |
| bool Barotrauma.Networking.GameServer.TryStartGame | ( | ) |
| bool Barotrauma.Networking.GameServer.TrySwitchSubmarine | ( | ) |
| override void Barotrauma.Networking.GameServer.UnbanPlayer | ( | Endpoint | endpoint | ) |
| override void Barotrauma.Networking.GameServer.UnbanPlayer | ( | string | playerName | ) |
| void Barotrauma.Networking.GameServer.Update | ( | float | deltaTime | ) |
| void Barotrauma.Networking.GameServer.UpdateCheatsEnabled | ( | ) |
| void Barotrauma.Networking.GameServer.UpdateClientPermissions | ( | Client | client | ) |
| void Barotrauma.Networking.GameServer.UpdateMissionState | ( | Mission | mission | ) |
| void Barotrauma.Networking.GameServer.UpdateVoteStatus | ( | bool | checkActiveVote = true | ) |
| readonly List<string> Barotrauma.Networking.GameServer.JobAssignmentDebugLog = new List<string>() |
| bool Barotrauma.Networking.GameServer.SubmarineSwitchLoad = false |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
getset |
|
get |
|
get |
|
get |
|
get |