The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lua_types.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2016 by David White <[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 SCRIPTING_LUA_TYPES_HPP
16 #define SCRIPTING_LUA_TYPES_HPP
17 
18 typedef void* luatypekey;
19 
20 // i dont want to cast to void* each time ....
21 // a drawback is, that these are now normal static variables wich are initialised at initialisation time (so you shoudn't use these at/before initialisation time).
22 extern luatypekey const executeKey;
23 extern luatypekey const getunitKey;
24 extern luatypekey const unitvarKey;
25 extern luatypekey const ustatusKey;
26 extern luatypekey const uattacksKey;
27 extern luatypekey const uattackKey;
28 extern luatypekey const formulaKey;
29 
30 #endif
luatypekey const ustatusKey
Definition: lua_types.cpp:30
luatypekey const executeKey
Definition: lua_types.cpp:27
luatypekey const uattacksKey
Definition: lua_types.cpp:31
luatypekey const unitvarKey
Definition: lua_types.cpp:29
luatypekey const uattackKey
Definition: lua_types.cpp:32
luatypekey const getunitKey
Definition: lua_types.cpp:28
luatypekey const formulaKey
Definition: lua_types.cpp:33
void * luatypekey
Definition: lua_types.hpp:18