Network🔗
Inherits: Node
There is currently no description for this class. Please help us by contributing one !
Properties🔗
|
Methoden🔗
void |
|
void |
|
void |
_on_peer_connected(peer_id: int) |
void |
_on_peer_disconnected(peer_id: int) |
Signals🔗
peer_disconnecting(peer_id: int) 🔗
Emitted when a MultiplayerPeer sends a leave rpc, right before it is disconnected
Eigenschaftsbeschreibungen🔗
The maximum number of concurrent connections to accept
Methodenbeschreibungen🔗
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!