summaryrefslogtreecommitdiff
path: root/src/option_type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/option_type.hpp')
-rw-r--r--src/option_type.hpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/option_type.hpp b/src/option_type.hpp
new file mode 100644
index 00000000..4d8a7a51
--- /dev/null
+++ b/src/option_type.hpp
@@ -0,0 +1,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;
+};