diff options
| author | jj | 2012-07-05 18:03:02 +0200 |
|---|---|---|
| committer | jj | 2012-07-05 18:03:02 +0200 |
| commit | 8e17ebbefc5da79b34219b87b310038af1077871 (patch) | |
| tree | 67d844e935af4f21a5da87964fba156657b163cf /library/include | |
| parent | 70740481463bbde3f078b612e529e6c7a3b6704d (diff) | |
| download | dfhack-8e17ebbefc5da79b34219b87b310038af1077871.tar.gz dfhack-8e17ebbefc5da79b34219b87b310038af1077871.tar.bz2 dfhack-8e17ebbefc5da79b34219b87b310038af1077871.tar.xz | |
add SC_PAUSED / SC_UNPAUSED onStateChange events
Diffstat (limited to 'library/include')
| -rw-r--r-- | library/include/Core.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/include/Core.h b/library/include/Core.h index e4d1080d..0d5d3150 100644 --- a/library/include/Core.h +++ b/library/include/Core.h @@ -75,7 +75,9 @@ namespace DFHack SC_MAP_UNLOADED = 3, SC_VIEWSCREEN_CHANGED = 4, SC_CORE_INITIALIZED = 5, - SC_BEGIN_UNLOAD = 6 + SC_BEGIN_UNLOAD = 6, + SC_PAUSED = 7, + SC_UNPAUSED = 8 }; // Core is a singleton. Why? Because it is closely tied to SDL calls. It tracks the global state of DF. @@ -221,6 +223,7 @@ namespace DFHack // for state change tracking void *last_local_map_ptr; df::viewscreen *top_viewscreen; + bool last_pause_state; // Very important! bool started; |
