Function SceneTree.networkPeer

The peer object to handle the RPC system (effectively enabling networking when set). Depending on the peer itself, the SceneTree will become a network server (check with isNetworkServer) and will set the root node's network mode to master, or it will become a regular peer with the 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 SceneTree's signals.

NetworkedMultiplayerPeer networkPeer() nothrow @property @nogc;

void networkPeer (
  NetworkedMultiplayerPeer v
) nothrow @property @nogc;