Exemple #1
0
        protected virtual bool OnPlayerDeath(PlayerDeathEventArgs e)
        {
            Contract.Requires <ArgumentNullException>(e != null);

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

            return(e.Handled);
        }
Exemple #2
0
        protected virtual bool OnPlayerDeath(PlayerDeathEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException();
            }

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

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

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

              return e.Handled;
        }