Freeciv-3.2
Loading...
Searching...
No Matches
script_server.h
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#ifndef FC__SCRIPT_SERVER_H
15#define FC__SCRIPT_SERVER_H
16
17/* utility */
18#include "support.h"
19
20/* common/scriptcore */
21#include "luascript_types.h"
22
23struct section_file;
24struct connection;
25
27
28/* Script functions. */
29bool script_server_init(void);
30void script_server_free(void);
31
32bool script_server_do_string(struct connection *caller, const char *str);
33bool script_server_do_file(struct connection *caller, const char *filename);
34bool script_server_load_file(const char *filename, char **buf);
35
37 const char *str);
39 const char *filename);
40
41/* Script state i/o. */
42void script_server_state_load(struct section_file *file);
43void script_server_state_save(struct section_file *file);
44
45/* Signals. */
46void script_server_signal_emit(const char *signal_name, ...);
47
48/* Functions */
49bool script_server_call(const char *func_name, ...);
50
51#endif /* FC__SCRIPT_SERVER_H */
52
#define str
Definition astring.c:76
char * incite_cost
Definition comments.c:75
bool script_server_unsafe_do_string(struct connection *caller, const char *str)
void script_server_signal_emit(const char *signal_name,...)
bool script_server_do_string(struct connection *caller, const char *str)
bool script_server_init(void)
bool script_server_call(const char *func_name,...)
void script_server_state_save(struct section_file *file)
void script_server_state_load(struct section_file *file)
void script_server_remove_exported_object(void *object)
bool script_server_unsafe_do_file(struct connection *caller, const char *filename)
bool script_server_load_file(const char *filename, char **buf)
void script_server_free(void)
bool script_server_do_file(struct connection *caller, const char *filename)