Freeciv21
Develop your civilization from humble roots to a global empire
script_client.h File Reference
#include "luascript_types.h"
+ Include dependency graph for script_client.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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. More...
 
bool script_client_init ()
 Initialize the scripting state. More...
 
void script_client_free ()
 Free the scripting data. More...
 
bool script_client_do_string (const char *str)
 Parse and execute the script in str. More...
 
bool script_client_do_file (const char *filename)
 Parse and execute the script at filename. More...
 
void script_client_state_load (struct section_file *file)
 Load the scripting state from file. More...
 
void script_client_state_save (struct section_file *file)
 Save the scripting state to file. More...
 
void script_client_signal_connect (const char *signal_name, const char *callback_name)
 
void script_client_signal_emit (const char *signal_name,...)
 Invoke all the callback functions attached to a given signal. More...
 
const char * script_client_signal_list ()
 

Function Documentation

◆ script_client_callback_invoke()

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 91 of file script_client.cpp.

◆ script_client_do_file()

bool script_client_do_file ( const char *  filename)

Parse and execute the script at filename.

Definition at line 81 of file script_client.cpp.

Referenced by qload_lua_script(), and qreload_lua_script().

◆ script_client_do_string()

bool script_client_do_string ( const char *  str)

Parse and execute the script in str.

Definition at line 71 of file script_client.cpp.

◆ script_client_free()

void script_client_free ( )

Free the scripting data.

Definition at line 256 of file script_client.cpp.

Referenced by client_exit().

◆ script_client_init()

bool script_client_init ( )

Initialize the scripting state.

Definition at line 170 of file script_client.cpp.

Referenced by client_main().

◆ script_client_signal_connect()

void script_client_signal_connect ( const char *  signal_name,
const char *  callback_name 
)

◆ script_client_signal_emit()

void script_client_signal_emit ( const char *  signal_name,
  ... 
)

Invoke all the callback functions attached to a given signal.

Definition at line 293 of file script_client.cpp.

Referenced by handle_research_info().

◆ script_client_signal_list()

const char* script_client_signal_list ( )

◆ script_client_state_load()

void script_client_state_load ( struct section_file file)

Load the scripting state from file.

Definition at line 272 of file script_client.cpp.

◆ script_client_state_save()

void script_client_state_save ( struct section_file file)

Save the scripting state to file.

Definition at line 284 of file script_client.cpp.