mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-10-11 22:29:54 +00:00
Split several monolithic files to reduce transitive dependencies and
enable the dun_render_benchmark to link without bringing in all of
DevilutionX:
- Extract dungeon tile globals and loading functions from `gendung` into
`dun_tile_data.{hpp,cpp}`
- Extract light table data and MakeLightTable from lighting into
`engine/light_tables.{hpp,cpp}`
- Move cursor_id and SelectionRegion to cursor_defs.hpp
- Extract quest log rendering to `panels/quest_log.{hpp,cpp}`
- Extract drlg quest setpiece logic to `levels/drlg_quests.{hpp,cpp}`
- Extract quest data loading to `tables/questdat.{hpp,cpp}`
- Move `GameData` and `gbIsMultiplayer` into `game_mode.{hpp,cpp}`
- Add `parse_sfx_id.{hpp,cpp}`
- Update CMake libraries accordingly
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
39 lines
616 B
C++
39 lines
616 B
C++
/**
|
|
* @file cursor_defs.hpp
|
|
*
|
|
* Cursor and selection region enums with no heavy dependencies.
|
|
*/
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "utils/enum_traits.h"
|
|
|
|
namespace devilution {
|
|
|
|
enum class SelectionRegion : uint8_t {
|
|
None = 0,
|
|
Bottom = 1U << 0,
|
|
Middle = 1U << 1,
|
|
Top = 1U << 2,
|
|
};
|
|
use_enum_as_flags(SelectionRegion);
|
|
|
|
enum cursor_id : uint8_t {
|
|
CURSOR_NONE,
|
|
CURSOR_HAND,
|
|
CURSOR_IDENTIFY,
|
|
CURSOR_REPAIR,
|
|
CURSOR_RECHARGE,
|
|
CURSOR_DISARM,
|
|
CURSOR_OIL,
|
|
CURSOR_TELEKINESIS,
|
|
CURSOR_RESURRECT,
|
|
CURSOR_TELEPORT,
|
|
CURSOR_HEALOTHER,
|
|
CURSOR_HOURGLASS,
|
|
CURSOR_FIRSTITEM,
|
|
};
|
|
|
|
} // namespace devilution
|