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