OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
10 #include "../stdafx.h"
11 #include "../tile_type.h"
12 #include "../core/alloc_func.hpp"
13 #include "../core/smallvec_type.hpp"
17 #include "../safeguards.h"
41 for (
int i = 0; i < 256; i++) {
42 if (anim_list[i] == 0)
break;
uint32 TileIndex
The index/ID of a Tile.
@ CH_LAST
Last chunk in this array.
std::vector< TileIndex > _animated_tiles
The table/list with animated tiles.
Handlers and description of chunk.
void SlSetLength(size_t length)
Sets the length of either a RIFF object or the number of items in an array.
static bool IsSavegameVersionBefore(SaveLoadVersion major, byte minor=0)
Checks whether the savegame is below major.
const ChunkHandler _animated_tile_chunk_handlers[]
"Definition" imported by the saveload code to be able to load and save the animated tile table.
size_t SlGetFieldLength()
Get the length of the current object.
static void Load_ANIT()
Load the ANIT chunk; the chunk containing the animated tiles.
static void Save_ANIT()
Save the ANIT chunk.
void SlArray(void *array, size_t length, VarType conv)
Save/Load an array.