diff options
author | zuu <zuu@openttd.org> | 2014-02-06 19:25:39 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2014-02-06 19:25:39 +0000 |
commit | 5165be2698a9d92de4b675b0dece9057e92484bf (patch) | |
tree | 2939c724ef744237783100bf3368f03a195ed572 /src/script/api/script_story_page.cpp | |
parent | ebcc8462b7d09d36ff74843748ab5277a81bc409 (diff) | |
download | openttd-5165be2698a9d92de4b675b0dece9057e92484bf.tar.xz |
(svn r26303) -Add: [nogo] ScriptStoryPageList() - a list of all story pages
Diffstat (limited to 'src/script/api/script_story_page.cpp')
-rw-r--r-- | src/script/api/script_story_page.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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<Text> counter(title); |