Inheritance: CritterChainEventArgs
Esempio n. 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);
 }
Esempio n. 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;
 }