|
Player12
An open source football management simulator
|
A news item for the managed club. More...
#include <inbox.h>
Public Member Functions | |
| std::string | formatTitle () const |
| std::string | formatBody () const |
Public Attributes | |
| std::uint32_t | id = 0 |
| GameDateValue | date |
| InboxCategory | category = InboxCategory::General |
| std::string | title_key |
| std::string | body_key |
| std::vector< std::string > | args |
| bool | read = false |
| std::optional< PlayerID > | player_id |
| std::optional< TeamID > | team_id |
A news item for the managed club.
Title and body are stored as language keys plus arguments so that messages follow the current UI language. Arguments starting with '@' are themselves language keys (e.g. "@INJURY_HAMSTRING_STRAIN"). Use formatTitle() and formatBody() to obtain display text.
| std::string InboxMessage::formatBody | ( | ) | const |
Localised body with arguments substituted ({0}, {1}, ...).
| std::string InboxMessage::formatTitle | ( | ) | const |
Localised title with arguments substituted ({0}, {1}, ...).
| std::vector<std::string> InboxMessage::args |
| std::string InboxMessage::body_key |
| InboxCategory InboxMessage::category = InboxCategory::General |
| GameDateValue InboxMessage::date |
| std::uint32_t InboxMessage::id = 0 |
| std::optional<PlayerID> InboxMessage::player_id |
Linked player, if any.
| bool InboxMessage::read = false |
| std::optional<TeamID> InboxMessage::team_id |
Linked club, if any.
| std::string InboxMessage::title_key |