mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Move tool stuff to tool.{h,cpp}
This commit is contained in:
parent
72884bf85f
commit
5fc791ac9a
6 changed files with 171 additions and 104 deletions
|
@ -34,6 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "player.h"
|
||||
#include "log.h"
|
||||
#include "mapnode_contentfeatures.h"
|
||||
#include "tool.h"
|
||||
|
||||
/*
|
||||
InventoryItem
|
||||
|
@ -166,6 +167,15 @@ InventoryItem *MaterialItem::createCookResult() const
|
|||
return item_material_create_cook_result(m_content);
|
||||
}
|
||||
|
||||
/*
|
||||
ToolItem
|
||||
*/
|
||||
|
||||
std::string ToolItem::getImageBasename() const
|
||||
{
|
||||
return tool_get_imagename(m_toolname);
|
||||
}
|
||||
|
||||
/*
|
||||
CraftItem
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue