OpenTTD Source 20260711-master-g3fb3006dff
company_sl_compat.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
9
10#ifndef SAVELOAD_COMPAT_COMPANY_H
11#define SAVELOAD_COMPAT_COMPANY_H
12
13#include "../saveload.h"
14
23
30 SLC_VAR("num_build_rec"),
32
38
44
47
51
53 SLC_VAR("buildrec"),
54};
55
59 SLC_VAR("engine_renew_list"),
60 SLC_VAR("settings.engine_renew"),
61 SLC_VAR("settings.engine_renew_months"),
62 SLC_VAR("settings.engine_renew_money"),
63 SLC_VAR("settings.renew_keep_length"),
64 SLC_VAR("settings.vehicle.servint_ispercent"),
65 SLC_VAR("settings.vehicle.servint_trains"),
66 SLC_VAR("settings.vehicle.servint_roadveh"),
67 SLC_VAR("settings.vehicle.servint_aircraft"),
68 SLC_VAR("settings.vehicle.servint_ships"),
70};
71
74 SLC_VAR("income"),
75 SLC_VAR("expenses"),
76 SLC_VAR("company_value"),
77 SLC_VAR("delivered_cargo[NUM_CARGO - 1]"),
78 SLC_VAR("delivered_cargo"),
79 SLC_VAR("performance_history"),
80};
81
84 SLC_VAR("in_use"),
85 SLC_VAR("colour1"),
86 SLC_VAR("colour2"),
87};
88
91 SLC_VAR("name_2"),
92 SLC_VAR("name_1"),
93 SLC_VAR("name"),
94 SLC_VAR("president_name_1"),
95 SLC_VAR("president_name_2"),
96 SLC_VAR("president_name"),
97 SLC_VAR("face"),
98 SLC_VAR("money"),
99 SLC_VAR("current_loan"),
100 SLC_VAR("colour"),
101 SLC_VAR("money_fraction"),
103 SLC_VAR("block_preview"),
106 SLC_VAR("location_of_HQ"),
107 SLC_VAR("last_build_coordinate"),
108 SLC_VAR("inaugurated_year"),
110 SLC_VAR("num_valid_stat_ent"),
111 SLC_VAR("months_of_bankruptcy"),
112 SLC_VAR("bankrupt_asked"),
113 SLC_VAR("bankrupt_timeout"),
114 SLC_VAR("bankrupt_value"),
115 SLC_VAR("yearly_expenses"),
116 SLC_VAR("is_ai"),
119 SLC_VAR("terraform_limit"),
120 SLC_VAR("clear_limit"),
121 SLC_VAR("tree_limit"),
122 SLC_VAR("settings"),
123 SLC_VAR("old_ai"),
124 SLC_VAR("cur_economy"),
125 SLC_VAR("old_economy"),
126 SLC_VAR("liveries"),
127};
128
129#endif /* SAVELOAD_COMPAT_COMPANY_H */
const SaveLoadCompat _company_liveries_compat[]
Original field order for SlCompanyLiveries.
const SaveLoadCompat _company_old_ai_compat[]
Original field order for SlCompanyOldAI.
const SaveLoadCompat _company_old_ai_buildrec_compat[]
Original field order for SlCompanyOldAIBuildRec.
const SaveLoadCompat _company_economy_compat[]
Original field order for SlCompanyEconomy.
const SaveLoadCompat _company_sl_compat[]
Original field order for company_desc.
const SaveLoadCompat _company_settings_compat[]
Original field order for SlCompanySettings.
Functions/types related to saving and loading games.
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition saveload.h:1262
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition saveload.h:1270
@ VehicleCurrencyStationChanges
Saveload version: 2.0, release: 0.3.0 Adding vehicle state, larger currency size for statistics,...
Definition saveload.h:34
@ TownTolerancePauseMode
Saveload version: 4.0, SVN revision: 1 Town council tolerance and pause mode.
Definition saveload.h:38
@ CountIndividualCargoes
Saveload version: 170, SVN revision: 23826 Store the count of individual cargo delivery for a period...
Definition saveload.h:248
@ EngineRenewPool
Saveload version: 19, SVN revision: 3396 Engine renews are now stored in a pool.
Definition saveload.h:66
@ MoreCargoPackets
Saveload version: 69, SVN revision: 10319 Allow more than ~65k cargo packets.
Definition saveload.h:126
@ TableChunks
Saveload version: 295, GitHub pull request: 9322 Introduction of ChunkType::Table and ChunkType::Spa...
Definition saveload.h:334
@ MultipleRoadStops
Saveload version: 6.0, SVN revision: 1721 Multi tile road stops, and some map size related fixes.
Definition saveload.h:47
@ MinVersion
First savegame version.
Definition saveload.h:31
@ VeryLowTownIndustryNumber
Saveload version: 58, SVN revision: 9762 Difficulty settings for very low number of industries and t...
Definition saveload.h:113
@ SplitHQ
Saveload version: 112, SVN revision: 15290 Split the behaviour of headquarters from the other unmova...
Definition saveload.h:178
@ LargerAIStateCounter
Saveload version: 13.1, SVN revision: 2080, releases: 0.4.0, 0.4.0.1 AI state counter increased due ...
Definition saveload.h:57
@ EngineRenew
Saveload version: 16.0, SVN revision: 2817 Automatic replacing/renewing of vehicles.
Definition saveload.h:61
@ ReorderUnmovableRemoveReserved
Saveload version: 144, SVN revision: 20334 Reorder map bits of unmovable tiles and remove unused res...
Definition saveload.h:216
@ Yapp
Saveload version: 100, SVN revision: 13952 New version of path based signals.
Definition saveload.h:164
@ FixCompanyCargoTypes
Saveload version: 94, SVN revision: 12816 The company's cargo types should have increased in since w...
Definition saveload.h:156
@ NoAI
Saveload version: 107, SVN revision: 15027 Replace built in cheating AI with framework for externall...
Definition saveload.h:172
SaveLoad information for backwards compatibility.
Definition saveload.h:807