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

NodeMetaRef:{to,from}_table and lua_api.txt additions

This commit is contained in:
Perttu Ahola 2012-06-02 11:01:28 +03:00
parent 5f3c70061d
commit 3899f83da8
6 changed files with 191 additions and 86 deletions

View file

@ -915,6 +915,17 @@ InventoryList * Inventory::getList(const std::string &name)
return m_lists[i];
}
std::vector<const InventoryList*> Inventory::getLists()
{
std::vector<const InventoryList*> lists;
for(u32 i=0; i<m_lists.size(); i++)
{
InventoryList *list = m_lists[i];
lists.push_back(list);
}
return lists;
}
bool Inventory::deleteList(const std::string &name)
{
s32 i = getListIndex(name);