UFO: Alien Invasion
Loading...
Searching...
No Matches
scripts_lua.h
Go to the documentation of this file.
1
5
6/*
7Copyright (C) 2002-2025 UFO: Alien Invasion.
8
9This program is free software; you can redistribute it and/or
10modify it under the terms of the GNU General Public License
11as published by the Free Software Foundation; either version 2
12of the License, or (at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
18See the GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24*/
25
26#pragma once
27
28extern "C" {
29 #include "lua.h"
30 #include "lualib.h"
31 #include "lauxlib.h"
32}
33
34#include "list.h"
35
39//typedef void (*LUA_MODULE_CALLBACK)(void);
40//typedef void (*LUA_NODE_CALLBACK)(void);
41
45typedef int LUA_FUNCTION;
49typedef int LUA_EVENT;
53typedef int LUA_METHOD;
54
59typedef int LUA_INSTANCE;
60
66extern void* UI_SWIG_TypeQuery (const char* name);
67
71extern const char* UI_SWIG_NodeTypeName (void* node);
72
80
81int Com_LuaIsNilOrTable (lua_State* L, int index);
LINKED LIST interface.
QGL_EXTERN GLuint index
Definition r_gl.h:110
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition r_gl.h:110
nodeCreateFlags_t
enumeration to define flags for the creation of node.
Definition scripts_lua.h:76
@ STATIC_CONTROL
Definition scripts_lua.h:77
@ DYNAMIC_CONTROL
Definition scripts_lua.h:78
int LUA_FUNCTION
callback signatures for functions defined in Lua
Definition scripts_lua.h:45
linkedList_t * Com_LuaTableToStringList(lua_State *L, int index)
Convert a lua table to a linkedList of character strings.
int Com_LuaIsNilOrTable(lua_State *L, int index)
int LUA_INSTANCE
holds a reference to a lua table instance, so we can perform calls to table methods in our callback m...
Definition scripts_lua.h:59
void * UI_SWIG_TypeQuery(const char *name)
queries the SWIG type table for a type information structure that can be used to create objects of a ...
int LUA_EVENT
holds a reference to a lua event handler
Definition scripts_lua.h:49
int LUA_METHOD
holds a reference to a lua event handler
Definition scripts_lua.h:53
const char * UI_SWIG_NodeTypeName(void *node)
returns the lua typename of the node.