You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
961 B
36 lines
961 B
/** |
|
* @file debug.h |
|
* |
|
* Interface of debug functions. |
|
*/ |
|
#pragma once |
|
|
|
#include <unordered_map> |
|
|
|
#include "engine.h" |
|
#include "engine/clx_sprite.hpp" |
|
#include "utils/stdcompat/string_view.hpp" |
|
|
|
namespace devilution { |
|
|
|
extern std::string TestMapPath; |
|
extern OptionalOwnedClxSpriteList pSquareCel; |
|
extern bool DebugToggle; |
|
extern bool DebugGodMode; |
|
extern bool DebugVision; |
|
extern bool DebugGrid; |
|
extern std::unordered_map<int, Point> DebugCoordsMap; |
|
extern bool DebugScrollViewEnabled; |
|
extern std::string debugTRN; |
|
|
|
void FreeDebugGFX(); |
|
void LoadDebugGFX(); |
|
void GetDebugMonster(); |
|
void NextDebugMonster(); |
|
void SetDebugLevelSeedInfos(uint32_t mid1Seed, uint32_t mid2Seed, uint32_t mid3Seed, uint32_t endSeed); |
|
bool CheckDebugTextCommand(const string_view text); |
|
bool IsDebugGridTextNeeded(); |
|
bool IsDebugGridInMegatiles(); |
|
bool GetDebugGridText(Point dungeonCoords, char *debugGridTextBuffer); |
|
|
|
} // namespace devilution
|
|
|