mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:20:54 +01:00
16 lines
529 B
C++
16 lines
529 B
C++
#include <Messages/NotifyPlayerLeft.h>
|
|
#include <TiltedCore/Serialization.hpp>
|
|
|
|
void NotifyPlayerLeft::SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept
|
|
{
|
|
Serialization::WriteVarInt(aWriter, PlayerId);
|
|
Serialization::WriteString(aWriter, Username);
|
|
}
|
|
|
|
void NotifyPlayerLeft::DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept
|
|
{
|
|
ServerMessage::DeserializeRaw(aReader);
|
|
|
|
PlayerId = Serialization::ReadVarInt(aReader) & 0xFFFFFFFF;
|
|
Username = Serialization::ReadString(aReader);
|
|
}
|