mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
6aa90ad5b2
* Breakout rest of the enums from dcommonvars so we don't have to deal with merge conflicts ePlayerFlags is not a scoped enum, yet, due to it's complexity * address feedback * make player flag types consistent * fix typo
21 lines
733 B
C++
21 lines
733 B
C++
#ifndef AUTHPACKETS_H
|
|
#define AUTHPACKETS_H
|
|
|
|
#define _VARIADIC_MAX 10
|
|
#include "dCommonVars.h"
|
|
#include "dNetCommon.h"
|
|
|
|
enum class ServerType : uint32_t;
|
|
enum class eLoginResponse : uint8_t;
|
|
class dServer;
|
|
|
|
namespace AuthPackets {
|
|
void HandleHandshake(dServer* server, Packet* packet);
|
|
void SendHandshake(dServer* server, const SystemAddress& sysAddr, const std::string& nextServerIP, uint16_t nextServerPort, const ServerType serverType);
|
|
|
|
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);
|
|
}
|
|
|
|
#endif // AUTHPACKETS_H
|