summaryrefslogtreecommitdiffstats
path: root/src/Event.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-05 17:07:10 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-05 17:07:10 +0200
commitc9c78e191dd71bacd769bbeccd58b80e4376184b (patch)
tree4da1a8500dd73dd6368fc89496dc0f428d318c5b /src/Event.cpp
parent2017-08-03 (diff)
downloadAltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.gz
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.bz2
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.lz
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.xz
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.zst
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.zip
Diffstat (limited to 'src/Event.cpp')
-rw-r--r--src/Event.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Event.cpp b/src/Event.cpp
index 19c93f2..e58a6f4 100644
--- a/src/Event.cpp
+++ b/src/Event.cpp
@@ -105,3 +105,7 @@ void EventAgregator::EventHandlingLoop() {
queueMutex.unlock();
}
}
+
+void SetGlobalState(GlobalState state) {
+ EventAgregator::PushEvent(EventType::GlobalAppState, GlobalAppStateData{state});
+} \ No newline at end of file