Пример #1
0
    public void UpdateGarnison()
    {
        if (Player.curRegion == null)
        {
            return;
        }
        var list = Player.curRegion.data.garnison;

        toGarnison.UpdateList(list.ConvertAll(x => (object)x));
    }
Пример #2
0
    public void UpdateInfo()
    {
        list.Clear();
        foreach (var d in Diplomacy.diplomacies)
        {
            if (d != diplomacy)
            {
                list.Add(new DiplomacyProxi(diplomacy, d));
            }
        }

        list.Sort((x, y) => x.relation > y.relation ? -1 : x.relation < y.relation ? 1 : 0);
        DiplomacyFiller.UpdateList(list.ConvertAll(x => (object)x));
    }
Пример #3
0
 public void UpdateArmy()
 {
     regimentsCount.text = $"{curArmy.army.Count}/{Person.MaxRegiment}";
     army.UpdateList(curArmy.army.ConvertAll(x => (object)x));
 }
Пример #4
0
 public void Show(List <Person> persons)
 {
     PersonFiller.UpdateList(persons.ConvertAll(x => (object)x));
 }