10 #ifndef SPRITE_FILE_TYPE_HPP
11 #define SPRITE_FILE_TYPE_HPP
13 #include "../random_access_file_type.h"
A file from which bytes, words and double words are read in (potentially) a random order.
void SeekTo(size_t pos, int mode)
Seek in the current file.
std::string filename
Full name of the file; relative path to subdir plus the extension of the file.
RandomAccessFile with some extra information specific for sprite files.
SpriteFile(const std::string &filename, Subdirectory subdir, bool palette_remap)
Create the SpriteFile.
uint8_t container_version
Container format of the sprite file.
bool NeedsPaletteRemap() const
Whether a palette remap is needed when loading sprites from this file.
uint8_t GetContainerVersion() const
Get the version number of container type used by the file.
size_t content_begin
The begin of the content of the sprite file, i.e. after the container metadata.
void SeekToBegin()
Seek to the begin of the content, i.e.
bool palette_remap
Whether or not a remap of the palette is required for this file.
Subdirectory
The different kinds of subdirectories OpenTTD uses.