summaryrefslogtreecommitdiff
path: root/src/option_type.hpp
blob: 4d8a7a515f650972b996e6ba0c9338d3d2d621c4 (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
#pragma once

#include "h-basic.h"

/**
 * Option descriptor.
 */
struct option_type
{
	/**
	 * Address of actual option variable.
	 */
	bool_ *o_var;

	/**
	 * Option page number.
	 */
	byte o_page;

	/**
	 * Savefile bit in the page-specific list of options.
	 */
	byte o_bit;

	/**
	 * Textual name.
	 */
	cptr o_text;

	/**
	 * Textual description
	 */
	cptr o_desc;
};