summaryrefslogtreecommitdiff
path: root/src/script/api/script_object.hpp
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-06-09 12:19:09 +0000
committerzuu <zuu@openttd.org>2013-06-09 12:19:09 +0000
commit9aa1bf026443ddc65ab4381e86c294943ddc30d8 (patch)
tree82af61f4b6f346bd71046a5d6fa6bab1f49b3d34 /src/script/api/script_object.hpp
parentbea60988c67b40fb5b3058990779a4d572511224 (diff)
downloadopenttd-9aa1bf026443ddc65ab4381e86c294943ddc30d8.tar.xz
(svn r25342) -Add: StoryPage data structures and GS API
Diffstat (limited to 'src/script/api/script_object.hpp')
-rw-r--r--src/script/api/script_object.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/script/api/script_object.hpp b/src/script/api/script_object.hpp
index a2631dd3d..482e76f66 100644
--- a/src/script/api/script_object.hpp
+++ b/src/script/api/script_object.hpp
@@ -167,6 +167,16 @@ protected:
static GoalID GetNewGoalID();
/**
+ * Get the latest stored new_story_page_id.
+ */
+ static StoryPageID GetNewStoryPageID();
+
+ /**
+ * Get the latest stored new_story_page_id.
+ */
+ static StoryPageID GetNewStoryPageElementID();
+
+ /**
* Store a allow_do_command per company.
* @param allow The new allow.
*/
@@ -266,6 +276,18 @@ private:
* @param goal_id The new GoalID.
*/
static void SetNewGoalID(GoalID goal_id);
+
+ /**
+ * Store a new_story_page_id per company.
+ * @param story_page_id The new StoryPageID.
+ */
+ static void SetNewStoryPageID(StoryPageID story_page_id);
+
+ /**
+ * Store a new_story_page_id per company.
+ * @param story_page_id The new StoryPageID.
+ */
+ static void SetNewStoryPageElementID(StoryPageElementID story_page_element_id);
};
#endif /* SCRIPT_OBJECT_HPP */