c0e249e993
This reverts commitdaf3b57e89
, reversing changes made to7a6e0b7d77
.
27 lines
488 B
C++
27 lines
488 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include "NetMessage.h"
|
|
|
|
class ServerInformationMessage : public NetMessage
|
|
{
|
|
private:
|
|
string _hashSalt;
|
|
|
|
protected:
|
|
void Serialize(Serializer &s) override
|
|
{
|
|
s.Stream(_hashSalt);
|
|
}
|
|
|
|
public:
|
|
ServerInformationMessage(void* buffer, uint32_t length) : NetMessage(buffer, length) {}
|
|
ServerInformationMessage(string hashSalt) : NetMessage(MessageType::ServerInformation)
|
|
{
|
|
_hashSalt = hashSalt;
|
|
}
|
|
|
|
string GetHashSalt()
|
|
{
|
|
return _hashSalt;
|
|
}
|
|
};
|