상속: CritterChainEventArgs
예제 #1
0
 // called by engine
 bool RaiseUseSkillOnMe(Critter who_use, int skill)
 {
     if (UseSkillOnMe != null)
     {
         var e = new CritterUseSkillOnMeEventArgs(this, who_use, skill);
         UseSkillOnMe(this, e);
         return(e.Prevent);
     }
     return(false);
 }
예제 #2
0
 // called by engine
 bool RaiseUseSkillOnMe(Critter who_use, int skill)
 {
     if (UseSkillOnMe != null)
     {
         var e = new CritterUseSkillOnMeEventArgs(this, who_use, skill);
         UseSkillOnMe(this, e);
         return e.Prevent;
     }
     return false;
 }