Brought the common/ directory up to date with the region's preprocessors
I really hope the serialization code still works.
This commit is contained in:
@@ -24,12 +24,13 @@
|
||||
|
||||
#include "network_packet.hpp"
|
||||
|
||||
/* Sending regions are the largest type of packet
|
||||
* content: width * height * depth * sizoeof(type)
|
||||
* map format: sizeof(int) * 5
|
||||
/* TODO: Keep the PACKET_BUFFER_SIZE up to date
|
||||
* NOTE: REGION_CONTENT is currently the largest type of packet
|
||||
* map content: REGION_WIDTH * REGION_HEIGHT * REGION_DEPTH * sizoeof(region::type_t)
|
||||
* map format: sizeof(int) * 2
|
||||
* metadata: sizeof(metadata)
|
||||
*/
|
||||
#define PACKET_BUFFER_SIZE REGION_WIDTH * REGION_HEIGHT * REGION_DEPTH * sizeof(Region::type_t) + sizeof(int) * 5 + sizeof(NetworkPacket::Metadata)
|
||||
#define PACKET_BUFFER_SIZE REGION_WIDTH * REGION_HEIGHT * REGION_DEPTH * sizeof(Region::type_t) + sizeof(int) * 2 + sizeof(NetworkPacket::Metadata)
|
||||
|
||||
void serialize(NetworkPacket* const, void*);
|
||||
void deserialize(NetworkPacket* const, void*);
|
||||
|
||||
Reference in New Issue
Block a user