#include <mapgen.h>
Collaboration diagram for GenerateNotifier:Classes | |
| struct | GenNotifyEvent |
Public Member Functions | |
| GenerateNotifier ()=default | |
| GenerateNotifier (u32 notify_on, const std::set< u32 > *notify_on_deco_ids, const std::set< std::string > *notify_on_custom) | |
| bool | addEvent (GenNotifyType type, v3s16 pos) |
| bool | addDecorationEvent (v3s16 pos, u32 deco_id) |
| bool | setCustom (const std::string &key, const std::string &value) |
| void | getEvents (std::map< std::string, std::vector< v3s16 > > &map) const |
| const StringMap & | getCustomData () const |
| void | clearEvents () |
Private Member Functions | |
| bool | shouldNotifyOn (GenNotifyType type) const |
Private Attributes | |
| u32 | m_notify_on = 0 |
| const std::set< u32 > * | m_notify_on_deco_ids = nullptr |
| const std::set< std::string > * | m_notify_on_custom = nullptr |
| std::list< GenNotifyEvent > | m_notify_events |
| StringMap | m_notify_custom |
|
default |
| GenerateNotifier::GenerateNotifier | ( | u32 | notify_on, |
| const std::set< u32 > * | notify_on_deco_ids, | ||
| const std::set< std::string > * | notify_on_custom ) |
References m_notify_on, m_notify_on_custom, and m_notify_on_deco_ids.
| bool GenerateNotifier::addDecorationEvent | ( | v3s16 | pos, |
| u32 | deco_id ) |
References GENNOTIFY_DECORATION, GenerateNotifier::GenNotifyEvent::id, m_notify_events, m_notify_on_deco_ids, GenerateNotifier::GenNotifyEvent::pos, shouldNotifyOn(), and GenerateNotifier::GenNotifyEvent::type.
Referenced by Decoration::placeDeco().
Here is the call graph for this function:
Here is the caller graph for this function:| bool GenerateNotifier::addEvent | ( | GenNotifyType | type, |
| v3s16 | pos ) |
References GENNOTIFY_CUSTOM, GENNOTIFY_DECORATION, m_notify_events, GenerateNotifier::GenNotifyEvent::pos, shouldNotifyOn(), and GenerateNotifier::GenNotifyEvent::type.
Referenced by CavesRandomWalk::makeCave(), CavesV6::makeCave(), and DungeonGen::makeDungeon().
Here is the call graph for this function:
Here is the caller graph for this function:| void GenerateNotifier::clearEvents | ( | ) |
References m_notify_custom, and m_notify_events.
Referenced by EmergeThread::finishGen().
Here is the caller graph for this function:
|
inline |
References m_notify_custom.
Referenced by ModApiMapgen::l_get_mapgen_object().
Here is the caller graph for this function:| void GenerateNotifier::getEvents | ( | std::map< std::string, std::vector< v3s16 > > & | map | ) | const |
References flagdesc_gennotify, GENNOTIFY_CUSTOM, GENNOTIFY_DECORATION, itos(), m_notify_events, and FlagDesc::name.
Referenced by ModApiMapgen::l_get_mapgen_object().
Here is the call graph for this function:
Here is the caller graph for this function:| bool GenerateNotifier::setCustom | ( | const std::string & | key, |
| const std::string & | value ) |
References GENNOTIFY_CUSTOM, m_notify_custom, m_notify_on_custom, and shouldNotifyOn().
Here is the call graph for this function:
|
inlineprivate |
References m_notify_on.
Referenced by addDecorationEvent(), addEvent(), and setCustom().
Here is the caller graph for this function:
|
private |
Referenced by clearEvents(), getCustomData(), and setCustom().
|
private |
Referenced by addDecorationEvent(), addEvent(), clearEvents(), and getEvents().
|
private |
Referenced by GenerateNotifier(), and shouldNotifyOn().
|
private |
Referenced by GenerateNotifier(), and setCustom().
|
private |
Referenced by GenerateNotifier(), and addDecorationEvent().