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

27 lines
616 B
C++

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