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