A single unit type that the player may recruit.
const unit_type & luaW_checkunittype(lua_State *, int)
Test if a stack element is a unit type, and return it if so.
const unit_type * luaW_tounittype(lua_State *, int)
Test if a stack element is a unit type, and return it if so.
void luaW_pushunittype(lua_State *, const unit_type &)
Create a lua object containing a reference to a unittype, and a metatable to access the properties.
This namespace contains bindings for lua to hold a reference to a unit type and access its stats.
std::string register_metatable(lua_State *L)
std::string register_table(lua_State *L)