Reorganized and cleaned up the solution.

This commit is contained in:
HikikoMarmy
2026-03-02 12:37:07 +00:00
parent 8012f30170
commit d4dfbddf69
175 changed files with 1516 additions and 1136 deletions

View File

@@ -0,0 +1,38 @@
#pragma once
#include "../GenericNetRequest.hpp"
#include "../GenericNetResponse.hpp"
#include "Game/RealmCharacter.hpp"
class RequestCreateNewCharacter_RTA : public GenericRequest
{
private:
std::wstring m_sessionId;
CharacterSlotData m_metaData;
std::vector< uint8_t > m_characterData;
enum ERROR_CODE {
SUCCESS = 0,
FATAL_ERROR,
GENERAL_ERROR,
};
public:
static std::unique_ptr< RequestCreateNewCharacter_RTA > Create()
{
return std::make_unique< RequestCreateNewCharacter_RTA >();
}
sptr_generic_response ProcessRequest( sptr_socket socket, sptr_byte_stream stream ) override;
void Deserialize( sptr_byte_stream stream ) override;
};
class ResultCreateNewCharacter_RTA : public GenericResponse {
private:
int32_t m_reply;
public:
ResultCreateNewCharacter_RTA( GenericRequest *request, int32_t reply );
void Serialize( ByteBuffer &out ) const;
};