![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "support.h"
Include dependency graph for api_signal_base.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| void | api_signal_connect (lua_State *L, const char *signal_name, const char *callback_name) |
| Connects a callback function to a certain signal. More... | |
| void | api_signal_remove (lua_State *L, const char *signal_name, const char *callback_name) |
| Removes a callback function to a certain signal. More... | |
| bool | api_signal_defined (lua_State *L, const char *signal_name, const char *callback_name) |
| Returns if a callback function to a certain signal is defined. More... | |
| const char * | api_signal_callback_by_index (lua_State *L, const char *signal_name, int sindex) |
| Return the name of the signal with the given index. More... | |
| const char * | api_signal_by_index (lua_State *L, int sindex) |
| Return the name of the 'index' callback function of the signal with the name 'signal_name'. More... | |
| const char* api_signal_by_index | ( | lua_State * | L, |
| int | sindex | ||
| ) |
Return the name of the 'index' callback function of the signal with the name 'signal_name'.
Definition at line 97 of file api_signal_base.cpp.
| const char* api_signal_callback_by_index | ( | lua_State * | L, |
| const char * | signal_name, | ||
| int | sindex | ||
| ) |
Return the name of the signal with the given index.
Definition at line 77 of file api_signal_base.cpp.
| void api_signal_connect | ( | lua_State * | L, |
| const char * | signal_name, | ||
| const char * | callback_name | ||
| ) |
Connects a callback function to a certain signal.
Definition at line 19 of file api_signal_base.cpp.
| bool api_signal_defined | ( | lua_State * | L, |
| const char * | signal_name, | ||
| const char * | callback_name | ||
| ) |
Returns if a callback function to a certain signal is defined.
Definition at line 57 of file api_signal_base.cpp.
| void api_signal_remove | ( | lua_State * | L, |
| const char * | signal_name, | ||
| const char * | callback_name | ||
| ) |
Removes a callback function to a certain signal.
Definition at line 38 of file api_signal_base.cpp.