Network🔗
Hérite: Node
There is currently no description for this class. Please help us by contributing one !
Propriétés🔗
|
Méthodes🔗
void |
|
void |
|
void |
_on_peer_connected(peer_id: int) |
void |
_on_peer_disconnected(peer_id: int) |
Signaux🔗
peer_disconnecting(peer_id: int) 🔗
Emitted when a MultiplayerPeer sends a leave rpc, right before it is disconnected
Descriptions de propriété🔗
The maximum number of concurrent connections to accept
Descriptions de méthode🔗
void serve(port: int = 9000) 🔗
Creates a server peer and listens for connections on all intefaces for specifed port
void join(host: String = "localhost", port: int = 9000) 🔗
Creates a client peer and connects to specified host and port
void _on_peer_connected(peer_id: int) 🔗
Emitted when a multiplayer peer successfully connects to a server. Only emitted on the server.
void _on_peer_disconnected(peer_id: int) 🔗
There is currently no description for this method. Please help us by contributing one!