aboutsummaryrefslogtreecommitdiffstats
path: root/include/events.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/events.hpp')
-rw-r--r--include/events.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/events.hpp b/include/events.hpp
index 4d1415c..7f70c04 100644
--- a/include/events.hpp
+++ b/include/events.hpp
@@ -9,6 +9,8 @@
#include <string>
+class World;
+
struct MouseScrollEvent {
MouseScrollEvent(int sd = 0)
: scrollDistance(sd) {}
@@ -38,10 +40,11 @@ struct GameEndEvent {
};
struct BGMToggleEvent {
- BGMToggleEvent(std::string f)
- : file(f) {}
+ BGMToggleEvent(std::string f = "", World *w = nullptr)
+ : file(f), world(w) {}
std::string file;
-}
+ World *world;
+};
#endif // EVENTS_HPP_