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

27 lines
709 B
C

#pragma once
#include <Structs/GameId.h>
#include <Structs/LockData.h>
#include <Structs/Inventory.h>
#include <Structs/GridCellCoords.h>
struct ObjectData
{
ObjectData() = default;
~ObjectData() = default;
bool operator==(const ObjectData& acRhs) const noexcept;
bool operator!=(const ObjectData& acRhs) const noexcept;
void Serialize(TiltedPhoques::Buffer::Writer& aWriter) const noexcept;
void Deserialize(TiltedPhoques::Buffer::Reader& aReader) noexcept;
uint32_t ServerId{};
GameId Id{};
GameId CellId{};
GameId WorldSpaceId{};
GridCellCoords CurrentCoords{};
LockData CurrentLockData{};
Inventory CurrentInventory{};
bool IsSenderFirst{};
};