10#ifndef SAVELOAD_NEWGRF_SL_H
11#define SAVELOAD_NEWGRF_SL_H
26 void Save()
const override;
27 void Load()
const override;
This file simplifies and embeds a common mechanism of loading/saving and mapping of grf entities.
Functions/types related to saving and loading games.
ChunkType
Type of a chunk.
@ Table
An Array with a header describing the elements.
Label< struct ChunkIdTag > ChunkId
Label/unique identifier for each of the chunks in the savegame.
ChunkHandler(ChunkId id, ChunkType type)
Create this ChunkHandler.
ChunkId id
Unique ID (4 letters).
void Load() const override
Load a GRF ID + local id -> OpenTTD's id mapping.
NewGRFMappingChunkHandler(ChunkId id, OverrideManagerBase &mapping)
Create the handler.
OverrideManagerBase & mapping
The override manager to save/load.
void Save() const override
Save a GRF ID + local id -> OpenTTD's id mapping.