The Battle for Wesnoth  1.17.4+dev
Namespaces | Functions
lua_race.hpp File Reference
#include <string>
Include dependency graph for lua_race.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


 This namespace contains bindings for lua to hold a pointer to a race, and to access and modify it.


std::string lua_race::register_metatable (lua_State *L)
void luaW_pushrace (lua_State *, const unit_race &)
void luaW_pushracetable (lua_State *)
const unit_raceluaW_checkrace (lua_State *, int)

Function Documentation

◆ luaW_checkrace()

const unit_race& luaW_checkrace ( lua_State *  ,

Definition at line 142 of file lua_race.cpp.

References unit_type_data::find_race(), and unit_types.

Referenced by impl_race_get(), and impl_race_tostring().

◆ luaW_pushrace()

void luaW_pushrace ( lua_State *  ,
const unit_race  

Definition at line 121 of file lua_race.cpp.

References unit_race::id(), and Race.

Referenced by luaW_pushracetable().

◆ luaW_pushracetable()

void luaW_pushracetable ( lua_State *  )

Definition at line 129 of file lua_race.cpp.

References luaW_pushrace(), unit_type_data::races(), and unit_types.

Referenced by game_lua_kernel::initialize().