1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

initial chest metadata

This commit is contained in:
Perttu Ahola 2011-04-04 11:18:14 +03:00
parent a9f89fb3fb
commit 9e683fff50
7 changed files with 123 additions and 53 deletions

View file

@ -104,6 +104,34 @@ std::string SignNodeMetadata::infoText()
return std::string("\"")+m_text+"\"";
}
/*
ChestNodeMetadata
*/
ChestNodeMetadata::ChestNodeMetadata()
{
NodeMetadata::registerType(typeId(), create);
}
u16 ChestNodeMetadata::typeId() const
{
return CONTENT_CHEST;
}
NodeMetadata* ChestNodeMetadata::create(std::istream &is)
{
return new ChestNodeMetadata();
}
NodeMetadata* ChestNodeMetadata::clone()
{
return new ChestNodeMetadata();
}
void ChestNodeMetadata::serializeBody(std::ostream &os)
{
}
std::string ChestNodeMetadata::infoText()
{
return "Chest";
}
/*
NodeMetadatalist
*/