Code handling saving and loading of rail type label mappings. More...
#include "../stdafx.h"
#include "../station_map.h"
#include "../tunnelbridge_map.h"
#include "saveload.h"
Go to the source code of this file.
Data Structures | |
struct | LabelObject |
Container for a label for SaveLoad system. More... | |
Functions | |
static bool | NeedRailTypeConversion () |
Test if any saved rail type labels are different to the currently loaded rail types, which therefore requires conversion. | |
void | AfterLoadLabelMaps () |
static void | Save_RAIL () |
static void | Load_RAIL () |
Variables | |
static SmallVector < RailTypeLabel, RAILTYPE_END > | _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.
static bool NeedRailTypeConversion | ( | ) | [static] |
Test if any saved rail type labels are different to the currently loaded rail types, which therefore requires conversion.
Definition at line 25 of file labelmaps_sl.cpp.
References GetRailTypeInfo(), RailtypeInfo::label, SmallVector< T, S >::Length(), and RAILTYPE_END.
const SaveLoad _label_object_desc[] [static] |
{ SLE_VAR(LabelObject, label, SLE_UINT32), SLE_END(), }
Definition at line 90 of file labelmaps_sl.cpp.
const ChunkHandler _labelmaps_chunk_handlers[] |
{
{ 'RAIL', Save_RAIL, Load_RAIL, NULL, CH_ARRAY | CH_LAST},
}