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
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_ITEMS_ITEMNAMING_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_ITEMS_ITEMNAMING_H
|
|
|
|
#include "Contents/Items/ItemDescription.h"
|
|
|
|
#include <string>
|
|
#include <windows.h>
|
|
|
|
class CPlayerNameDictionary;
|
|
struct ItemInfo;
|
|
|
|
struct ItemCardName {
|
|
const char* name;
|
|
const char* prefix;
|
|
const char* suffix;
|
|
};
|
|
|
|
struct ItemNaming {
|
|
ItemDescriptions& descriptions;
|
|
const std::map<int, ItemCardName>& cards;
|
|
CPlayerNameDictionary& players;
|
|
const bool& languagePrefix;
|
|
const int& service;
|
|
const WORD& language;
|
|
|
|
std::string DisplayName(const ItemInfo& item, unsigned char detailed);
|
|
bool HasCards(const ItemInfo& item) const;
|
|
int Grade(const ItemInfo& item, char* output, int& capacity, unsigned char consume) const;
|
|
int Creator(const ItemInfo& item, char* output, int& capacity, unsigned char consume);
|
|
int Prefixes(const ItemInfo& item, char* output, int& capacity, unsigned char consume) const;
|
|
int Suffixes(const ItemInfo& item, char* output, int& capacity, unsigned char consume) const;
|
|
int Slots(const ItemInfo& item, char* output, int& capacity, unsigned char consume);
|
|
const char* Message(int id) const;
|
|
};
|
|
|
|
#endif
|