OpenTTD Source 20260711-master-g3fb3006dff
newgrf_sl.cpp File Reference

Code handling saving and loading of newgrf config. More...

#include "../stdafx.h"
#include "saveload.h"
#include "compat/newgrf_sl_compat.h"
#include "newgrf_sl.h"
#include "../fios.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  NGRFChunkHandler

Functions

const ChunkHandlerTable _newgrf_chunk_handlers (newgrf_chunk_handlers)

Variables

static const SaveLoad _newgrf_mapping_desc []
 Save and load the mapping between a spec and the NewGRF it came from.
static const NGRFChunkHandler NGRF
static const ChunkHandlerRef newgrf_chunk_handlers []

Detailed Description

Code handling saving and loading of newgrf config.

Definition in file newgrf_sl.cpp.

Variable Documentation

◆ _newgrf_mapping_desc

const SaveLoad _newgrf_mapping_desc[]
static
Initial value:
= {
}
@ U16
A 16 bit unsigned int.
Definition saveload.h:682
@ U8
A 8 bit unsigned int.
Definition saveload.h:662
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
Definition saveload.h:904
@ ExtendEntityMapping
Saveload version: 311, GitHub pull request: 10672 Extend entity mapping range.
Definition saveload.h:353
@ MinVersion
First savegame version.
Definition saveload.h:31
@ MaxVersion
Highest possible saveload version.
Definition saveload.h:421
#define SLE_VAR(base, variable, type)
Storage of a variable in every version of a savegame.
Definition saveload.h:1017
Maps an entity id stored on the map to a GRF file.
static constexpr VarType U16
Store a 16 bits unsigned int.
Definition saveload.h:754
static constexpr VarType U32
Store a 32 bits unsigned int.
Definition saveload.h:756

Save and load the mapping between a spec and the NewGRF it came from.

Definition at line 21 of file newgrf_sl.cpp.

Referenced by NewGRFMappingChunkHandler::Load(), and NewGRFMappingChunkHandler::Save().

◆ newgrf_chunk_handlers

const ChunkHandlerRef newgrf_chunk_handlers[]
static
Initial value:
= {
NGRF,
}

Definition at line 146 of file newgrf_sl.cpp.

◆ NGRF

const NGRFChunkHandler NGRF
static

Definition at line 145 of file newgrf_sl.cpp.