From 77b7366c2947a3f2545d5542021be1cc203a74e8 Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 19 Dec 2011 20:59:36 +0000 Subject: (svn r23622) -Add: a set of events to trigger in a GameScript --- src/game/game.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/game/game.hpp') diff --git a/src/game/game.hpp b/src/game/game.hpp index ac85fe133..9e13bc5b6 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -18,6 +18,8 @@ /** A list that maps AI names to their AIInfo object. */ typedef std::map ScriptInfoList; +#include "../script/api/script_event_types.hpp" + /** * Main Game class. Contains all functions needed to start, stop, save and load Game Scripts. */ @@ -43,6 +45,11 @@ public: */ static void Uninitialize(bool keepConfig); + /** + * Queue a new event for a Game Script. + */ + static void NewEvent(class ScriptEvent *event); + /** * Get the current GameScript instance. */ -- cgit v1.2.3-70-g09d2