private void Net_DoorUse(object sender, DoorUseEventArgs e) { if (this.isDisposed || !this.hooksEnabled || e.Handled) { return; } e.Handled = this.UserInteractionHandler.HandleDoorUse(e.Player, e.Location, e.IsOpening, e.Direction); }
private void Net_DoorUse(object sender, DoorUseEventArgs e) { if (this.isDisposed || !this.hooksEnabled || e.Handled) { return; } bool isOpening = (e.action == DoorAction.OpenDoor || e.action == DoorAction.OpenTallGate || e.action == DoorAction.OpenTrapdoor); e.Handled = this.UserInteractionHandler.HandleDoorUse(e.Player, e.Location, isOpening, e.Direction); }
private void Net_DoorUse(object sender, DoorUseEventArgs e) { if (this.isDisposed || !this.hooksEnabled || e.Handled) { return; } if (this.CircuitHandler != null) { e.Handled = this.CircuitHandler.HandleDoorUse(e.Player, e.Location, e.action, null, e.Direction); } }