entity_spell_system/Queued/Messages/SSendAddResourceMsg.cpp

25 lines
530 B
C++
Raw Normal View History

2019-04-20 14:02:55 +02:00
#include "SSendAddResourceMsg.h"
namespace BS {
namespace Networking {
void SSendAddResourceMsg::Serialize(SerializationBuffer* buf){
buf->SeekZero();
buf->WriteInt(1040);
buf->WriteUInt(this->Guid);
buf->WriteInt(this->Type);
}
void SSendAddResourceMsg::Deserialize(SerializationBuffer* buf)
{
this->Guid = buf->ReadUInt();
this->Type = buf->ReadInt();
}
SSendAddResourceMsg::SSendAddResourceMsg()
{
}
String* SSendAddResourceMsg::ToString()
{
return new String(CURRENT_TYPE);
}
}
}