|
@@ -31,13 +31,12 @@ static const SaveLoad _story_page_elemen
|
|
|
SLE_CONDVAR(StoryPageElement, sort_value, SLE_UINT32, SLV_185, SL_MAX_VERSION),
|
|
|
SLE_VAR(StoryPageElement, page, SLE_UINT16),
|
|
|
SLE_CONDVAR(StoryPageElement, type, SLE_FILE_U16 | SLE_VAR_U8, SL_MIN_VERSION, SLV_185),
|
|
|
SLE_CONDVAR(StoryPageElement, type, SLE_UINT8, SLV_185, SL_MAX_VERSION),
|
|
|
SLE_VAR(StoryPageElement, referenced_id, SLE_UINT32),
|
|
|
SLE_STR(StoryPageElement, text, SLE_STR | SLF_ALLOW_CONTROL, 0),
|
|
|
SLE_END()
|
|
|
};
|
|
|
|
|
|
static void Save_STORY_PAGE_ELEMENT()
|
|
|
{
|
|
|
for (StoryPageElement *s : StoryPageElement::Iterate()) {
|
|
|
SlSetArrayIndex(s->index);
|
|
@@ -66,13 +65,12 @@ static const SaveLoad _story_pages_desc[
|
|
|
SLE_CONDVAR(StoryPage, sort_value, SLE_FILE_U16 | SLE_VAR_U32, SL_MIN_VERSION, SLV_185),
|
|
|
SLE_CONDVAR(StoryPage, sort_value, SLE_UINT32, SLV_185, SL_MAX_VERSION),
|
|
|
SLE_VAR(StoryPage, date, SLE_UINT32),
|
|
|
SLE_CONDVAR(StoryPage, company, SLE_FILE_U16 | SLE_VAR_U8, SL_MIN_VERSION, SLV_185),
|
|
|
SLE_CONDVAR(StoryPage, company, SLE_UINT8, SLV_185, SL_MAX_VERSION),
|
|
|
SLE_STR(StoryPage, title, SLE_STR | SLF_ALLOW_CONTROL, 0),
|
|
|
SLE_END()
|
|
|
};
|
|
|
|
|
|
static void Save_STORY_PAGE()
|
|
|
{
|
|
|
for (StoryPage *s : StoryPage::Iterate()) {
|
|
|
SlSetArrayIndex(s->index);
|