#include <GridNotifiers.hpp>
◆ GridUnitSpawnNotifier()
GridUnitSpawnNotifier::GridUnitSpawnNotifier |
( |
const std::shared_ptr< Horizon::Zone::Unit > & |
unit | ) |
|
|
inlineexplicit |
87 { }
std::weak_ptr< Horizon::Zone::Unit > _unit
Definition: GridNotifiers.hpp:83
◆ notify()
176{
178
180 return;
181
182 std::shared_ptr<Horizon::Zone::Unit> src_unit =
_unit.lock();
183
185 if (iter->source() == nullptr)
186 continue;
187
188 std::shared_ptr<Player> tpl = iter->source()->template downcast<Player>();
189
190 if (src_unit == nullptr || src_unit->guid() == tpl->guid())
191 continue;
192
193 if (tpl->get_session() == nullptr || tpl->get_session()->clif() == nullptr)
194 continue;
195
196 tpl->spawn_unit_in_viewport(src_unit);
197 }
198}
Forward declaration of GridRefManager, the class that manages GridReference.
Definition: GridRefManager.hpp:41
iterator begin()
Definition: GridRefManager.hpp:54
uint32_t get_size() const
returns the number of Elements in the list (not including the head and tail Elements or the first and...
Definition: Head.hpp:69
Definition: GameLogicProcess.hpp:43
References _unit, GridRefManager< OBJECT >::begin(), and Horizon::Structures::LinkedList::Head::get_size().
◆ Visit() [1/10]
◆ Visit() [2/10]
◆ Visit() [3/10]
◆ Visit() [4/10]
◆ Visit() [5/10]
◆ Visit() [6/10]
template<class NOT_INTERESTED >
void GridUnitSpawnNotifier::Visit |
( |
GridRefManager< NOT_INTERESTED > & |
| ) |
|
|
inline |
◆ Visit() [7/10]
◆ Visit() [8/10]
◆ Visit() [9/10]
◆ Visit() [10/10]
◆ _unit
The documentation for this struct was generated from the following files: