Minetest  5.4.0
TextureOverrideSource Class Reference

Class that provides texture override information from a texture pack. More...

#include <texture_override.h>

+ Collaboration diagram for TextureOverrideSource:

Public Member Functions

 TextureOverrideSource (std::string filepath)
 
std::vector< TextureOverridegetItemTextureOverrides ()
 Get all overrides that apply to item definitions. More...
 
std::vector< TextureOverridegetNodeTileOverrides ()
 Get all overrides that apply to node definitions. More...
 

Private Attributes

std::vector< TextureOverridem_overrides
 

Detailed Description

Class that provides texture override information from a texture pack.

Constructor & Destructor Documentation

◆ TextureOverrideSource()

TextureOverrideSource::TextureOverrideSource ( std::string  filepath)

References ALL_FACES, BACK, BOTTOM, FRONT, TextureOverride::id, INVALID, INVENTORY, LEFT, m_overrides, override_cast, RIGHT, SIDES, SPECIAL_1, SPECIAL_2, SPECIAL_3, SPECIAL_4, SPECIAL_5, SPECIAL_6, str_split(), TextureOverride::target, TextureOverride::texture, TOP, trim(), warningstream, and WIELD.

+ Here is the call graph for this function:

Member Function Documentation

◆ getItemTextureOverrides()

std::vector< TextureOverride > TextureOverrideSource::getItemTextureOverrides ( )

Get all overrides that apply to item definitions.

References ITEM_TARGETS, and m_overrides.

Referenced by Client::afterContentReceived(), and Server::init().

+ Here is the caller graph for this function:

◆ getNodeTileOverrides()

std::vector< TextureOverride > TextureOverrideSource::getNodeTileOverrides ( )

Get all overrides that apply to node definitions.

References m_overrides, and NODE_TARGETS.

Referenced by Client::afterContentReceived(), and Server::init().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_overrides

std::vector<TextureOverride> TextureOverrideSource::m_overrides
private

The documentation for this class was generated from the following files: