12 #include "../stdafx.h" 13 #include "../tile_type.h" 14 #include "../core/alloc_func.hpp" 15 #include "../core/smallvec_type.hpp" 19 #include "../safeguards.h" 43 for (
int i = 0; i < 256; i++) {
44 if (anim_list[i] == 0)
break;
45 *_animated_tiles.
Append() = anim_list[i];
51 _animated_tiles.
Clear();
52 _animated_tiles.
Append(count);
static bool IsSavegameVersionBefore(SaveLoadVersion major, byte minor=0)
Checks whether the savegame is below major.
void Clear()
Remove all items from the list.
const T * Begin() const
Get the pointer to the first item (const)
Simple vector template class.
size_t SlGetFieldLength()
Get the length of the current object.
T * Append(uint to_add=1)
Append an item and return it.
void SlArray(void *array, size_t length, VarType conv)
Save/Load an array.
static void Save_ANIT()
Save the ANIT chunk.
Functions/types related to saving and loading games.
uint Length() const
Get the number of items in the list.
static void Load_ANIT()
Load the ANIT chunk; the chunk containing the animated tiles.
SmallVector< TileIndex, 256 > _animated_tiles
The table/list with animated tiles.
const ChunkHandler _animated_tile_chunk_handlers[]
"Definition" imported by the saveload code to be able to load and save the animated tile table...
Handlers and description of chunk.
uint32 TileIndex
The index/ID of a Tile.
void SlSetLength(size_t length)
Sets the length of either a RIFF object or the number of items in an array.
Last chunk in this array.