Пример #1
0
        public void ActivateMenhir(LocationCardControl lcc, int value)
        {
            lcc.MenhirValue = value;

            foreach (var s in LocationsHelper.GetNeighbourLCCs(lcc))
            {
                AddLocationCardToMap(s);
            }
        }
Пример #2
0
        public void AddLocationCardToMap(LocationCardControl loc, int alsoActivateMenhirWithValue = -1)
        {
            //location is already on map
            if (LocationCards.Any(_ => _.LocationNumber == loc.LocationNumber))
            {
                return;
            }

            Controls.Add(loc);
            if (alsoActivateMenhirWithValue >= 0)
            {
                ActivateMenhir(loc, alsoActivateMenhirWithValue);
            }

            RefreshMapLayout();
        }