public override void OnTick(HotSpringRoom room)
        {
            try 
            {
                if(room != null)
                {
                    room.KickAllPlayer();

                    //using(PlayerBussiness db = new PlayerBussiness())
                    //{
                    //    db.DisposeHotSpringRoomInfo(room.Info.ID);
                    //}

                    //GameServer.Instance.LoginServer.SendUpdatePlayerMarriedStates(room.Info.GroomID);
                    //GameServer.Instance.LoginServer.SendUpdatePlayerMarriedStates(room.Info.BrideID);

                    //GameServer.Instance.LoginServer.SendHotSpringRoomInfoToPlayer(room.Info.GroomID, false, room.Info);
                    //GameServer.Instance.LoginServer.SendHotSpringRoomInfoToPlayer(room.Info.BrideID, false, room.Info);

                    //HotSpringRoomMgr.RemoveHotSpringRoom(room);

                    GSPacketIn pkg = new GSPacketIn((short)ePackageType.MARRY_ROOM_DISPOSE);
                    pkg.WriteInt(room.Info.ID);
                    WorldMgr.MarryScene.SendToALL(pkg);

                    room.StopTimer();
                }
            }
            catch(Exception ex)
            {
                if (log.IsErrorEnabled)
                    log.Error("OnTick",ex);
            }
        }
 public override void OnTick(HotSpringRoom room)
 {
     try
     {
         if (room != null)
         {
             room.KickAllPlayer();
             GSPacketIn pkg = new GSPacketIn((short)ePackageType.HOTSPRING_ROOM_REMOVE);
             pkg.WriteInt(room.Info.RoomID);
             WorldMgr.HotSpring.SendToALL(pkg);
             room.StopTimer();
         }
     }
     catch (Exception exception)
     {
         if (log.IsErrorEnabled)
         {
             log.Error("OnTick", exception);
         }
     }
 }
Exemplo n.º 3
0
 public override void OnTick(HotSpringRoom room)
 {
     try
     {
         if (room != null)
         {
             room.KickAllPlayer();
             GSPacketIn pkg = new GSPacketIn((short)ePackageType.HOTSPRING_ROOM_REMOVE);
             pkg.WriteInt(room.Info.RoomID);
             WorldMgr.HotSpring.SendToALL(pkg);
             room.StopTimer();
         }
     }
     catch (Exception exception)
     {
         if (log.IsErrorEnabled)
         {
             log.Error("OnTick", exception);
         }
     }
 }
Exemplo n.º 4
0
        public override void OnTick(HotSpringRoom room)
        {
            try
            {
                if (room != null)
                {
                    room.KickAllPlayer();

                    //using(PlayerBussiness db = new PlayerBussiness())
                    //{
                    //    db.DisposeHotSpringRoomInfo(room.Info.ID);
                    //}

                    //GameServer.Instance.LoginServer.SendUpdatePlayerMarriedStates(room.Info.GroomID);
                    //GameServer.Instance.LoginServer.SendUpdatePlayerMarriedStates(room.Info.BrideID);

                    //GameServer.Instance.LoginServer.SendHotSpringRoomInfoToPlayer(room.Info.GroomID, false, room.Info);
                    //GameServer.Instance.LoginServer.SendHotSpringRoomInfoToPlayer(room.Info.BrideID, false, room.Info);

                    //HotSpringRoomMgr.RemoveHotSpringRoom(room);

                    GSPacketIn pkg = new GSPacketIn((short)ePackageType.MARRY_ROOM_DISPOSE);
                    pkg.WriteInt(room.Info.ID);
                    WorldMgr.MarryScene.SendToALL(pkg);

                    room.StopTimer();
                }
            }
            catch (Exception ex)
            {
                if (log.IsErrorEnabled)
                {
                    log.Error("OnTick", ex);
                }
            }
        }