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

27 lines
582 B
C++

#include "TeleportMsg.h"
namespace BS {
namespace Networking {
void TeleportMsg::Serialize(SerializationBuffer* buf){
buf->SeekZero();
buf->WriteInt(1009);
buf->WriteUInt(this->Guid);
buf->WriteVector3(this->position);
buf->WriteQuaternion(this->rotation);
}
void TeleportMsg::Deserialize(SerializationBuffer* buf)
{
this->Guid = buf->ReadUInt();
this->position = buf->ReadVector3();
this->rotation = buf->ReadQuaternion();
}
TeleportMsg::TeleportMsg()
{
}
String* TeleportMsg::ToString()
{
return new String(CURRENT_TYPE);
}
}
}