void IUnitVisitor.Visit(Player player) { if (player.World.HasServerLogic && (player.IsVisibilityChanged || mapGrid.gridCellOutOfRangeTimer.Passed)) { mapGrid.UpdateVisibility(player, false); mapGrid.visibilityChangedEntities.Add(player); } HandleRelocation(player); }
public void UpdateVisibilityFor(Player player) => mapGrid.UpdateVisibility(player, true);