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
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_ITEMS_ITEMDESCRIPTION_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_ITEMS_ITEMDESCRIPTION_H
|
|
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
struct ItemInfo;
|
|
|
|
class ITEM_DESC {
|
|
public:
|
|
ITEM_DESC();
|
|
virtual ~ITEM_DESC();
|
|
ITEM_DESC& operator=(const ITEM_DESC& other);
|
|
|
|
/* 0004 */ const char* identifiedName;
|
|
/* 0008 */ const char* identifiedResource;
|
|
/* 000C */ std::vector<const char*> identifiedDescription;
|
|
/* 0018 */ const char* unidentifiedName;
|
|
/* 001C */ const char* unidentifiedResource;
|
|
/* 0020 */ std::vector<const char*> unidentifiedDescription;
|
|
/* 002C */ int unknown_002C;
|
|
/* 0030 */ int slots;
|
|
/* 0034 */ std::vector<int> unknown_0034;
|
|
/* 0040 */ int unknown_0040;
|
|
};
|
|
|
|
struct ItemDescriptions {
|
|
std::map<int, ITEM_DESC>& values;
|
|
ITEM_DESC& Find(int id);
|
|
ITEM_DESC& Ensure(int id);
|
|
void IconPath(char* output, const char* id, int identified);
|
|
const std::vector<const char*>& Description(const ItemInfo& item);
|
|
int Name(const ItemInfo& item, char* output, int& capacity, unsigned char consume);
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(ITEM_DESC) == 68);
|
|
#endif
|
|
|
|
#endif
|