std::map< CStr, PlayerAssignment > PlayerAssignmentMap
i32 m_PlayerID
The player that the given host controls, or -1 if none (observer)
NetDisconnectReason
Reasons sent by server to clients in disconnection messages.
struct _ENetPeer ENetPeer
static bool SendMessage(const CNetMessage *message, ENetPeer *peer, const char *peerName)
Transmit a message to the given peer.
static void Initialize()
Initialize ENet.
static ENetPacket * CreatePacket(const CNetMessage *message)
Construct an ENet packet by serialising the given message.
The base class for all network messages exchanged within the game.
struct _ENetPacket ENetPacket
bool m_Enabled
Whether the player is currently connected and active.
struct _ENetHost ENetHost
static const int DEFAULT_CHANNEL
static void Deinitialize()
Deinitialize ENet.