Inheritance: ItemChainEventArgs
Ejemplo n.º 1
0
 // called by engine
 bool RaiseSkill(Critter cr, int skill)
 {
     if (Skill != null)
     {
         var e = new ItemSkillEventArgs(this, cr, skill);
         Skill(this, e);
         return(e.Prevent);
     }
     return(false);
 }
Ejemplo n.º 2
0
 // called by engine
 bool RaiseSkill(Critter cr, int skill)
 {
     if (Skill != null)
     {
         var e = new ItemSkillEventArgs(this, cr, skill);
         Skill(this, e);
         return e.Prevent;
     }
     return false;
 }