Freeciv-3.2
|
#include <stdarg.h>
#include <stdlib.h>
#include <time.h>
#include "lua.h"
#include "lualib.h"
#include "tolua.h"
#include "log.h"
#include "featured_text.h"
#include "api_game_specenum.h"
#include "luascript.h"
#include "tolua_common_a_gen.h"
#include "tolua_common_z_gen.h"
#include "tolua_game_gen.h"
#include "tolua_signal_gen.h"
#include "luaconsole_common.h"
#include <tolua_client_gen.h>
#include "script_client.h"
Go to the source code of this file.
Variables | |
static struct fc_lua * | main_fcl = NULL |
static char * | script_client_code = NULL |
bool script_client_callback_invoke | ( | const char * | callback_name, |
int | nargs, | ||
enum api_types * | parg_types, | ||
va_list | args | ||
) |
Invoke the 'callback_name' Lua function.
Definition at line 99 of file script_client.c.
Free the optional game script code (useful for scenarios).
Definition at line 159 of file script_client.c.
Referenced by script_client_free().
Initialize the optional game script code (useful for scenarios).
Definition at line 151 of file script_client.c.
Referenced by script_client_init().
|
static |
Load the optional game script code from file (useful for scenarios).
Definition at line 170 of file script_client.c.
Referenced by script_client_state_load().
|
static |
Save the optional game script code to file (useful for scenarios).
Definition at line 185 of file script_client.c.
Referenced by script_client_state_save().
Parse and execute the script at filename.
Definition at line 89 of file script_client.c.
Referenced by luaconsole_load_file_callback(), qload_lua_script(), and qreload_lua_script().
Parse and execute the script in str
Definition at line 79 of file script_client.c.
Referenced by luaconsole_input_return().
Free the scripting data.
Definition at line 283 of file script_client.c.
Referenced by client_exit().
Initialize the scripting state.
Definition at line 195 of file script_client.c.
Referenced by client_main().
|
static |
Output a message on the client lua console.
Definition at line 239 of file script_client.c.
Referenced by script_client_init().
Mark any, if exported, full userdata representing 'object' in the current script state as 'Nonexistent'. This changes the type of the lua variable.
Definition at line 111 of file script_client.c.
Declare any new signal types you need here.
Definition at line 332 of file script_client.c.
Referenced by script_client_init().
Invoke all the callback functions attached to a given signal.
Definition at line 320 of file script_client.c.
Referenced by handle_research_info().
void script_client_state_load | ( | struct section_file * | file | ) |
Load the scripting state from file.
Definition at line 299 of file script_client.c.
void script_client_state_save | ( | struct section_file * | file | ) |
Save the scripting state to file.
Definition at line 311 of file script_client.c.
Free the game script variables.
Definition at line 127 of file script_client.c.
Referenced by script_client_free().
Initialize the game script variables.
Definition at line 119 of file script_client.c.
Referenced by script_client_init().
|
static |
Load the game script variables in file.
Definition at line 135 of file script_client.c.
Referenced by script_client_state_load().
|
static |
Save the game script variables to file.
Definition at line 143 of file script_client.c.
Referenced by script_client_state_save().
Definition at line 54 of file script_client.c.
Referenced by script_client_callback_invoke(), script_client_code_load(), script_client_do_file(), script_client_do_string(), script_client_free(), script_client_init(), script_client_remove_exported_object(), script_client_signal_create(), script_client_signal_emit(), script_client_vars_load(), and script_client_vars_save().
Definition at line 59 of file script_client.c.
Referenced by script_client_code_free(), script_client_code_init(), script_client_code_load(), and script_client_code_save().