Inheritance: CritterChainEventArgs
コード例 #1
0
ファイル: Critter.Events.cs プロジェクト: 2cwldys/fodev-tools
 // 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
ファイル: Critter.Events.cs プロジェクト: rotators/fomono
 // 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;
 }