mirror of
https://github.com/minetest/minetest.git
synced 2025-07-04 08:50:22 +02:00
Move tool stuff to tool.{h,cpp}
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user