OpenTTD Source: NewsItem Struct Reference

OpenTTD Source 1.11.0-RC1

Data Fields
NewsItem Struct Reference

Information about a single item of news. More...

`#include <news_type.h>`

## Data Fields
NewsItem * | prev
| Previous news item.
NewsItem * | next
| Next news item.
StringID | string_id
| Message text.
Date | date
| Date of the news.
NewsType | type
| Type of the news.
NewsFlag | flags
| NewsFlags bits. More...
NewsReferenceType | reftype1
| Type of ref1.
NewsReferenceType | reftype2
| Type of ref2.
uint32 | ref1
| Reference 1 to some object: Used for a possible viewport, scrolling after clicking on the news, and for deleting the news when the object is deleted.
uint32 | ref2
| Reference 2 to some object: Used for scrolling after clicking on the news, and for deleting the news when the object is deleted.
void * | free_data
| Data to be freed when the news item has reached its end.
uint64 | params [10]
| Parameters for string resolving.

## Detailed Description

Information about a single item of news.

Definition at line 119 of file news_type.h.

## Field Documentation

## ◆ flags

NewsFlag NewsItem::flags

NewsFlags bits.

See also
  NewsFlag

Definition at line 125 of file news_type.h.

Referenced by ChangeVehicleNews().

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

- src/news_type.h