#include <itemdef.h>
 Collaboration diagram for ItemDefinition:Public Member Functions | |
| ItemDefinition () | |
| ItemDefinition (const ItemDefinition &def) | |
| ItemDefinition & | operator= (const ItemDefinition &def) | 
| ~ItemDefinition () | |
| void | reset () | 
| void | serialize (std::ostream &os, u16 protocol_version) const | 
| void | deSerialize (std::istream &is, u16 protocol_version) | 
Public Attributes | |
| ItemType | type | 
| std::string | name | 
| std::string | description | 
| std::string | short_description | 
| std::string | inventory_image | 
| std::string | inventory_overlay | 
| std::string | wield_image | 
| std::string | wield_overlay | 
| std::string | palette_image | 
| video::SColor | color | 
| v3f | wield_scale | 
| u16 | stack_max | 
| bool | usable | 
| bool | liquids_pointable | 
| std::optional< Pointabilities > | pointabilities | 
| ToolCapabilities * | tool_capabilities | 
| std::optional< WearBarParams > | wear_bar_params | 
| ItemGroupList | groups | 
| SoundSpec | sound_place | 
| SoundSpec | sound_place_failed | 
| SoundSpec | sound_use | 
| SoundSpec | sound_use_air | 
| f32 | range | 
| std::string | node_placement_prediction | 
| std::optional< u8 > | place_param2 | 
| bool | wallmounted_rotate_vertical | 
| TouchInteraction | touch_interaction | 
Private Member Functions | |
| void | resetInitial () | 
| ItemDefinition::ItemDefinition | ( | ) | 
| ItemDefinition::ItemDefinition | ( | const ItemDefinition & | def | ) | 
| ItemDefinition::~ItemDefinition | ( | ) | 
| void ItemDefinition::deSerialize | ( | std::istream & | is, | 
| u16 | protocol_version ) | 
References color, description, ToolCapabilities::deSerialize(), TouchInteraction::deSerialize(), WearBarParams::deserialize(), SoundSpec::deSerializeSimple(), deSerializeString16(), groups, inventory_image, inventory_overlay, ITEM_NONE, ItemType_END, liquids_pointable, name, node_placement_prediction, palette_image, place_param2, pointabilities, range, readARGB8(), readF32(), readS16(), readU16(), readU8(), readV3F32(), reset(), short_description, sound_place, sound_place_failed, sound_use, sound_use_air, stack_max, tool_capabilities, touch_interaction, type, usable, wallmounted_rotate_vertical, wear_bar_params, wield_image, wield_overlay, and wield_scale.
Referenced by CItemDefManager::deSerialize().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ItemDefinition & ItemDefinition::operator= | ( | const ItemDefinition & | def | ) | 
References color, description, groups, inventory_image, inventory_overlay, liquids_pointable, name, node_placement_prediction, palette_image, place_param2, pointabilities, range, reset(), short_description, sound_place, sound_place_failed, sound_use, sound_use_air, stack_max, tool_capabilities, touch_interaction, type, usable, wallmounted_rotate_vertical, wear_bar_params, wield_image, wield_overlay, and wield_scale.
 Here is the call graph for this function:| void ItemDefinition::reset | ( | ) | 
References color, description, groups, inventory_image, inventory_overlay, ITEM_NONE, liquids_pointable, name, node_placement_prediction, palette_image, place_param2, pointabilities, range, short_description, sound_place, sound_place_failed, sound_use, sound_use_air, stack_max, tool_capabilities, touch_interaction, type, usable, wallmounted_rotate_vertical, wear_bar_params, wield_image, wield_overlay, and wield_scale.
Referenced by ~ItemDefinition(), deSerialize(), operator=(), and resetInitial().
 Here is the caller graph for this function:
      
  | 
  private | 
References reset(), tool_capabilities, and wear_bar_params.
Referenced by ItemDefinition(), and ItemDefinition().
 Here is the call graph for this function:
 Here is the caller graph for this function:| void ItemDefinition::serialize | ( | std::ostream & | os, | 
| u16 | protocol_version ) const | 
References color, description, groups, inventory_image, inventory_overlay, liquids_pointable, name, node_placement_prediction, palette_image, place_param2, pointabilities, range, ToolCapabilities::serialize(), TouchInteraction::serialize(), SoundSpec::serializeSimple(), serializeString16(), short_description, sound_place, sound_place_failed, sound_use, sound_use_air, stack_max, tool_capabilities, touch_interaction, type, usable, wallmounted_rotate_vertical, wear_bar_params, wield_image, wield_overlay, wield_scale, writeARGB8(), writeF32(), writeS16(), writeU16(), writeU8(), and writeV3F32().
Referenced by CItemDefManager::serialize().
 Here is the call graph for this function:
 Here is the caller graph for this function:| video::SColor ItemDefinition::color | 
Referenced by deSerialize(), operator=(), push_item_definition_full(), read_item_definition(), reset(), and serialize().
| std::string ItemDefinition::description | 
| ItemGroupList ItemDefinition::groups | 
| std::string ItemDefinition::inventory_image | 
| std::string ItemDefinition::inventory_overlay | 
Referenced by deSerialize(), ItemStack::getInventoryOverlay(), operator=(), push_item_definition_full(), read_item_definition(), reset(), and serialize().
| bool ItemDefinition::liquids_pointable | 
Referenced by deSerialize(), operator=(), Game::processPlayerInteraction(), push_item_definition_full(), read_item_definition(), reset(), and serialize().
| std::string ItemDefinition::name | 
Referenced by CItemDefManager::clear(), TestGameDef::defineSomeNodes(), deSerialize(), getItemMesh(), Game::nodePlacement(), operator=(), push_item_definition(), push_item_definition_full(), read_item_definition(), CItemDefManager::registerItem(), reset(), serialize(), and WieldMeshSceneNode::setItem().
| std::string ItemDefinition::node_placement_prediction | 
| std::string ItemDefinition::palette_image | 
Referenced by deSerialize(), operator=(), push_item_definition_full(), read_item_definition(), reset(), and serialize().
| std::optional<u8> ItemDefinition::place_param2 | 
Referenced by deSerialize(), getItemMesh(), Game::nodePlacement(), operator=(), read_item_definition(), reset(), serialize(), and WieldMeshSceneNode::setItem().
| std::optional<Pointabilities> ItemDefinition::pointabilities | 
Referenced by deSerialize(), operator=(), Game::processPlayerInteraction(), push_item_definition_full(), read_item_definition(), reset(), and serialize().
| f32 ItemDefinition::range | 
Referenced by deSerialize(), getToolRange(), operator=(), read_item_definition(), reset(), and serialize().
| std::string ItemDefinition::short_description | 
Referenced by deSerialize(), ItemStack::getShortDescription(), operator=(), push_item_definition_full(), read_item_definition(), reset(), and serialize().
| SoundSpec ItemDefinition::sound_place | 
Referenced by deSerialize(), Game::nodePlacement(), operator=(), push_item_definition_full(), read_item_definition(), reset(), and serialize().
| SoundSpec ItemDefinition::sound_place_failed | 
Referenced by deSerialize(), Game::nodePlacement(), operator=(), push_item_definition_full(), read_item_definition(), reset(), and serialize().
| SoundSpec ItemDefinition::sound_use | 
Referenced by deSerialize(), operator=(), Game::processPlayerInteraction(), read_item_definition(), reset(), and serialize().
| SoundSpec ItemDefinition::sound_use_air | 
Referenced by deSerialize(), operator=(), Game::processPlayerInteraction(), read_item_definition(), reset(), and serialize().
| u16 ItemDefinition::stack_max | 
Referenced by deSerialize(), ItemStack::getStackMax(), operator=(), push_item_definition_full(), read_item_definition(), reset(), and serialize().
| ToolCapabilities* ItemDefinition::tool_capabilities | 
| TouchInteraction ItemDefinition::touch_interaction | 
Referenced by deSerialize(), operator=(), Game::processPlayerInteraction(), push_item_definition_full(), read_item_definition(), reset(), and serialize().
| ItemType ItemDefinition::type | 
Referenced by ItemStack::ItemStack(), CItemDefManager::clear(), craftToolRepair(), TestGameDef::defineSomeNodes(), deSerialize(), ItemStack::deSerialize(), drawItemStack(), getItemMesh(), ModApiItem::l_register_item_raw(), ModApiItem::l_unregister_item_raw(), operator=(), push_item_definition_full(), read_item_definition(), TestCraft::registerItemWithGroups(), reset(), serialize(), and WieldMeshSceneNode::setItem().
| bool ItemDefinition::usable | 
| bool ItemDefinition::wallmounted_rotate_vertical | 
Referenced by deSerialize(), Game::nodePlacement(), operator=(), push_item_definition_full(), read_item_definition(), reset(), and serialize().
| std::optional<WearBarParams> ItemDefinition::wear_bar_params | 
| std::string ItemDefinition::wield_image | 
| std::string ItemDefinition::wield_overlay | 
Referenced by deSerialize(), ItemStack::getWieldOverlay(), operator=(), push_item_definition_full(), read_item_definition(), reset(), and serialize().
| v3f ItemDefinition::wield_scale | 
Referenced by deSerialize(), operator=(), push_item_definition_full(), read_item_definition(), reset(), serialize(), and WieldMeshSceneNode::setItem().