OpenTTD Source 20261112-master-gbcbec5e63f
autoreplace_sl.cpp File Reference

Code handling saving and loading of autoreplace rules. More...

#include "../stdafx.h"
#include "saveload.h"
#include "compat/autoreplace_sl_compat.h"
#include "../autoreplace_base.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  ERNWChunkHandler

Functions

const ChunkHandlerTable _autoreplace_chunk_handlers (autoreplace_chunk_handlers)

Variables

static const SaveLoad _engine_renew_desc []
static const ERNWChunkHandler ERNW
static const ChunkHandlerRef autoreplace_chunk_handlers []

Detailed Description

Code handling saving and loading of autoreplace rules.

Definition in file autoreplace_sl.cpp.

Variable Documentation

◆ _engine_renew_desc

const SaveLoad _engine_renew_desc[]
static
Initial value:
= {
}
#define SLE_OBJECT_ADDRESS(base, variable)
Macro to be able to pass the variable type and construct the SaveLoad::AddressFunction given a base c...
Definition saveload.h:753
@ VehicleGroups
Saveload version: 60, SVN revision: 9874 Arbitrary grouping, by the player, of vehicles.
Definition saveload.h:121
@ AutoreplaceWhenOldTreeLimit
Saveload version: 175, SVN revision: 24136 Autoreplace vehicle only when they are old,...
Definition saveload.h:259
Struct to store engine replacements.
static SaveLoad Variable(std::string name, AddressFunction< T > address_func, SaveLoadVersion from=SaveLoadVersion::MinVersion, SaveLoadVersion to=SaveLoadVersion::MaxVersion, size_t extra=0)
Storage of a variable in some savegame versions.
Definition saveload.h:925
static SaveLoad Reference(std::string name, AddressFunction< T > address_func, SaveLoadVersion from=SaveLoadVersion::MinVersion, SaveLoadVersion to=SaveLoadVersion::MaxVersion)
Storage of a reference to a pool element in some savegame versions.
Definition saveload.h:950

Definition at line 19 of file autoreplace_sl.cpp.

◆ autoreplace_chunk_handlers

const ChunkHandlerRef autoreplace_chunk_handlers[]
static
Initial value:
= {
ERNW,
}

Definition at line 69 of file autoreplace_sl.cpp.

◆ ERNW

const ERNWChunkHandler ERNW
static

Definition at line 68 of file autoreplace_sl.cpp.