mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
25 lines
526 B
C++
25 lines
526 B
C++
#include "SpawnPlayerMsg.h"
|
|
namespace BS {
|
|
namespace Networking {
|
|
void SpawnPlayerMsg::Serialize(SerializationBuffer* buf){
|
|
buf->SeekZero();
|
|
buf->WriteInt(1006);
|
|
buf->WriteInt(this->PlayerId);
|
|
buf->WriteBool(this->IsLocalPlayer);
|
|
}
|
|
void SpawnPlayerMsg::Deserialize(SerializationBuffer* buf)
|
|
{
|
|
this->PlayerId = buf->ReadInt();
|
|
this->IsLocalPlayer = buf->ReadBool();
|
|
}
|
|
SpawnPlayerMsg::SpawnPlayerMsg()
|
|
{
|
|
}
|
|
String* SpawnPlayerMsg::ToString()
|
|
{
|
|
return new String(CURRENT_TYPE);
|
|
}
|
|
|
|
}
|
|
}
|