You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/components/esm3/quickkeys.hpp

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