mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-06 19:01:21 +03:00
Make QuickKey type a fixed size enum class
This commit is contained in:
parent
eb79b29512
commit
d1e8e56619
5 changed files with 47 additions and 48 deletions
|
@ -63,7 +63,8 @@ namespace ESM
|
|||
|
||||
inline std::ostream& operator<<(std::ostream& stream, const ESM::QuickKeys::QuickKey& value)
|
||||
{
|
||||
return stream << "ESM::QuickKeys::QuickKey {.mType = '" << value.mType << "', .mId = " << value.mId << "}";
|
||||
return stream << "ESM::QuickKeys::QuickKey {.mType = '" << static_cast<std::uint32_t>(value.mType)
|
||||
<< "', .mId = " << value.mId << "}";
|
||||
}
|
||||
|
||||
namespace
|
||||
|
@ -312,11 +313,11 @@ namespace ESM
|
|||
const QuickKeys record {
|
||||
.mKeys = {
|
||||
{
|
||||
.mType = 42,
|
||||
.mType = QuickKeys::Type::Magic,
|
||||
.mId = generateRandomRefId(32),
|
||||
},
|
||||
{
|
||||
.mType = 13,
|
||||
.mType = QuickKeys::Type::MagicItem,
|
||||
.mId = generateRandomRefId(32),
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue