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

#include "h-basic.h"

/**
 * Option descriptor.
 */
struct option_type
{
	/**
	 * Address of actual option variable. NULL signals the
	 * end of the table.
	 */
	bool_ *o_var;

	/**
	 * Default value.
	 */
	byte o_norm;

	/**
	 * 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;
};