10#ifndef SPRITE_FILE_TYPE_HPP
11#define SPRITE_FILE_TYPE_HPP
RandomAccessFile(std::string_view filename, Subdirectory subdir)
Create the RandomAccesFile.
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.
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.
Class related to random access to files.