Beispiel #1
0
        protected virtual bool OnBossSpawn(BossSpawnEventArgs e)
        {
            Contract.Requires <ArgumentNullException>(e != null);

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

            return(e.Handled);
        }
Beispiel #2
0
        protected virtual bool OnBossSpawn(BossSpawnEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException();
            }

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

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

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

              return e.Handled;
        }