Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
33 lines
753 B
C++
33 lines
753 B
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_USERDATA_NORMALITEMSLOTS_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_USERDATA_NORMALITEMSLOTS_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
namespace Json {
|
|
class Value;
|
|
}
|
|
|
|
#pragma pack(push, 1)
|
|
struct NormalItemSlot {
|
|
std::uint8_t unknown_0000;
|
|
std::uint32_t itemId;
|
|
std::int16_t unknown_0005;
|
|
};
|
|
#pragma pack(pop)
|
|
static_assert(sizeof(NormalItemSlot) == 7);
|
|
static_assert(offsetof(NormalItemSlot, itemId) == 1);
|
|
|
|
struct NormalItemSlotWindow {
|
|
int x;
|
|
int y;
|
|
int width;
|
|
int height;
|
|
int show;
|
|
void Reset();
|
|
bool IsValid(int screenWidth, int screenHeight, bool active) const;
|
|
};
|
|
|
|
void ExportNormalItemSlots(Json::Value& data, const NormalItemSlot* slots, const NormalItemSlotWindow& window, bool active);
|
|
|
|
#endif
|