entity_spell_system/Queued/Messages/CAuraAddedMsg.cpp
2019-04-20 14:02:55 +02:00

29 lines
640 B
C++

#include "CAuraAddedMsg.h"
namespace BS {
namespace Networking {
void CAuraAddedMsg::Serialize(SerializationBuffer* buf){
buf->SeekZero();
buf->WriteInt(1032);
buf->WriteUInt(this->Guid);
buf->WriteUInt(this->CasterGuid);
buf->WriteInt(this->AuraId);
buf->WriteFloat(this->Time);
}
void CAuraAddedMsg::Deserialize(SerializationBuffer* buf)
{
this->Guid = buf->ReadUInt();
this->CasterGuid = buf->ReadUInt();
this->AuraId = buf->ReadInt();
this->Time = buf->ReadFloat();
}
CAuraAddedMsg::CAuraAddedMsg()
{
}
String* CAuraAddedMsg::ToString()
{
return new String(CURRENT_TYPE);
}
}
}