mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:40:53 +01:00
16 lines
487 B
C++
16 lines
487 B
C++
|
|
#include <Messages/NotifyDeathStateChange.h>
|
||
|
|
|
||
|
|
void NotifyDeathStateChange::SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept
|
||
|
|
{
|
||
|
|
Serialization::WriteVarInt(aWriter, Id);
|
||
|
|
Serialization::WriteBool(aWriter, IsDead);
|
||
|
|
}
|
||
|
|
|
||
|
|
void NotifyDeathStateChange::DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept
|
||
|
|
{
|
||
|
|
ServerMessage::DeserializeRaw(aReader);
|
||
|
|
|
||
|
|
Id = Serialization::ReadVarInt(aReader) & 0xFFFFFFFF;
|
||
|
|
IsDead = Serialization::ReadBool(aReader);
|
||
|
|
}
|