Freeciv-3.2
Loading...
Searching...
No Matches
server
scripting
api_fcdb_specenum.c
Go to the documentation of this file.
1
/*****************************************************************************
2
Freeciv - Copyright (C) 2010 - The Freeciv Project
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; either version 2, or (at your option)
6
any later version.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
*****************************************************************************/
13
14
#ifdef HAVE_CONFIG_H
15
#include <fc_config.h>
16
#endif
17
18
#include <string.h>
19
20
/* dependencies/lua */
21
#include "lua.h"
22
#include "lualib.h"
23
#include "lauxlib.h"
24
25
/* utility */
26
#include "
support.h
"
27
28
/* common/scriptcore */
29
#include "
api_specenum.h
"
30
31
/* common/networking */
32
#include "
connection.h
"
33
#include "
events.h
"
34
35
#include "
api_fcdb_specenum.h
"
36
37
38
/**********************************************************************/
41
API_SPECENUM_DEFINE_INDEX
(
cmdlevel
,
""
)
42
43
/**********************************************************************/
46
int
api_fcdb_specenum_open
(
lua_State
*
L
)
47
{
48
API_SPECENUM_CREATE_TABLE
(
L
,
cmdlevel
,
"ALLOW"
);
49
50
return
0;
51
}
api_fcdb_specenum_open
int api_fcdb_specenum_open(lua_State *L)
Definition
api_fcdb_specenum.c:46
api_fcdb_specenum.h
api_specenum.h
API_SPECENUM_CREATE_TABLE
#define API_SPECENUM_CREATE_TABLE(L, type, name)
Definition
api_specenum.h:81
API_SPECENUM_DEFINE_INDEX
#define API_SPECENUM_DEFINE_INDEX(type_name, prefix)
Definition
api_specenum.h:29
incite_cost
char * incite_cost
Definition
comments.c:75
connection.h
events.h
support.h
Generated on Sun Dec 22 2024 23:00:34 for Freeciv-3.2 by
1.9.8