Ejemplo n.º 1
0
 public PotionSoldEventArgs(Potion potion, Employee seller) : base(potion)
 {
     this.Seller = seller;
 }
Ejemplo n.º 2
0
 public PotionCreatedEventArgs(Potion potion, Employee creator) : base(potion)
 {
     this.Creator = creator;
 }
Ejemplo n.º 3
0
 public PotionEventArgs(Potion potion)
 {
     this.Potion = potion;
 }
Ejemplo n.º 4
0
 private void OnPotionSold(Potion potion, Shopkeeper shopkeeper) => PotionSold?.Invoke(this, new PotionSoldEventArgs(potion, shopkeeper));
Ejemplo n.º 5
0
 private void OnPotionCreated(Potion potion, Apothecary apothecary) => PotionCreated?.Invoke(this, new PotionCreatedEventArgs(potion, apothecary));
Ejemplo n.º 6
0
 private void OnPotionResearched(Potion potion) => PotionResearched?.Invoke(this, new PotionEventArgs(potion));