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

                HandleRelocation(player);
            }
Beispiel #2
0
 public void UpdateVisibilityFor(Player player) => mapGrid.UpdateVisibility(player, true);