1234567891011121314151617181920212223 |
- #ifndef PACKET_H
- #define PACKET_H
- #include "network/ENet.h"
- #include "utils/Types.h"
- class InPacket {
- ENetPacket* packet;
- unsigned int readIndex;
- friend class Server;
- InPacket(ENetPacket* packet);
- bool read(void* buffer, unsigned int length);
- public:
- bool read(uint8& u);
- bool read(uint16& u);
- bool read(uint32& u);
- };
- #endif
|