10 #include "../stdafx.h"
11 #include "../story_base.h"
15 #include "../safeguards.h"
29 static const SaveLoad _story_page_elements_desc[] = {
40 static void Save_STORY_PAGE_ELEMENT()
43 SlSetArrayIndex(s->index);
44 SlObject(s, _story_page_elements_desc);
48 static void Load_STORY_PAGE_ELEMENT()
51 uint32 max_sort_value = 0;
54 SlObject(s, _story_page_elements_desc);
62 _story_page_element_next_sort_value = max_sort_value + 1;
65 static const SaveLoad _story_pages_desc[] = {
75 static void Save_STORY_PAGE()
78 SlSetArrayIndex(s->
index);
83 static void Load_STORY_PAGE()
86 uint32 max_sort_value = 0;
97 _story_page_next_sort_value = max_sort_value + 1;
100 extern const ChunkHandler _story_page_chunk_handlers[] = {
101 {
'STPE', Save_STORY_PAGE_ELEMENT, Load_STORY_PAGE_ELEMENT,
nullptr,
nullptr, CH_ARRAY},
102 {
'STPA', Save_STORY_PAGE, Load_STORY_PAGE,
nullptr,
nullptr, CH_ARRAY |
CH_LAST},