The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
scripting
lua_unit_type.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2014 - 2016 by Chris Beck <
[email protected]
>
3
Part of the Battle for Wesnoth Project http://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
#ifndef LUA_UNIT_TYPE_HPP_INCLUDED
16
#define LUA_UNIT_TYPE_HPP_INCLUDED
17
18
struct
lua_State
;
19
20
#include <string>
21
22
/**
23
* This namespace contains bindings for lua to hold a reference to a
24
* unit type and access its stats.
25
*/
26
namespace
lua_unit_type
{
27
std::string
register_metatable
(
lua_State
*);
28
}
//end namespace lua_team
29
30
/// Create a lua object containing a reference to a unittype, and a
31
/// metatable to access the properties.
32
void
luaW_pushunittype
(
lua_State
*,
const
std::string
&);
33
34
#endif
lua_unit_type
This namespace contains bindings for lua to hold a reference to a unit type and access its stats...
Definition:
lua_unit_type.cpp:88
lua_unit_type::register_metatable
std::string register_metatable(lua_State *L)
Definition:
lua_unit_type.cpp:89
luaW_pushunittype
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:
lua_unit_type.cpp:102
lua_State
Definition:
lstate.h:153
string
GLsizei const GLcharARB ** string
Definition:
glew.h:4503
Generated by
1.8.8