10 #include "../stdafx.h"
15 #include "../tile_type.h"
17 #include "../safeguards.h"
21 static const SaveLoad _animated_tile_desc[] = {
44 for (
int i = 0; i < 256; i++) {
45 if (anim_list[i] == 0)
break;
73 extern const ChunkHandlerTable _animated_tile_chunk_handlers(animated_tile_chunk_handlers);
std::vector< TileIndex > _animated_tiles
The table/list with animated tiles.
Loading for animated_tile chunks before table headers were added.
const SaveLoadCompat _animated_tile_sl_compat[]
Original field order for _animated_tile_desc.
int SlIterateArray()
Iterate through the elements of an array and read the whole thing.
void SlCopy(void *object, size_t length, VarType conv)
Copy a list of SL_VARs to/from a savegame.
size_t SlGetFieldLength()
Get the length of the current object.
void SlErrorCorrupt(const std::string &msg)
Error handler for corrupt savegames.
std::vector< SaveLoad > SlCompatTableHeader(const SaveLoadTable &slt, const SaveLoadCompatTable &slct)
Load a table header in a savegame compatible way.
std::vector< SaveLoad > SlTableHeader(const SaveLoadTable &slt)
Save or Load a table header.
void SlGlobList(const SaveLoadTable &slt)
Save or Load (a list of) global variables.
Functions/types related to saving and loading games.
std::reference_wrapper< const ChunkHandler > ChunkHandlerRef
A reference to ChunkHandler.
std::span< const ChunkHandlerRef > ChunkHandlerTable
A table of ChunkHandler entries.
#define SLEG_VECTOR(name, variable, type)
Storage of a global vector of SL_VAR elements in every savegame version.
bool IsSavegameVersionBefore(SaveLoadVersion major, uint8_t minor=0)
Checks whether the savegame is below major.
@ SLV_RIFF_TO_ARRAY
294 PR#9375 Changed many CH_RIFF chunks to CH_ARRAY chunks.
void Save() const override
Save the chunk.
void Load() const override
Load the chunk.
Handlers and description of chunk.