feat: add ItemTemplate methods (#84)

This commit is contained in:
Axel Cocat
2022-12-31 00:10:09 +01:00
committed by GitHub
parent 28f8d6ae48
commit a2067451eb
5 changed files with 241 additions and 0 deletions

View File

@@ -642,6 +642,17 @@ namespace LuaItem
return 1;
}
/**
* Returns the [ItemTemplate] for this [Item].
*
* @return ItemTemplate itemTemplate
*/
int GetItemTemplate(lua_State* L, Item* item)
{
Eluna::Push(L, item->GetTemplate());
return 1;
}
/**
* Sets the [Player] specified as the owner of the [Item]
*