|
|
void | Start (uint16_t port) |
| |
|
void | Stop () |
| |
|
void | SpawnEntity (World *, ctti_t, Entity, const uuids::uuid &) |
| |
|
void | DestroyEntity (const uuids::uuid &) |
| |
|
void | SendMessageToAllClients (const std::string_view &msg, Reliability mode) const |
| |
|
void | SendMessageToClient (const std::string_view &msg, HSteamNetConnection connection, Reliability mode) const |
| |
|
void | SendMessageToAllClientsExcept (const std::string_view &msg, HSteamNetConnection connection, Reliability mode) const |
| |
| void | DisconnectClient (HSteamNetConnection con, int reason, const char *msg_optional=nullptr) |
| |
| void | ChangeOwnership (HSteamNetConnection newOwner, ComponentHandle< NetworkIdentity > object) |
| |
|
std::string | CreateSpawnCommand (const uuids::uuid &id, ctti_t type, std::string_view &worldID) |
| |
|
std::string | CreateDestroyCommand (const uuids::uuid &id) |
| |
| constexpr const decltype(clients) & | GetClients () |
| |
|
| enum | Reliability { Unreliable = k_nSteamNetworkingSend_Unreliable
, Reliable = k_nSteamNetworkingSend_Reliable
} |
| |
◆ ChangeOwnership()
Change the ownership of a networked object
- Parameters
-
| newOwner | the connection handle for the new owner. Use Invalid to make the server owner |
| object | the networkidentity to udpate the ownership of |
◆ DisconnectClient()
Disconnect a client from the server
- Parameters
-
| the | connection handle to disconnect |
| reason | an integer specifying the reason. This is user-defined. |
| msg_optional | an optional string message to provide which will be received on the client. |
◆ GetClients()
Get the internal client structure. Note that to track application-specific client data, create your own datastructure and add event listeners to the OnConnecting, Ondisconnected, etc functions and track it yourself.
The documentation for this class was generated from the following files: