Пример #1
0
    private void OnLeaderLoyaltyChange(Leader leader)
    {
        if (leadersControlled.Contains(leader))
        {
            leadersControlled.Remove(leader);
            if (empires.Contains(leader.GetEmpire()))
            {
                RemoveEmpire(leader.GetEmpire());
            }
        }

        if (leader.ControlledBy() == this)
        {
            leadersControlled.Add(leader);
            if (!empires.Contains(leader.GetEmpire()))
            {
                AddEmpire(leader.GetEmpire());
            }
        }
        UpdateStats();
    }
Пример #2
0
 public void EmpireLeaderChange(Empire empire, Leader leader)
 {
     onEmpireLeaderChange(empire, leader);
     UpdateEmpireVisibility(leader.GetEmpire());
 }
Пример #3
0
 public void LeaderDeath(Leader leader)
 {
     onLeaderDeath(leader);
     UpdateEmpireVisibility(leader.GetEmpire());
 }
Пример #4
0
 public void LeaderLoyaltyChange(Leader leader)
 {
     onLeaderLoyaltyChanged(leader);
     UpdateEmpireVisibility(leader.GetEmpire());
 }