protected virtual bool OnTileEdit(TileEditEventArgs e) { Contract.Requires <ArgumentNullException>(e != null); try { if (this.TileEdit != null) { this.TileEdit(this, e); } } catch (Exception ex) { this.ReportEventHandlerException("TileEdit", ex); } return(e.Handled); }
protected virtual bool OnTileEdit(TileEditEventArgs e) { if (e == null) { throw new ArgumentNullException(); } try { if (this.TileEdit != null) { this.TileEdit(this, e); } } catch (Exception ex) { this.ReportEventHandlerException("TileEdit", ex); } this.WriteHadnlerDebugInfo("TileEdit", e); return(e.Handled); }
private void Net_TileEdit(object sender, TileEditEventArgs e) { if (this.isDisposed || !this.hooksEnabled || e.Handled) return; if (this.UserInteractionHandler.HandleTileEdit(e.Player, e.EditType, e.BlockType, e.Location, e.ObjectStyle)) { e.Handled = true; return; } e.Handled = this.WorldMetadataHandler.HandleTileEdit(e.Player, e.EditType, e.BlockType, e.Location, e.ObjectStyle); }
protected virtual bool OnTileEdit(TileEditEventArgs e) { Contract.Requires<ArgumentNullException>(e != null); try { if (this.TileEdit != null) this.TileEdit(this, e); } catch (Exception ex) { this.ReportEventHandlerException("TileEdit", ex); } return e.Handled; }
private void Net_PostTileEdit(object sender, TileEditEventArgs e) { if (this.isDisposed || !this.hooksEnabled || e.Handled) return; e.Handled = this.UserInteractionHandler.HandlePostTileEdit(e.Player, e.EditType, e.BlockType, e.Location, e.ObjectStyle); }