The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Functions
lua_unit_type.hpp File Reference
#include <string>
Include dependency graph for lua_unit_type.hpp:
This graph shows which files directly or indirectly include this file:

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...
 

Function Documentation

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().