OpenEnroth 73e68f7
|
#include <LuaItemQueryTable.h>
Public Member Functions | |
LuaItemQueryTable (sol::state_view &luaState) | |
template<typename T > | |
void | add (const std::string_view &key, T &&query) |
sol::object | createTable (const ItemType &item, const QueryTable &queryTable) |
Private Types | |
typedef std::unordered_map< std::string, std::function< sol::object(const ItemType &)> > | MapFunctions |
Private Attributes | |
MapFunctions | _mapping |
sol::state_view | _luaState |
|
private |
|
inlineexplicit |
|
inline |
|
inline |
Generate a Lua table by extracting information from the provided item. Treat the query table as a vector, with each item being a string representing the property to extract.
|
private |
|
private |