2019-10-20 20:05:39 -04:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "NetMessage.h"
|
|
|
|
|
|
|
|
class ServerInformationMessage : public NetMessage
|
|
|
|
{
|
|
|
|
private:
|
2019-10-24 20:52:20 -04:00
|
|
|
string _hashSalt;
|
2019-10-20 20:05:39 -04:00
|
|
|
|
|
|
|
protected:
|
2021-03-10 11:13:28 -05:00
|
|
|
void Serialize(Serializer &s) override
|
2019-10-20 20:05:39 -04:00
|
|
|
{
|
2019-10-24 20:52:20 -04:00
|
|
|
s.Stream(_hashSalt);
|
2019-10-20 20:05:39 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
public:
|
2021-03-10 11:13:28 -05:00
|
|
|
ServerInformationMessage(void* buffer, uint32_t length) : NetMessage(buffer, length) {}
|
2019-10-20 20:05:39 -04:00
|
|
|
ServerInformationMessage(string hashSalt) : NetMessage(MessageType::ServerInformation)
|
|
|
|
{
|
2019-10-24 20:52:20 -04:00
|
|
|
_hashSalt = hashSalt;
|
2019-10-20 20:05:39 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
string GetHashSalt()
|
|
|
|
{
|
2019-10-24 20:52:20 -04:00
|
|
|
return _hashSalt;
|
2019-10-20 20:05:39 -04:00
|
|
|
}
|
|
|
|
};
|