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(); }
public void EmpireLeaderChange(Empire empire, Leader leader) { onEmpireLeaderChange(empire, leader); UpdateEmpireVisibility(leader.GetEmpire()); }
public void LeaderDeath(Leader leader) { onLeaderDeath(leader); UpdateEmpireVisibility(leader.GetEmpire()); }
public void LeaderLoyaltyChange(Leader leader) { onLeaderLoyaltyChanged(leader); UpdateEmpireVisibility(leader.GetEmpire()); }