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