diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-04 09:31:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-04 09:31:33 +0200 |
commit | 0cee8831b25377567bff8f46f7eaad8cb203dbf8 (patch) | |
tree | bbd8ee9a8f33ebbad626195e80cd5d81a5cd4d9f /core/io/multiplayer_api.h | |
parent | 7eedc2c34822f9b14f04e6866e73626959f6d647 (diff) | |
parent | 2cf39b97ae326a28015b67221b928e4861380d29 (diff) |
Merge pull request #51005 from Faless/mp/4.x_channels
[Net] Implement RPC channels in MultiplayerAPI.
Diffstat (limited to 'core/io/multiplayer_api.h')
-rw-r--r-- | core/io/multiplayer_api.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/multiplayer_api.h b/core/io/multiplayer_api.h index cc994a9852..011bc3dde9 100644 --- a/core/io/multiplayer_api.h +++ b/core/io/multiplayer_api.h @@ -132,7 +132,7 @@ public: Node *get_root_node(); void set_network_peer(const Ref<MultiplayerPeer> &p_peer); Ref<MultiplayerPeer> get_network_peer() const; - Error send_bytes(Vector<uint8_t> p_data, int p_to = MultiplayerPeer::TARGET_PEER_BROADCAST, MultiplayerPeer::TransferMode p_mode = MultiplayerPeer::TRANSFER_MODE_RELIABLE); + Error send_bytes(Vector<uint8_t> p_data, int p_to = MultiplayerPeer::TARGET_PEER_BROADCAST, MultiplayerPeer::TransferMode p_mode = MultiplayerPeer::TRANSFER_MODE_RELIABLE, int p_channel = 0); // Called by Node.rpc void rpcp(Node *p_node, int p_peer_id, bool p_unreliable, const StringName &p_method, const Variant **p_arg, int p_argcount); |