mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-28 18:18:52 +00:00
40 lines
680 B
C++
40 lines
680 B
C++
#ifndef OPENMW_COMPONENTS_ESM_QUICKKEYS_H
|
|
#define OPENMW_COMPONENTS_ESM_QUICKKEYS_H
|
|
|
|
#include "components/esm/refid.hpp"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace ESM
|
|
{
|
|
class ESMReader;
|
|
class ESMWriter;
|
|
|
|
struct QuickKeys
|
|
{
|
|
enum class Type : std::uint32_t
|
|
{
|
|
Item = 0,
|
|
Magic = 1,
|
|
MagicItem = 2,
|
|
Unassigned = 3,
|
|
HandToHand = 4,
|
|
};
|
|
|
|
struct QuickKey
|
|
{
|
|
Type mType;
|
|
RefId mId; // Spell or Item ID
|
|
};
|
|
|
|
std::vector<QuickKey> mKeys;
|
|
|
|
void load(ESMReader& esm);
|
|
void save(ESMWriter& esm) const;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|