コード例 #1
0
        protected virtual void OnHostNavigateRoom(HostNavigateRoomEventArgs e)
        {
            EventHandler <HostNavigateRoomEventArgs> handler = HostNavigateRoom;

            if (handler != null)
            {
                handler(this, e);
            }
        }
コード例 #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;
            }
        }
コード例 #3
0
ファイル: HTriggers.cs プロジェクト: habb0/Sulakore
        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;
            }
        }
コード例 #4
0
ファイル: HTriggers.cs プロジェクト: habb0/Sulakore
 protected virtual void OnHostNavigateRoom(HostNavigateRoomEventArgs e)
 {
     EventHandler<HostNavigateRoomEventArgs> handler = HostNavigateRoom;
     if (handler != null) handler(this, e);
 }
コード例 #5
0
ファイル: Main.cs プロジェクト: WhosDis/Tanji
 // 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);
 }