Freeciv-3.3
Loading...
Searching...
No Matches
api_server_luadata.c
Go to the documentation of this file.
1/*****************************************************************************
2 Freeciv - Copyright (C) 2005 - 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/* utility */
19#include "registry_ini.h"
20
21/* common */
22#include "game.h"
23
24/* common/scriptcore */
25#include "luascript.h"
26
27/* server/scripting */
28#include "script_server.h"
29
30#include "api_server_luadata.h"
31
32/**********************************************************************/
35const char *api_luadata_get_str(lua_State *L, const char *field)
36{
38
39 if (game.server.luadata == NULL) {
40 return NULL;
41 }
42
44}
const char * api_luadata_get_str(lua_State *L, const char *field)
char * incite_cost
Definition comments.c:76
struct civ_game game
Definition game.c:61
#define LUASCRIPT_CHECK_STATE(L,...)
Definition luascript.h:117
const char * secfile_lookup_str_default(const struct section_file *secfile, const char *def, const char *path,...)
struct section_file * luadata
Definition game.h:254
struct civ_game::@32::@36 server