|
Player12
An open source football management simulator
|
One story of the world news feed. More...
#include <news_feed.h>
Public Member Functions | |
| std::string | headline () const |
Public Attributes | |
| GameDateValue | date |
| NewsKind | kind = NewsKind::Transfer |
| LeagueID | country = 0 |
| NewsCompetition | competition |
| std::string | headline_key |
| std::vector< std::string > | args |
| PlayerID | player_id = 0 |
| TeamID | team_id = 0 |
| TeamID | other_team_id = 0 |
| bool | has_match = false |
| GameDateValue | match_date |
| TeamID | home_id = 0 |
| TeamID | away_id = 0 |
| std::uint32_t | weight = 0 |
One story of the world news feed.
Every story is built from saved facts and cites the entities it talks about (a player, one or two clubs, a match). The headline is a language key plus arguments (formatLocalized()), so it follows the UI language.
| std::string NewsItem::headline | ( | ) | const |
Headline in the current language.
| std::vector<std::string> NewsItem::args |
| TeamID NewsItem::away_id = 0 |
| NewsCompetition NewsItem::competition |
| LeagueID NewsItem::country = 0 |
Top league of the country; 0 = continental.
| GameDateValue NewsItem::date |
| bool NewsItem::has_match = false |
The story is a result: the report of this fixture.
| std::string NewsItem::headline_key |
| TeamID NewsItem::home_id = 0 |
| NewsKind NewsItem::kind = NewsKind::Transfer |
| GameDateValue NewsItem::match_date |
| TeamID NewsItem::other_team_id = 0 |
The other club (seller, opponent).
| PlayerID NewsItem::player_id = 0 |
| TeamID NewsItem::team_id = 0 |
The club the story is about.
| std::uint32_t NewsItem::weight = 0 |
Bigger stories first within a day.