|
Player12
An open source football management simulator
|
Class responsible for generating initial data for leagues, teams, and players. More...
#include <datagenerator.h>
Static Public Member Functions | |
| static std::vector< League > | generateLeagues () |
| Generate a collection of leagues. | |
| static std::vector< Team > | generateTeams () |
| Generate a collection of teams. | |
| static std::unordered_map< TeamID, ClubIdentity > | loadClubIdentities () |
| Reads short name, kit colours, stadium, founding year and nickname of every club in the data pack. Missing fields keep the ClubIdentity defaults, so minimal packs still load. | |
| static std::unordered_map< std::string, std::string > | loadClubArticles () |
| Reads the optional Italian article ("article_it": "la", "il", "lo" or "l'") of the clubs that set one, for ClubArticle. | |
| static std::vector< Player > | generatePlayers (const class GameData &gamedata) |
| Loads the predefined players and completes every club's squad with generated players (see WorldGeneration). Club profiles must be assigned first; generation is deterministic for the world seed. | |
Class responsible for generating initial data for leagues, teams, and players.
|
static |
Generate a collection of leagues.
Loads the predefined players and completes every club's squad with generated players (see WorldGeneration). Club profiles must be assigned first; generation is deterministic for the world seed.
|
static |
Generate a collection of teams.
|
static |
Reads the optional Italian article ("article_it": "la", "il", "lo" or "l'") of the clubs that set one, for ClubArticle.
|
static |
Reads short name, kit colours, stadium, founding year and nickname of every club in the data pack. Missing fields keep the ClubIdentity defaults, so minimal packs still load.