mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
utility.h: Change Buffer's interface to be more compatible with SharedBuffer's interface, connection.h: use Buffer instead of SharedBuffer in command and event queues
This commit is contained in:
parent
fa72e65b59
commit
28660b4c1a
2 changed files with 50 additions and 8 deletions
|
@ -430,7 +430,7 @@ struct ConnectionEvent
|
|||
{
|
||||
enum ConnectionEventType type;
|
||||
u16 peer_id;
|
||||
SharedBuffer<u8> data;
|
||||
Buffer<u8> data;
|
||||
bool timeout;
|
||||
Address address;
|
||||
|
||||
|
@ -489,7 +489,7 @@ struct ConnectionCommand
|
|||
Address address;
|
||||
u16 peer_id;
|
||||
u8 channelnum;
|
||||
SharedBuffer<u8> data;
|
||||
Buffer<u8> data;
|
||||
bool reliable;
|
||||
|
||||
ConnectionCommand(): type(CONNCMD_NONE) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue