mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
27 lines
588 B
C++
27 lines
588 B
C++
#include "SMovementDataMsg.h"
|
|
namespace BS {
|
|
namespace Networking {
|
|
void SMovementDataMsg::Serialize(SerializationBuffer* buf){
|
|
buf->SeekZero();
|
|
buf->WriteInt(1011);
|
|
buf->WriteUInt(this->Guid);
|
|
buf->WriteVector2(this->Axes);
|
|
buf->WriteFloat(this->Speed);
|
|
}
|
|
void SMovementDataMsg::Deserialize(SerializationBuffer* buf)
|
|
{
|
|
this->Guid = buf->ReadUInt();
|
|
this->Axes = buf->ReadVector2();
|
|
this->Speed = buf->ReadFloat();
|
|
}
|
|
SMovementDataMsg::SMovementDataMsg()
|
|
{
|
|
}
|
|
String* SMovementDataMsg::ToString()
|
|
{
|
|
return new String(CURRENT_TYPE);
|
|
}
|
|
|
|
}
|
|
}
|