OpenTTD Source: src/saveload/compat/company_sl_compat.h File Reference

OpenTTD Source 15.0-RC2

Variables
company_sl_compat.h File Reference

Loading of company chunks before table headers were added. More...

`#include "../saveload.h"`

Go to the source code of this file.

## Variables
const SaveLoadCompat | _company_old_ai_buildrec_compat []
| Original field order for SlCompanyOldAIBuildRec.
const SaveLoadCompat | _company_old_ai_compat []
| Original field order for SlCompanyOldAI.
const SaveLoadCompat | _company_settings_compat []
| Original field order for SlCompanySettings.
const SaveLoadCompat | _company_economy_compat []
| Original field order for SlCompanyEconomy.
const SaveLoadCompat | _company_liveries_compat []
| Original field order for SlCompanyLiveries.
const SaveLoadCompat | _company_sl_compat []
| Original field order for company_desc.

## Detailed Description

Loading of company chunks before table headers were added.

Definition in file company_sl_compat.h.

## Variable Documentation

## ◆ _company_economy_compat

const SaveLoadCompat _company_economy_compat[]

Initial value:
= {
SLC_VAR("income"),
SLC_VAR("expenses"),
SLC_VAR("company_value"),
SLC_VAR("delivered_cargo[NUM_CARGO - 1]"),
SLC_VAR("delivered_cargo"),
SLC_VAR("performance_history"),
}
SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition saveload.h:1262

Original field order for SlCompanyEconomy.

Definition at line 73 of file company_sl_compat.h.

## ◆ _company_liveries_compat

const SaveLoadCompat _company_liveries_compat[]

Initial value:
= {
SLC_VAR("in_use"),
SLC_VAR("colour1"),
SLC_VAR("colour2"),
}

Original field order for SlCompanyLiveries.

Definition at line 83 of file company_sl_compat.h.

## ◆ _company_old_ai_buildrec_compat

const SaveLoadCompat _company_old_ai_buildrec_compat[]

Initial value:
= {
SLC_NULL(2, SL_MIN_VERSION, SLV_6),
SLC_NULL(4, SLV_6, SLV_107),
SLC_NULL(2, SL_MIN_VERSION, SLV_6),
SLC_NULL(4, SLV_6, SLV_107),
SLC_NULL(8, SL_MIN_VERSION, SLV_107),
}
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition saveload.h:1270
SLV_107
@ SLV_107
107 15027
Definition saveload.h:171
SLV_6
@ SLV_6
6.0 1721 6.1 1768
Definition saveload.h:46
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition saveload.h:31

Original field order for SlCompanyOldAIBuildRec.

Definition at line 16 of file company_sl_compat.h.

## ◆ _company_old_ai_compat

const SaveLoadCompat _company_old_ai_compat[]

Initial value:
= {
SLC_NULL(2, SL_MIN_VERSION, SLV_107),
SLC_NULL(2, SL_MIN_VERSION, SLV_13),
SLC_NULL(4, SLV_13, SLV_107),
SLC_NULL(8, SL_MIN_VERSION, SLV_107),
SLC_VAR("num_build_rec"),
SLC_NULL(3, SL_MIN_VERSION, SLV_107),
SLC_NULL(2, SL_MIN_VERSION, SLV_6),
SLC_NULL(4, SLV_6, SLV_107),
SLC_NULL(2, SL_MIN_VERSION, SLV_6),
SLC_NULL(4, SLV_6, SLV_107),
SLC_NULL(2, SL_MIN_VERSION, SLV_107),
SLC_NULL(2, SL_MIN_VERSION, SLV_6),
SLC_NULL(4, SLV_6, SLV_107),
SLC_NULL(2, SL_MIN_VERSION, SLV_6),
SLC_NULL(4, SLV_6, SLV_107),
SLC_NULL(2, SL_MIN_VERSION, SLV_107),
SLC_NULL(2, SL_MIN_VERSION, SLV_69),
SLC_NULL(4, SLV_69, SLV_107),
SLC_NULL(18, SL_MIN_VERSION, SLV_107),
SLC_NULL(20, SL_MIN_VERSION, SLV_107),
SLC_NULL(32, SL_MIN_VERSION, SLV_107),
SLC_NULL(64, SLV_2, SLV_107),
SLC_VAR("buildrec"),
}
SLV_69
@ SLV_69
69 10319
Definition saveload.h:125
SLV_13
@ SLV_13
13.1 2080 0.4.0, 0.4.0.1
Definition saveload.h:56
SLV_2
@ SLV_2
2.0 0.3.0 2.1 0.3.1, 0.3.2
Definition saveload.h:34

Original field order for SlCompanyOldAI.

Definition at line 25 of file company_sl_compat.h.

## ◆ _company_settings_compat

const SaveLoadCompat _company_settings_compat[]

Initial value:
= {
SLC_NULL(512, SLV_16, SLV_19),
SLC_VAR("engine_renew_list"),
SLC_VAR("settings.engine_renew"),
SLC_VAR("settings.engine_renew_months"),
SLC_VAR("settings.engine_renew_money"),
SLC_VAR("settings.renew_keep_length"),
SLC_VAR("settings.vehicle.servint_ispercent"),
SLC_VAR("settings.vehicle.servint_trains"),
SLC_VAR("settings.vehicle.servint_roadveh"),
SLC_VAR("settings.vehicle.servint_aircraft"),
SLC_VAR("settings.vehicle.servint_ships"),
SLC_NULL(63, SLV_2, SLV_144),
}
SLV_16
@ SLV_16
16.0 2817 16.1 3155
Definition saveload.h:60
SLV_144
@ SLV_144
144 20334
Definition saveload.h:215
SLV_19
@ SLV_19
19 3396
Definition saveload.h:65

Original field order for SlCompanySettings.

Definition at line 57 of file company_sl_compat.h.

## ◆ _company_sl_compat

const SaveLoadCompat _company_sl_compat[]

Original field order for company_desc.

Definition at line 90 of file company_sl_compat.h.

Referenced by PLYRChunkHandler::Load(), and PLYRChunkHandler::LoadCheck().