mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 17:10:54 +01:00
15 lines
514 B
C++
15 lines
514 B
C++
#include <Messages/NotifyHealthChangeBroadcast.h>
|
|
|
|
void NotifyHealthChangeBroadcast::SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept
|
|
{
|
|
Serialization::WriteVarInt(aWriter, Id);
|
|
Serialization::WriteFloat(aWriter, DeltaHealth);
|
|
}
|
|
|
|
void NotifyHealthChangeBroadcast::DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept
|
|
{
|
|
ServerMessage::DeserializeRaw(aReader);
|
|
|
|
Id = Serialization::ReadVarInt(aReader) & 0xFFFFFFFF;
|
|
DeltaHealth = Serialization::ReadFloat(aReader);
|
|
}
|