Class that provides texture override information from a texture pack. More...
#include <texture_override.h>
Public Member Functions | |
TextureOverrideSource (const std::string &filepath) | |
std::vector< TextureOverride > | getItemTextureOverrides () const |
Get all overrides that apply to item definitions. | |
std::vector< TextureOverride > | getNodeTileOverrides () const |
Get all overrides that apply to node definitions. | |
Private Attributes | |
std::vector< TextureOverride > | m_overrides |
Class that provides texture override information from a texture pack.
TextureOverrideSource::TextureOverrideSource | ( | const std::string & | filepath | ) |
References TextureOverride::id, INVALID, m_overrides, open_ifstream(), override_cast, override_LUT, stoi, str_split(), TextureOverride::target, TextureOverride::texture, trim(), U8_MAX, warningstream, and TextureOverride::world_scale.
std::vector< TextureOverride > TextureOverrideSource::getItemTextureOverrides | ( | ) | const |
Get all overrides that apply to item definitions.
References ITEM_TARGETS, and m_overrides.
Referenced by Client::afterContentReceived(), and Server::init().
std::vector< TextureOverride > TextureOverrideSource::getNodeTileOverrides | ( | ) | const |
Get all overrides that apply to node definitions.
References m_overrides, and NODE_TARGETS.
Referenced by Client::afterContentReceived(), and Server::init().
|
private |
Referenced by TextureOverrideSource(), getItemTextureOverrides(), and getNodeTileOverrides().