Наследование: 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;
 }