devilutionX/Source/themes.h
2021-09-01 18:28:56 +02:00

38 lines
626 B
C++

/**
* @file themes.h
*
* Interface of the theme room placing algorithms.
*/
#pragma once
#include <cstdint>
#include "gendung.h"
#include "objdat.h"
namespace devilution {
struct ThemeStruct {
theme_id ttype;
int16_t ttval;
};
extern int numthemes;
extern bool armorFlag;
extern bool weaponFlag;
extern int zharlib;
extern ThemeStruct themes[MAXTHEMES];
void InitThemes();
/**
* @brief HoldThemeRooms marks theme rooms as populated.
*/
void HoldThemeRooms();
/**
* CreateThemeRooms adds thematic elements to rooms.
*/
void CreateThemeRooms();
} // namespace devilution