private void VictoryManagementService_VictoryConditionRaised(object sender, VictoryConditionRaisedEventArgs e)
 {
     Diagnostics.Log("Victory condition (name: '{0}') was raised for empire (index: {1}, name: '{2}').", new object[]
     {
         e.VictoryCondition.Name,
         e.Empire.Index,
         e.Empire.Name
     });
     this.victoryConditionsRaised.Add(e);
 }
Example #2
0
 protected virtual void OnVictoryConditionRaised(VictoryConditionRaisedEventArgs e)
 {
     if (!this.VictoryConditionsRaisedThisTurn.Contains(e.VictoryCondition))
     {
         this.VictoryConditionsRaisedThisTurn.Add(e.VictoryCondition);
     }
     if (this.VictoryConditionRaised != null)
     {
         this.VictoryConditionRaised(this, e);
     }
 }