Example #1
0
 public void CarryChaos()
 {
     ApocalypsisEventArgs args = new ApocalypsisEventArgs();
     Console.WriteLine("*earthquake, million demons began carry the chaos in the name of Satan*");
     args.Damage = 10;
     OnApocalypsisBegan(args);
 }
Example #2
0
 protected virtual void OnApocalypsisBegan(ApocalypsisEventArgs e)
 {
     if (ApocalypsisEvent != null)
         ApocalypsisEvent(this, e);
 }
Example #3
0
 public virtual void React(ApocalypsisEventArgs e)
 {
     Console.WriteLine("{0}: We'll gonna die!", this.Name);
 }
Example #4
0
 public static void ReactionOfAnimals(object sender, ApocalypsisEventArgs e)
 {
     react(e);
 }