2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
#include <array>
|
|
|
|
|
|
|
|
class GUID {
|
|
|
|
public:
|
2022-07-28 13:39:57 +00:00
|
|
|
explicit GUID();
|
|
|
|
explicit GUID(const std::string& guid);
|
2023-08-06 20:38:12 +00:00
|
|
|
void Serialize(RakNet::BitStream* outBitStream);
|
|
|
|
|
|
|
|
uint32_t GetData1() const {
|
|
|
|
return data1;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint16_t GetData2() const {
|
|
|
|
return data2;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint16_t GetData3() const {
|
|
|
|
return data3;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::array<uint8_t, 8> GetData4() const {
|
|
|
|
return data4;
|
|
|
|
}
|
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
private:
|
2022-07-28 13:39:57 +00:00
|
|
|
uint32_t data1 = 0;
|
|
|
|
uint16_t data2 = 0;
|
|
|
|
uint16_t data3 = 0;
|
|
|
|
std::array<uint8_t, 8> data4 = { 0, 0, 0, 0, 0, 0, 0, 0 };
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|