OpenTTD Source 20241224-master-gee860a5c8e
|
Code handling saving and loading of company data. More...
#include "../stdafx.h"
#include "saveload.h"
#include "compat/company_sl_compat.h"
#include "../company_func.h"
#include "../company_manager_face.h"
#include "../fios.h"
#include "../tunnelbridge_map.h"
#include "../tunnelbridge.h"
#include "../station_base.h"
#include "../strings_func.h"
#include "table/strings.h"
#include "../safeguards.h"
Go to the source code of this file.
Data Structures | |
struct | CompanyOldAI |
class | SlCompanyOldAIBuildRec |
class | SlCompanyOldAI |
class | SlCompanySettings |
class | SlCompanyEconomy |
class | SlCompanyOldEconomy |
class | SlCompanyLiveries |
class | SlAllowListData |
struct | SlAllowListData::KeyWrapper |
struct | PLYRChunkHandler |
Functions | |
CompanyManagerFace | ConvertFromOldCompanyManagerFace (uint32_t face) |
Converts an old company manager's face format to the new company manager's face format. | |
void | AfterLoadCompanyStats () |
Rebuilding of company statistics after loading a savegame. | |
const ChunkHandlerTable | _company_chunk_handlers (company_chunk_handlers) |
Variables | |
static const SaveLoad | _company_desc [] |
static const PLYRChunkHandler | PLYR |
static const ChunkHandlerRef | company_chunk_handlers [] |
Code handling saving and loading of company data.
Definition in file company_sl.cpp.
void AfterLoadCompanyStats | ( | ) |
Rebuilding of company statistics after loading a savegame.
Definition at line 96 of file company_sl.cpp.
Referenced by AfterLoadGame(), CheckCaches(), and ReloadNewGRFData().
CompanyManagerFace ConvertFromOldCompanyManagerFace | ( | uint32_t | face | ) |
Converts an old company manager's face format to the new company manager's face format.
Meaning of the bits in the old face (some bits are used in several times):
face | the face in the old format |
Definition at line 45 of file company_sl.cpp.
References ClampU(), ETHNICITY_BLACK, GB(), GE_WF, GE_WM, GENDER_FEMALE, HasBit(), ScaleCompanyManagerFaceValue(), SetBit(), and SetCompanyManagerFaceBits().
Referenced by AfterLoadGame().
|
static |
Definition at line 461 of file company_sl.cpp.
|
static |
Definition at line 587 of file company_sl.cpp.
|
static |
Definition at line 586 of file company_sl.cpp.