OpenTTD Source 20260206-master-g4d4e37dbf1
StoryPage Struct Reference

Struct about stories, current and completed. More...

#include <story_base.h>

Inheritance diagram for StoryPage:

Public Member Functions

 StoryPage (StoryPageID index)
 StoryPage (StoryPageID index, uint32_t sort_value, TimerGameCalendar::Date date, CompanyID company, const EncodedString &title)

Data Fields

uint32_t sort_value = 0
 A number that increases for every created story page. Used for sorting. The id of a story page is the pool index.
TimerGameCalendar::Date date {}
 Date when the page was created.
CompanyID company = CompanyID::Invalid()
 StoryPage is for a specific company; CompanyID::Invalid() if it is global.
EncodedString title
 Title of story page.

Detailed Description

Struct about stories, current and completed.

Definition at line 164 of file story_base.h.

Constructor & Destructor Documentation

◆ StoryPage() [1/2]

StoryPage::StoryPage ( StoryPageID index)
inline

Definition at line 171 of file story_base.h.

◆ StoryPage() [2/2]

StoryPage::StoryPage ( StoryPageID index,
uint32_t sort_value,
TimerGameCalendar::Date date,
CompanyID company,
const EncodedString & title )
inline

Definition at line 172 of file story_base.h.

◆ ~StoryPage()

StoryPage::~StoryPage ( )

Definition at line 40 of file story.cpp.

Field Documentation

◆ company

CompanyID StoryPage::company = CompanyID::Invalid()

StoryPage is for a specific company; CompanyID::Invalid() if it is global.

Definition at line 167 of file story_base.h.

Referenced by CmdShowStoryPage(), and CmdStoryPageButton().

◆ date

TimerGameCalendar::Date StoryPage::date {}

Date when the page was created.

Definition at line 166 of file story_base.h.

Referenced by CmdSetStoryPageDate(), and StoryBookWindow::DrawWidget().

◆ sort_value

uint32_t StoryPage::sort_value = 0

A number that increases for every created story page. Used for sorting. The id of a story page is the pool index.

Definition at line 165 of file story_base.h.

Referenced by STPAChunkHandler::Load(), and StoryBookWindow::PageOrderSorter().

◆ title


The documentation for this struct was generated from the following files: