// 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); }
// 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; }