Freeciv-3.2
Loading...
Searching...
No Matches
script_client.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_CLIENT_H
15#define FC__SCRIPT_CLIENT_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21/* common/scriptcore */
22#include "luascript_types.h"
23
24struct section_file;
25
26/* callback invocation function. */
27bool script_client_callback_invoke(const char *callback_name, int nargs,
28 enum api_types *parg_types, va_list args);
29
31
32/* script functions. */
33bool script_client_init(void);
34void script_client_free(void);
35bool script_client_do_string(const char *str);
36bool script_client_do_file(const char *filename);
37
38/* script state i/o. */
39void script_client_state_load(struct section_file *file);
40void script_client_state_save(struct section_file *file);
41
42/* Signals. */
44 const char *callback_name);
45void script_client_signal_emit(const char *signal_name, ...);
46const char *script_client_signal_list(void);
47
48#ifdef __cplusplus
49}
50#endif /* __cplusplus */
51
52#endif /* FC__SCRIPT_CLIENT_H */
#define str
Definition astring.c:76
char * incite_cost
Definition comments.c:75
bool script_client_do_file(const char *filename)
void script_client_state_load(struct section_file *file)
bool script_client_init(void)
bool script_client_do_string(const char *str)
void script_client_state_save(struct section_file *file)
void script_client_remove_exported_object(void *object)
bool script_client_callback_invoke(const char *callback_name, int nargs, enum api_types *parg_types, va_list args)
const char * script_client_signal_list(void)
void script_client_free(void)
void script_client_signal_emit(const char *signal_name,...)
void script_client_signal_connect(const char *signal_name, const char *callback_name)