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

23 lines
474 B
C++

#include "SimpleEventMsg.h"
namespace BS {
namespace Networking {
void SimpleEventMsg::Serialize(SerializationBuffer* buf){
buf->SeekZero();
buf->WriteInt(1005);
buf->WriteInt((int)(this->Event));
}
void SimpleEventMsg::Deserialize(SerializationBuffer* buf)
{
this->Event = (SimpleEventMsg::EventType)(buf->ReadInt());
}
SimpleEventMsg::SimpleEventMsg()
{
}
String* SimpleEventMsg::ToString()
{
return new String(CURRENT_TYPE);
}
}
}