Function MultiplayerAPI.networkPeer
The peer object to handle the RPC system (effectively enabling networking when set). Depending on the peer itself, the MultiplayerAPI will become a network server (check with isNetworkServer
) and will set root node's network mode to master, or it will become a regular peer with root node set to puppet. All child nodes are set to inherit the network mode by default. Handling of networking-related events (connection, disconnection, new clients) is done by connecting to MultiplayerAPI's signals.
NetworkedMultiplayerPeer networkPeer() nothrow @property @nogc;
void networkPeer
(
NetworkedMultiplayerPeer v
) nothrow @property @nogc;