protected virtual void OnHostNavigateRoom(HostNavigateRoomEventArgs e) { EventHandler <HostNavigateRoomEventArgs> handler = HostNavigateRoom; if (handler != null) { handler(this, e); } }
protected void RaiseOnHostNavigateRoom(InterceptedEventArgs e) { if (HostNavigateRoom != null) { var args = new HostNavigateRoomEventArgs(e.Continuation, e.Step, e.Packet); OnHostNavigateRoom(args); e.Cancel = args.Cancel; e.WasContinued = args.WasContinued; } }
protected void RaiseOnHostNavigateRoom(InterceptedEventArgs e) { if (HostNavigateRoom != null) { var args = new HostNavigateRoomEventArgs(e.Continuation, e.Step, e.Packet); OnHostNavigateRoom(args); e.Cancel = args.Cancel; e.WasContinued = args.WasContinued; } }
protected virtual void OnHostNavigateRoom(HostNavigateRoomEventArgs e) { EventHandler<HostNavigateRoomEventArgs> handler = HostNavigateRoom; if (handler != null) handler(this, e); }
// We can block/replace packets in detected in-game events. private void Triggers_HostNavigateRoom(object sender, HostNavigateRoomEventArgs e) { // Force people to come to The Nut House. if (Hotel == HHotel.Com && e.RoomId != 68219082) e.Replacement.Replace<int>(68219082); }