Code handling saving and loading of rail type label mappings.
More...
Go to the source code of this file.
|
static bool | NeedRailTypeConversion () |
| Test if any saved rail type labels are different to the currently loaded rail types, which therefore requires conversion. More...
|
|
void | AfterLoadLabelMaps () |
|
static void | Save_RAIL () |
|
static void | Load_RAIL () |
|
|
static std::vector< RailTypeLabel > | _railtype_list |
|
static const SaveLoad | _label_object_desc [] |
|
const ChunkHandler | _labelmaps_chunk_handlers [] |
|
Code handling saving and loading of rail type label mappings.
Definition in file labelmaps_sl.cpp.
◆ NeedRailTypeConversion()
static bool NeedRailTypeConversion |
( |
| ) |
|
|
static |
Test if any saved rail type labels are different to the currently loaded rail types, which therefore requires conversion.
- Returns
- true if (and only if) conversion due to rail type changes is needed.
Definition at line 25 of file labelmaps_sl.cpp.
◆ _label_object_desc
Initial value:= {
}
#define SLE_END()
End marker of a struct/class save or load.
Container for a label for SaveLoad system.
#define SLE_VAR(base, variable, type)
Storage of a variable in every version of a savegame.
Definition at line 90 of file labelmaps_sl.cpp.
◆ _labelmaps_chunk_handlers
Initial value:= {
{
'RAIL', Save_RAIL, Load_RAIL,
nullptr,
nullptr, CH_ARRAY |
CH_LAST},
}
Last chunk in this array.