Mesen-SX/Core/ServerInformationMessage.h

31 lines
492 B
C
Raw Normal View History

2019-10-20 20:05:39 -04:00
#pragma once
#include "stdafx.h"
#include "NetMessage.h"
class ServerInformationMessage : public NetMessage
{
private:
string _hashSalt;
2019-10-20 20:05:39 -04:00
protected:
2020-12-19 23:30:09 +03:00
void Serialize(Serializer& s) override
2019-10-20 20:05:39 -04:00
{
s.Stream(_hashSalt);
2019-10-20 20:05:39 -04:00
}
public:
2020-12-19 23:30:09 +03:00
ServerInformationMessage(void* buffer, uint32_t length) : NetMessage(buffer, length)
{
}
2019-10-20 20:05:39 -04:00
ServerInformationMessage(string hashSalt) : NetMessage(MessageType::ServerInformation)
{
_hashSalt = hashSalt;
2019-10-20 20:05:39 -04:00
}
string GetHashSalt()
{
return _hashSalt;
2019-10-20 20:05:39 -04:00
}
};