OpenTTD Source 20260917-master-gec444f7315
animated_tile_sl.cpp File Reference

Code handling saving and loading of animated tiles. More...

#include "../stdafx.h"
#include "saveload.h"
#include "compat/animated_tile_sl_compat.h"
#include "../tile_type.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  ANITChunkHandler

Functions

const ChunkHandlerTable _animated_tile_chunk_handlers (animated_tile_chunk_handlers)

Variables

std::vector< TileIndex > _animated_tiles
 The table/list with animated tiles.
static const SaveLoad _animated_tile_desc []
static const ANITChunkHandler ANIT
static const ChunkHandlerRef animated_tile_chunk_handlers []

Detailed Description

Code handling saving and loading of animated tiles.

Definition in file animated_tile_sl.cpp.

Variable Documentation

◆ _animated_tile_desc

const SaveLoad _animated_tile_desc[]
static
Initial value:
= {
}
std::vector< TileIndex > _animated_tiles
The table/list with animated tiles.
#define SLE_GLOBAL_ADDRESS(variable)
Macro to be able to pass the variable type and construct the SaveLoad::AddressFunction given a global...
Definition saveload.h:761
static SaveLoad Vector(std::string name, AddressFunction< T > address_func, SaveLoadVersion from=SaveLoadVersion::MinVersion, SaveLoadVersion to=SaveLoadVersion::MaxVersion)
Storage of a vector in some savegame versions.
Definition saveload.h:1053

Definition at line 21 of file animated_tile_sl.cpp.

◆ _animated_tiles

std::vector<TileIndex> _animated_tiles
extern

The table/list with animated tiles.

Definition at line 20 of file animated_tile.cpp.

Referenced by ANITChunkHandler::Load().

◆ animated_tile_chunk_handlers

const ChunkHandlerRef animated_tile_chunk_handlers[]
static
Initial value:
= {
ANIT,
}

Definition at line 69 of file animated_tile_sl.cpp.

◆ ANIT

const ANITChunkHandler ANIT
static

Definition at line 68 of file animated_tile_sl.cpp.