Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++
680 B
Raw Blame
#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