OpenTTD Source 20241224-master-gee860a5c8e
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:
= {
SLEG_VECTOR("tiles", _animated_tiles, SLE_UINT32),
}
std::vector< TileIndex > _animated_tiles
The table/list with animated tiles.
#define SLEG_VECTOR(name, variable, type)
Storage of a global vector of SL_VAR elements in every savegame version.
Definition saveload.h:1234

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.