diff options
| author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-05-12 19:42:00 +0200 |
|---|---|---|
| committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-05-12 23:51:58 +0200 |
| commit | f95e4c72df109f1ac03264106e78a7bd336279ca (patch) | |
| tree | ea5ecf1cc487ac80d513994202d7b1374afb4baa /modules/enet/networked_multiplayer_enet.h | |
| parent | ca10cb6eea0f86e0ec2fe24a142006cbc6db21c6 (diff) | |
| download | redot-engine-f95e4c72df109f1ac03264106e78a7bd336279ca.tar.gz | |
Expose channels in NetworkedMultiplayerENet
Diffstat (limited to 'modules/enet/networked_multiplayer_enet.h')
| -rw-r--r-- | modules/enet/networked_multiplayer_enet.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/enet/networked_multiplayer_enet.h b/modules/enet/networked_multiplayer_enet.h index d481f5d496..705807d429 100644 --- a/modules/enet/networked_multiplayer_enet.h +++ b/modules/enet/networked_multiplayer_enet.h @@ -68,6 +68,9 @@ private: int target_peer; TransferMode transfer_mode; + int transfer_channel; + int channel_count; + bool always_ordered; ENetEvent event; ENetPeer *peer; @@ -83,6 +86,7 @@ private: ENetPacket *packet; int from; + int channel; }; CompressionMode compression_mode; @@ -145,6 +149,15 @@ public: void set_compression_mode(CompressionMode p_mode); CompressionMode get_compression_mode() const; + int get_packet_channel() const; + int get_last_packet_channel() const; + void set_transfer_channel(int p_channel); + int get_transfer_channel() const; + void set_channel_count(int p_channel); + int get_channel_count() const; + void set_always_ordered(bool p_ordered); + bool is_always_ordered() const; + NetworkedMultiplayerENet(); ~NetworkedMultiplayerENet(); |
