Public Member Functions | |
CItemDefManager () | |
virtual | ~CItemDefManager () |
virtual const ItemDefinition & | get (const std::string &name_) const |
virtual const std::string & | getAlias (const std::string &name) const |
virtual void | getAll (std::set< std::string > &result) const |
virtual bool | isKnown (const std::string &name_) const |
void | applyTextureOverrides (const std::vector< TextureOverride > &overrides) |
void | clear () |
virtual void | registerItem (const ItemDefinition &def) |
virtual void | unregisterItem (const std::string &name) |
virtual void | registerAlias (const std::string &name, const std::string &convert_to) |
void | serialize (std::ostream &os, u16 protocol_version) |
void | deSerialize (std::istream &is, u16 protocol_version) |
Public Member Functions inherited from IWritableItemDefManager | |
IWritableItemDefManager ()=default | |
virtual | ~IWritableItemDefManager ()=default |
Public Member Functions inherited from IItemDefManager | |
IItemDefManager ()=default | |
virtual | ~IItemDefManager ()=default |
virtual video::ITexture * | getInventoryTexture (const ItemStack &item, Client *client) const |
virtual ItemMesh * | getWieldMesh (const ItemStack &item, Client *client) const |
Get wield mesh. | |
virtual Palette * | getPalette (const ItemStack &item, Client *client) const |
virtual video::SColor | getItemstackColor (const ItemStack &stack, Client *client) const |
Private Attributes | |
std::map< std::string, ItemDefinition * > | m_item_definitions |
StringMap | m_aliases |
|
inline |
|
inlinevirtual |
References m_item_definitions.
|
inlinevirtual |
Implements IWritableItemDefManager.
References infostream, INVENTORY, ItemDefinition::inventory_image, m_item_definitions, WIELD, and ItemDefinition::wield_image.
|
inlinevirtual |
Implements IWritableItemDefManager.
References ITEM_NODE, m_aliases, m_item_definitions, ItemDefinition::name, ItemDefinition::tool_capabilities, ItemDefinition::type, and ItemDefinition::wield_image.
Referenced by CItemDefManager(), and deSerialize().
|
inlinevirtual |
Implements IWritableItemDefManager.
References clear(), ItemDefinition::deSerialize(), deSerializeString16(), readU16(), readU8(), registerAlias(), and registerItem().
|
inlinevirtual |
Implements IItemDefManager.
References getAlias(), and m_item_definitions.
|
inlinevirtual |
Implements IItemDefManager.
References m_aliases.
Referenced by get(), and isKnown().
|
inlinevirtual |
Implements IItemDefManager.
References m_aliases, and m_item_definitions.
|
inlinevirtual |
Implements IItemDefManager.
References getAlias(), and m_item_definitions.
|
inlinevirtual |
Implements IWritableItemDefManager.
References m_aliases, m_item_definitions, and TRACESTREAM.
Referenced by deSerialize().
|
inlinevirtual |
Implements IWritableItemDefManager.
References FATAL_ERROR_IF, infostream, m_aliases, m_item_definitions, ItemDefinition::name, ItemDefinition::tool_capabilities, and TRACESTREAM.
Referenced by deSerialize().
|
inlinevirtual |
Implements IItemDefManager.
References m_aliases, m_item_definitions, ItemDefinition::serialize(), serializeString16(), writeU16(), and writeU8().
|
inlinevirtual |
Implements IWritableItemDefManager.
References m_item_definitions, and verbosestream.
|
private |
Referenced by clear(), getAlias(), getAll(), registerAlias(), registerItem(), and serialize().
|
private |
Referenced by ~CItemDefManager(), applyTextureOverrides(), clear(), get(), getAll(), isKnown(), registerAlias(), registerItem(), serialize(), and unregisterItem().