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.

  1. NetworkedMultiplayerPeer networkPeer [@property getter]
  2. NetworkedMultiplayerPeer networkPeer [@property setter]
    struct MultiplayerAPI
    @nogc nothrow @property
    void
    networkPeer

Meta