void Camera::Event_AddedToWorld() { GridType* grid = m_source->GetViewPoint().m_grid; MANGOS_ASSERT(grid); grid->AddWorldObject(this); UpdateVisibilityForOwner(); }
void Camera::UpdateForCurrentViewPoint() { m_gridRef.unlink(); if (GridType* grid = m_source->GetViewPoint().m_grid) grid->AddWorldObject(this); UpdateVisibilityForOwner(); }
void Camera::UpdateForCurrentViewPoint() { m_gridRef.unlink(); if (GridType* grid = m_source->GetViewPoint().m_grid) grid->AddWorldObject(this); m_owner.SetUInt64Value(PLAYER_FARSIGHT, (m_source == &m_owner ? 0 : m_source->GetGUID())); UpdateVisibilityForOwner(); }
void Camera::Event_AddedToWorld() { if (!IsInitialized()) ResetView(); GridType* grid = GetBody()->GetViewPoint().m_grid; MANGOS_ASSERT(grid); grid->AddWorldObject(this); UpdateVisibilityForOwner(); }