The Battle for Wesnoth  1.15.2+dev
lua_race.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2018 by Chris Beck <render787@gmail.com>
3  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #pragma once
16 
17 class unit_race;
18 struct lua_State;
19 
20 #include <string>
21 
22 /**
23  * This namespace contains bindings for lua to hold a pointer to a race,
24  * and to access and modify it.
25  */
26 namespace lua_race {
27  std::string register_metatable(lua_State *);
28 } //end namespace lua_team
29 
30 // Create a lua reference to the race.
31 void luaW_pushrace(lua_State *, const unit_race &);
void luaW_pushrace(lua_State *, const unit_race &)
Definition: lua_race.cpp:111
void luaW_pushracetable(lua_State *)
Definition: lua_race.cpp:119
This namespace contains bindings for lua to hold a pointer to a race, and to access and modify it...
Definition: lua_race.cpp:92
std::string register_metatable(lua_State *L)
Definition: lua_race.cpp:94