#include <string>
Go to the source code of this file.
Namespaces | |
lua_unit_type | |
This namespace contains bindings for lua to hold a reference to a unit type and access its stats. | |
Functions | |
std::string | lua_unit_type::register_metatable (lua_State *L) |
void | luaW_pushunittype (lua_State *, const std::string &) |
Create a lua object containing a reference to a unittype, and a metatable to access the properties. More... | |
void luaW_pushunittype | ( | lua_State * | , |
const std::string & | |||
) |
Create a lua object containing a reference to a unittype, and a metatable to access the properties.
Definition at line 102 of file lua_unit_type.cpp.
References lua_createtable(), lua_pushstring(), lua_setfield(), luaL_setmetatable(), and UnitType.
Referenced by game_lua_kernel::initialize().