summaryrefslogtreecommitdiff
path: root/src/level_data.hpp
blob: 0e1d3a5b1f74fbac15f91adddf0a22b6550063c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#pragma once

#include "dungeon_flag_set.hpp"

#include <boost/optional.hpp>
#include <string>
#include <unordered_map>

/**
 * Read-only game data for individual levels of a dungeon.
 */
struct level_data
{
	/**
	 * Target dungeon number for side dungeon, if any.
	 */
	int branch = 0;

	/**
	 * Dungeon number for parent dungeon, if any. Filled in by post_d_info().
	 */
	int fbranch = 0;

	/**
	 * Dungeon depth for parent dungeon, if any. Filled in by post_d_info().
	 */
	int flevel = 0;

	/**
	 * Dungeon flags.
	 */
	dungeon_flag_set flags;

	/**
	 * Save file extension to use for this level, if any.
	 */
	boost::optional<std::string> save_extension;

	/**
	 * Get map name for special levels.
	 */
	boost::optional<std::string> map_name;

	/**
	 * Short name for special levels, replaces
	 * the regular depth display.
	 */
	boost::optional<std::string> name;

	/**
	 * One-line description for special levels,
	 * replaces the level feeling.
	 */
	boost::optional<std::string> description;

};