OSDN Git Service

Merge pull request #3532 from sikabane-works/release/3.0.0.87-alpha
[hengbandforosx/hengbandosx.git] / src / game-option / option-types-table.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include <vector>
5
6 /*
7  * Available "options"
8  *      - Address of actual option variable (or nullptr)
9  *      - Normal Value (TRUE or FALSE)
10  *      - Option Page Number (or zero)
11  *      - Savefile Set (or zero)
12  *      - Savefile Bit in that set
13  *      - Textual name (or nullptr)
14  *      - Textual description
15  */
16 struct option_type {
17     bool *o_var{};
18     byte o_norm{};
19     byte o_page{};
20     byte o_set{};
21     byte o_bit{};
22     concptr o_text{};
23     concptr o_desc{};
24 };
25
26 extern const std::vector<option_type> option_info;
27 extern const std::vector<option_type> cheat_info;
28 extern const std::vector<option_type> autosave_info;