1
0
Fork 0
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:
Perttu Ahola 2011-11-13 16:38:14 +02:00
parent 72884bf85f
commit 5fc791ac9a
6 changed files with 171 additions and 104 deletions

View file

@ -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
*/