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 4234 of file game_lua_kernel.cpp.
|
inline |
Definition at line 4236 of file game_lua_kernel.cpp.
References lk, ref_, and game_lua_kernel::save_wml_event().
|
inline |
Definition at line 4245 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 4240 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 4249 of file game_lua_kernel.cpp.
References config::add_child(), and cfg.
|
private |
Definition at line 4255 of file game_lua_kernel.cpp.
Referenced by operator()().
|
private |
Definition at line 4253 of file game_lua_kernel.cpp.
Referenced by lua_event_filter(), operator()(), and ~lua_event_filter().
|
private |
Definition at line 4254 of file game_lua_kernel.cpp.
Referenced by lua_event_filter(), operator()(), and ~lua_event_filter().