F4MP/codigos originales/tiltedcode/Code/encoding/Structs/ActorData.h
2026-01-06 18:53:59 +01:00

22 lines
642 B
C

#pragma once
#include <Structs/ActorValues.h>
#include <Structs/Inventory.h>
struct ActorData
{
void Serialize(TiltedPhoques::Buffer::Writer& aWriter) const noexcept;
void Deserialize(TiltedPhoques::Buffer::Reader& aReader) noexcept;
bool operator==(const ActorData& acRhs) const noexcept
{
return InitialActorValues == acRhs.InitialActorValues &&
InitialInventory == acRhs.InitialInventory && IsDead == acRhs.IsDead &&
IsWeaponDrawn == acRhs.IsWeaponDrawn;
}
ActorValues InitialActorValues{};
Inventory InitialInventory{};
bool IsDead{};
bool IsWeaponDrawn{};
};