rename enum cause windows is already named that

This commit is contained in:
Aaron Kimbre 2023-08-04 22:20:38 -05:00
parent f10e45a2dd
commit 50ac686b7f
2 changed files with 20 additions and 21 deletions

View File

@ -29,25 +29,6 @@
#include "eMasterMessageType.h" #include "eMasterMessageType.h"
#include "eStamps.h" #include "eStamps.h"
enum class ClientOS : uint8_t {
UNKNOWN,
WINDOWS,
MACOS
};
enum class LCID : uint16_t {
en_US = 0x0409,
de_DE = 0x0407,
en_GB = 0x0809
};
enum class Language : uint32_t {
en_US,
pl_US,
de_DE,
en_GB,
};
void Stamp::Serialize(RakNet::BitStream* outBitStream){ void Stamp::Serialize(RakNet::BitStream* outBitStream){
outBitStream->Write(type); outBitStream->Write(type);
outBitStream->Write(value); outBitStream->Write(value);
@ -109,7 +90,7 @@ void AuthPackets::HandleLoginRequest(dServer* server, Packet* packet) {
LUWString password(41); LUWString password(41);
inStream.Read(password); inStream.Read(password);
LCID locale_id; LanguageCodeID locale_id;
inStream.Read(locale_id); inStream.Read(locale_id);
Game::logger->Log("AuthPackets", "Locale ID: %i", locale_id); Game::logger->Log("AuthPackets", "Locale ID: %i", locale_id);

View File

@ -24,10 +24,28 @@ struct Stamp {
void Serialize(RakNet::BitStream* outBitStream); void Serialize(RakNet::BitStream* outBitStream);
}; };
enum class ClientOS : uint8_t {
UNKNOWN,
WINDOWS,
MACOS
};
enum class LanguageCodeID : uint16_t {
en_US = 0x0409,
de_DE = 0x0407,
en_GB = 0x0809
};
enum class Language : uint32_t {
en_US,
pl_US,
de_DE,
en_GB,
};
namespace AuthPackets { namespace AuthPackets {
void HandleHandshake(dServer* server, Packet* packet); void HandleHandshake(dServer* server, Packet* packet);
void SendHandshake(dServer* server, const SystemAddress& sysAddr, const std::string& nextServerIP, uint16_t nextServerPort, const ServerType serverType); void SendHandshake(dServer* server, const SystemAddress& sysAddr, const std::string& nextServerIP, uint16_t nextServerPort, const ServerType serverType);
void HandleLoginRequest(dServer* server, Packet* packet); void HandleLoginRequest(dServer* server, Packet* packet);
void SendLoginResponse(dServer* server, const SystemAddress& sysAddr, eLoginResponse responseCode, const std::string& errorMsg, const std::string& wServerIP, uint16_t wServerPort, std::string username); void SendLoginResponse(dServer* server, const SystemAddress& sysAddr, eLoginResponse responseCode, const std::string& errorMsg, const std::string& wServerIP, uint16_t wServerPort, std::string username);
} }