예제 #1
0
        protected virtual bool OnChestOpen(ChestOpenEventArgs e)
        {
            Contract.Requires <ArgumentNullException>(e != null);

            try {
                if (this.ChestOpen != null)
                {
                    this.ChestOpen(this, e);
                }
            } catch (Exception ex) {
                this.ReportEventHandlerException("ChestOpen", ex);
            }

            return(e.Handled);
        }
예제 #2
0
        protected virtual bool OnChestOpen(ChestOpenEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException();
            }

            try {
                if (this.ChestOpen != null)
                {
                    this.ChestOpen(this, e);
                }
            } catch (Exception ex) {
                this.ReportEventHandlerException("ChestOpen", ex);
            }

            this.WriteHadnlerDebugInfo("ChestOpen", e);
            return(e.Handled);
        }
        protected virtual bool OnChestOpen(ChestOpenEventArgs e)
        {
            Contract.Requires<ArgumentNullException>(e != null);

              try {
            if (this.ChestOpen != null)
              this.ChestOpen(this, e);
              } catch (Exception ex) {
            this.ReportEventHandlerException("ChestOpen", ex);
              }

              return e.Handled;
        }
        private void Net_ChestOpen(object sender, ChestOpenEventArgs e)
        {
            if (this.isDisposed || !this.hooksEnabled || e.Handled)
            return;

              e.Handled = this.UserInteractionHandler.HandleChestOpen(e.Player, e.ChestIndex, e.Location);
        }