Inheritance: CritterChainEventArgs
示例#1
0
 // called by native
 bool RaiseTalk(Critter cr_talk, bool attach, uint talk_count)
 {
     if (Talk != null)
     {
         var e = new CritterTalkEventArgs(this, cr_talk, attach, talk_count);
         Talk(this, e);
         return(!e.Prevent);
     }
     return(true);
 }
示例#2
0
 // called by native
 bool RaiseTalk(Critter cr_talk, bool attach, uint talk_count)
 {
     if (Talk != null)
     {
         var e = new CritterTalkEventArgs(this, cr_talk, attach, talk_count);
         Talk(this, e);
         return !e.Prevent;
     }
     return true;
 }