From 5165be2698a9d92de4b675b0dece9057e92484bf Mon Sep 17 00:00:00 2001 From: zuu Date: Thu, 6 Feb 2014 19:25:39 +0000 Subject: (svn r26303) -Add: [nogo] ScriptStoryPageList() - a list of all story pages --- src/script/api/script_story_page.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/script/api/script_story_page.cpp') diff --git a/src/script/api/script_story_page.cpp b/src/script/api/script_story_page.cpp index c6d4582a5..8382d43d7 100644 --- a/src/script/api/script_story_page.cpp +++ b/src/script/api/script_story_page.cpp @@ -98,6 +98,13 @@ type == ::SPET_TEXT || type == ::SPET_LOCATION ? text->GetEncodedText() : NULL); } +/* static */ uint32 ScriptStoryPage::GetPageSort(StoryPageID story_page_id) +{ + EnforcePrecondition(false, IsValidStoryPage(story_page_id)); + + return StoryPage::Get(story_page_id)->sort_value; +} + /* static */ bool ScriptStoryPage::SetTitle(StoryPageID story_page_id, Text *title) { CCountedPtr counter(title); -- cgit v1.2.3-54-g00ecf