Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | pmbaty | 1 | /* |
2 | * This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>. |
||
3 | * It is copyright by its individual contributors, as recorded in the |
||
4 | * project's Git history. See COPYING.txt at the top level for license |
||
5 | * terms and a link to the Git history. |
||
6 | */ |
||
7 | #pragma once |
||
8 | #include <chrono> |
||
9 | |||
10 | namespace dcx { |
||
11 | |||
12 | #define DXX_MENUITEM_AUTOSAVE_LABEL_INPUT(VERB) \ |
||
13 | DXX_MENUITEM(VERB, TEXT, "Auto-save every M minutes, S seconds:", opt_label_autosave_interval) \ |
||
14 | DXX_MENUITEM(VERB, INPUT, AutosaveInterval, opt_autosave_interval) \ |
||
15 | |||
16 | /* Use a custom duration type with Rep=uint16_t because autosaves |
||
17 | * are not meant to have very long intervals. Even with uint16_t, |
||
18 | * this type can allow the user to choose to auto-save once every |
||
19 | * 18.2 hours. |
||
20 | */ |
||
21 | using autosave_interval_type = std::chrono::duration<uint16_t, std::chrono::seconds::period>; |
||
22 | |||
23 | struct d_gameplay_options |
||
24 | { |
||
25 | autosave_interval_type AutosaveInterval; |
||
26 | }; |
||
27 | |||
28 | struct d_sp_gameplay_options : d_gameplay_options |
||
29 | { |
||
30 | }; |
||
31 | |||
32 | struct d_mp_gameplay_options : d_gameplay_options |
||
33 | { |
||
34 | }; |
||
35 | |||
36 | } |