mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-14 04:08:20 +00:00
cefdfc696a
* cleanup * more cleanup and fully implement the sound trigger and racing sound trigger * more cleanup, and better defaults * fixes and tested * update initializor for guid and when to load sound guids * make racing sound trigger it's own component * fix type * Remove global move serializes --------- Co-authored-by: David Markowitz <EmosewaMC@gmail.com>
34 lines
544 B
C++
34 lines
544 B
C++
#pragma once
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <array>
|
|
|
|
class GUID {
|
|
public:
|
|
explicit GUID();
|
|
explicit GUID(const std::string& guid);
|
|
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;
|
|
}
|
|
|
|
private:
|
|
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 };
|
|
};
|