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