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