public void SetUnitVisibilities(SightFinder SightFinder) { foreach (var unit in _UnitViews) { SetUnitVisibility(unit.Key, SightFinder.GetUnitVisibility(unit.Key)); } }
public void AddUnitView(UnitView UnitView, SightFinder SightFinder) { _UnitViews.Add(UnitView.Unit, UnitView); if (SightFinder != null) { SetUnitVisibility(UnitView.Unit, SightFinder.GetUnitVisibility(UnitView.Unit)); } }