22 extern uint32 _story_page_element_next_sort_value;
23 extern uint32 _story_page_next_sort_value;
81 if (!this->CleaningPool()) {
83 if (spe->page == this->index)
delete spe;
StoryPageElement()
We need an (empty) constructor so struct isn't zeroed (as C++ standard states)
Helper template class that makes basic properties of given enumeration type visible from outsize...
Owner
Enum for all companies/owners.
An element that references a tile along with a one-line text.
StoryPageID page
Id of the page which the page element belongs to.
~StoryPageElement()
(Empty) destructor has to be defined else operator delete might be called with nullptr parameter ...
uint32 sort_value
A number that increases for every created story page element. Used for sorting. The id of a story pag...
Date date
Date when the page was created.
~StoryPage()
(Empty) destructor has to be defined else operator delete might be called with nullptr parameter ...
char * title
Title of story page.
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle...
basic types related to story pages
Struct about story page elements.
uint32 referenced_id
Id of referenced object (location, goal etc.)
Struct about stories, current and completed.
Informative template class exposing basic enumeration properties used by several other templates belo...
StoryPageElementType type
Type of page element.
uint32 sort_value
A number that increases for every created story page. Used for sorting. The id of a story page is the...
Base class for all PoolItems.
Base class for all pools.
An element that references a goal.
static Pool::IterateWrapper< Titem > Iterate(size_t from=0)
Returns an iterable ensemble of all valid Titem.
Types related to companies.
Types related to the dates in OpenTTD.
int32 Date
The type to store our dates in.
static void free(const void *ptr)
Version of the standard free that accepts const pointers.
char * text
Static content text of page element.
StoryPage()
We need an (empty) constructor so struct isn't zeroed (as C++ standard states)
uint16 StoryPageID
ID of a story page.
CompanyID company
StoryPage is for a specific company; INVALID_COMPANY if it is global.