OpenTTD Source 20261129-master-g72a8bdc861
autoreplace_sl.cpp File Reference

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

#include "../stdafx.h"
#include "saveload.h"
#include "saveload_internal.h"
#include "compat/autoreplace_sl_compat.h"
#include "../autoreplace_type.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

OldEngineRenewPool _old_engine_renew_saveload_pool
 Temporary storage for conversion from old engine renew pool.
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

◆ _old_engine_renew_saveload_pool

OldEngineRenewPool _old_engine_renew_saveload_pool

Temporary storage for conversion from old engine renew pool.

Definition at line 21 of file autoreplace_sl.cpp.

Referenced by AfterLoadGame(), GRPSChunkHandler::FixPointers(), SlCompanySettings::FixPointers(), ERNWChunkHandler::Load(), and ResetSaveloadData().

◆ autoreplace_chunk_handlers

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

Definition at line 59 of file autoreplace_sl.cpp.

◆ ERNW

const ERNWChunkHandler ERNW
static

Definition at line 58 of file autoreplace_sl.cpp.