Inheritance: CritterChainEventArgs
 // 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);
 }
Exemple #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;
 }