Mesen-SX/Core/ServerInformationMessage.h

28 lines
488 B
C
Raw Permalink 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:
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:
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
}
};