Inheritance: CritterChainEventArgs
示例#1
0
 // called by native
 bool RaiseBarter(Critter cr_barter, bool attach, uint barter_count)
 {
     if (Barter != null)
     {
         var e = new CritterBarterEventArgs(this, cr_barter, attach, barter_count);
         Barter(this, e);
         return(!e.Prevent);
     }
     return(true);
 }
示例#2
0
 // called by native
 bool RaiseBarter(Critter cr_barter, bool attach, uint barter_count)
 {
     if (Barter != null)
     {
         var e = new CritterBarterEventArgs(this, cr_barter, attach, barter_count);
         Barter(this, e);
         return !e.Prevent;
     }
     return true;
 }