10#ifndef BASE_MEDIA_GRAPHICS_H
11#define BASE_MEDIA_GRAPHICS_H
35 static constexpr size_t num_files =
MAX_GFT;
36 static constexpr bool search_in_tars =
true;
37 static constexpr std::string_view set_type =
"graphics";
51 bool FillSetDetails(
const IniFile &ini,
const std::string &path,
const std::string &full_filename);
52 GRFConfig *GetExtraConfig()
const {
return this->extra_cfg.get(); }
54 bool IsConfigurable()
const;
70 static inline Ini ini_data;
All data/functions related with replacing the base graphics.
Subdirectory
The different kinds of subdirectories OpenTTD uses.
PaletteType
Palettes OpenTTD supports.
Values loaded from config file.
uint32_t extra_version
version of the extra GRF
std::vector< uint32_t > extra_params
parameters for the extra GRF
uint32_t shortname
unique key for base set
Defines the traits of a BaseSet type.
Information about a single base set.
Information about GRF, used in the game and (part of it) in savegames.
All data of a graphics set.
std::unique_ptr< GRFConfig > extra_cfg
Parameters for extra GRF.
PaletteType palette
Palette of this graphics set.
static MD5File::ChecksumResult CheckMD5(const MD5File *file, Subdirectory subdir)
Calculate and check the MD5 hash of the supplied GRF.
BlitterType blitter
Blitter of this graphics set.
GRFConfig & GetOrCreateExtraConfig() const
Return configuration for the extra GRF, or lazily create it.
Ini file that supports both loading and saving.
Structure holding filename and MD5 information about a single file.
ChecksumResult
The result of a checksum check.