This namespace contains bindings for lua to hold a reference to a unit type and access its stats. More...
Functions | |
std::string | register_metatable (lua_State *L) |
This namespace contains bindings for lua to hold a reference to a unit type and access its stats.
std::string lua_unit_type::register_metatable | ( | lua_State * | L | ) |
Definition at line 89 of file lua_unit_type.cpp.
References impl_unit_type_get(), lua_pushcfunction, lua_pushstring(), lua_setfield(), luaL_newmetatable(), and UnitType.
Referenced by game_lua_kernel::game_lua_kernel().