// called by engine bool RaiseEventPlaneEnd(IntPtr plane, int reason, Critter some_cr, Item some_item, ref uint res) { var args = new CritterEventPlaneBeginEndArgs(this, new NpcPlane(plane), reason, some_cr, some_item); if (PlaneEnd != null) { PlaneEnd(this, args); } if (args.Result.HasValue) { res = (uint)args.Result.Value; return(true); } return(false); }
// called by engine bool RaiseEventPlaneEnd(IntPtr plane, int reason, Critter some_cr, Item some_item, ref uint res) { var args = new CritterEventPlaneBeginEndArgs(this, new NpcPlane(plane), reason, some_cr, some_item); if (PlaneEnd != null) PlaneEnd(this, args); if (args.Result.HasValue) { res = (uint)args.Result.Value; return true; } return false; }