Player12
An open source football management simulator
Loading...
Searching...
No Matches
StoryState Struct Reference

Persisted state of the story engine. More...

#include <stories.h>

Public Attributes

std::vector< StoryRecord > records
 
std::vector< StoryChoice > choices
 
std::vector< Dilemma > dilemmas
 
std::vector< FollowedPlayer > follows
 
std::unordered_map< PlayerID, std::int32_t > injury_start
 
std::unordered_map< PlayerID, std::int32_t > comeback_due
 
std::vector< std::pair< PlayerID, std::int32_t > > bids
 

Detailed Description

Persisted state of the story engine.

Member Data Documentation

◆ bids

std::vector<std::pair<PlayerID, std::int32_t> > StoryState::bids

Recent bids for managed players: (player, day).

◆ choices

std::vector<StoryChoice> StoryState::choices

◆ comeback_due

std::unordered_map<PlayerID, std::int32_t> StoryState::comeback_due

Returned from a long injury, story due at the next appearance: days out.

◆ dilemmas

std::vector<Dilemma> StoryState::dilemmas

Decision moments, oldest first (open, answered and lapsed).

◆ follows

std::vector<FollowedPlayer> StoryState::follows

◆ injury_start

std::unordered_map<PlayerID, std::int32_t> StoryState::injury_start

Managed players currently injured: first day out.

◆ records

std::vector<StoryRecord> StoryState::records

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