Ejemplo n.º 1
0
        protected virtual void OnHostNavigateRoom(HostNavigateRoomEventArgs e)
        {
            EventHandler <HostNavigateRoomEventArgs> handler = HostNavigateRoom;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
        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;
            }
        }
Ejemplo n.º 3
0
        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;
            }
        }
Ejemplo n.º 4
0
 protected virtual void OnHostNavigateRoom(HostNavigateRoomEventArgs e)
 {
     EventHandler<HostNavigateRoomEventArgs> handler = HostNavigateRoom;
     if (handler != null) handler(this, e);
 }
Ejemplo n.º 5
0
 // 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);
 }