Public Member Functions | |
lua_event_filter (game_lua_kernel &lk, int idx, const config &args) | |
bool | operator() (const game_events::queued_event &event_info) const override |
Runs the filter and returns whether it passes on the given event. More... | |
~lua_event_filter () | |
void | serialize (config &cfg) const override |
Serializes the filter into a config, if possible. More... | |
Public Member Functions inherited from game_events::event_filter | |
virtual bool | can_serialize () const |
Returns true if it is possible to serialize the filter into a config. More... | |
virtual | ~event_filter ()=default |
event_filter ()=default | |
Private Attributes | |
game_lua_kernel & | lk |
int | ref_ |
vconfig | args_ |
Definition at line 4173 of file game_lua_kernel.cpp.
|
inline |
Definition at line 4175 of file game_lua_kernel.cpp.
References lk, ref_, and game_lua_kernel::save_wml_event().
|
inline |
Definition at line 4184 of file game_lua_kernel.cpp.
References game_lua_kernel::clear_wml_event(), lk, and ref_.
|
inlineoverridevirtual |
Runs the filter and returns whether it passes on the given event.
Implements game_events::event_filter.
Definition at line 4179 of file game_lua_kernel.cpp.
References args_, lk, ref_, and game_lua_kernel::run_wml_event().
|
inlineoverridevirtual |
Serializes the filter into a config, if possible.
Reimplemented from game_events::event_filter.
Definition at line 4188 of file game_lua_kernel.cpp.
References config::add_child().
|
private |
Definition at line 4194 of file game_lua_kernel.cpp.
Referenced by operator()().
|
private |
Definition at line 4192 of file game_lua_kernel.cpp.
Referenced by lua_event_filter(), operator()(), and ~lua_event_filter().
|
private |
Definition at line 4193 of file game_lua_kernel.cpp.
Referenced by lua_event_filter(), operator()(), and ~lua_event_filter().