1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Add names to NodeMetadata

This commit is contained in:
Perttu Ahola 2011-11-25 15:17:54 +02:00
parent 697ff926ce
commit 3b3ca65562
4 changed files with 61 additions and 13 deletions

View file

@ -38,7 +38,7 @@ SignNodeMetadata::SignNodeMetadata(IGameDef *gamedef, std::string text):
NodeMetadata(gamedef),
m_text(text)
{
NodeMetadata::registerType(typeId(), create);
NodeMetadata::registerType(typeId(), typeName(), create);
}
u16 SignNodeMetadata::typeId() const
{
@ -72,7 +72,7 @@ ChestNodeMetadata proto_ChestNodeMetadata(NULL);
ChestNodeMetadata::ChestNodeMetadata(IGameDef *gamedef):
NodeMetadata(gamedef)
{
NodeMetadata::registerType(typeId(), create);
NodeMetadata::registerType(typeId(), typeName(), create);
m_inventory = new Inventory();
m_inventory->addList("0", 8*4);
@ -135,7 +135,7 @@ LockingChestNodeMetadata proto_LockingChestNodeMetadata(NULL);
LockingChestNodeMetadata::LockingChestNodeMetadata(IGameDef *gamedef):
NodeMetadata(gamedef)
{
NodeMetadata::registerType(typeId(), create);
NodeMetadata::registerType(typeId(), typeName(), create);
m_inventory = new Inventory();
m_inventory->addList("0", 8*4);
@ -200,7 +200,7 @@ FurnaceNodeMetadata proto_FurnaceNodeMetadata(NULL);
FurnaceNodeMetadata::FurnaceNodeMetadata(IGameDef *gamedef):
NodeMetadata(gamedef)
{
NodeMetadata::registerType(typeId(), create);
NodeMetadata::registerType(typeId(), typeName(), create);
m_inventory = new Inventory();
m_inventory->addList("fuel", 1);