Beispiel #1
0
        public void ExecCommand(IFrameCommand cmd)
        {
            Player player = Singleton <GamePlayerCenter> .GetInstance().GetPlayer(cmd.playerID);

            if (((player != null) && (player.Captain != 0)) && ActorHelper.IsHostCampActor(ref player.Captain))
            {
                KillDetailInfo info = new KillDetailInfo {
                    Killer    = player.Captain,
                    bSelfCamp = true,
                    Type      = KillDetailInfoType.Info_Type_Reconnect
                };
                Singleton <EventRouter> .instance.BroadCastEvent <KillDetailInfo>(EventID.AchievementRecorderEvent, info);

                Singleton <EventRouter> .instance.BroadCastEvent <bool, uint>(EventID.DisConnectNtf, false, cmd.playerID);
            }
        }
Beispiel #2
0
        public void ExecCommand(IFrameCommand cmd)
        {
            Player player = Singleton <GamePlayerCenter> .GetInstance().GetPlayer(cmd.playerID);

            if (player != null && player.Captain)
            {
                if (ActorHelper.IsHostCampActor(ref player.Captain))
                {
                    KillDetailInfo killDetailInfo = new KillDetailInfo();
                    killDetailInfo.Killer    = player.Captain;
                    killDetailInfo.bSelfCamp = true;
                    killDetailInfo.Type      = KillDetailInfoType.Info_Type_Reconnect;
                    Singleton <EventRouter> .get_instance().BroadCastEvent <KillDetailInfo>(EventID.AchievementRecorderEvent, killDetailInfo);

                    Singleton <EventRouter> .get_instance().BroadCastEvent <bool, uint>(EventID.DisConnectNtf, false, cmd.playerID);
                }
                Singleton <CBattleSystem> .GetInstance().m_battleEquipSystem.ExecuteInOutEquipShopFrameCommand(0, ref player.Captain);
            }
        }
Beispiel #3
0
        public void ExecCommand(IFrameCommand cmd)
        {
            Player player = Singleton <GamePlayerCenter> .GetInstance().GetPlayer(cmd.playerID);

            if ((player != null) && (player.Captain != 0))
            {
                if (ActorHelper.IsHostCampActor(ref player.Captain))
                {
                    KillDetailInfo info = new KillDetailInfo {
                        Killer    = player.Captain,
                        bSelfCamp = true,
                        Type      = KillDetailInfoType.Info_Type_RunningMan
                    };
                    Singleton <EventRouter> .instance.BroadCastEvent <KillDetailInfo>(EventID.AchievementRecorderEvent, info);
                }
                Singleton <EventRouter> .instance.BroadCastEvent <Player>(EventID.PlayerRunAway, player);

                player.Captain.handle.ActorControl.SetOffline(true);
            }
        }
        public void ExecCommand(IFrameCommand cmd)
        {
            Player player = Singleton <GamePlayerCenter> .GetInstance().GetPlayer(cmd.playerID);

            if (player != null && player.Captain)
            {
                if (ActorHelper.IsHostCampActor(ref player.Captain))
                {
                    KillDetailInfo killDetailInfo = new KillDetailInfo();
                    killDetailInfo.Killer    = player.Captain;
                    killDetailInfo.bSelfCamp = true;
                    killDetailInfo.Type      = KillDetailInfoType.Info_Type_RunningMan;
                    Singleton <EventRouter> .get_instance().BroadCastEvent <KillDetailInfo>(EventID.AchievementRecorderEvent, killDetailInfo);
                }
                Singleton <EventRouter> .get_instance().BroadCastEvent <Player>(EventID.PlayerRunAway, player);

                player.Captain.get_handle().ActorControl.SetOffline(true);
                Singleton <CBattleSystem> .GetInstance().m_battleEquipSystem.ExecuteInOutEquipShopFrameCommand(0, ref player.Captain);
            }
        }
        public void ExecCommand(IFrameCommand cmd)
        {
            Player player = Singleton <GamePlayerCenter> .instance.GetPlayer(cmd.playerID);

            if (player != null && player.Captain)
            {
                PoolObjHandle <ActorRoot> orignalActor = player.Captain.handle.ActorControl.GetOrignalActor();
                if (orignalActor)
                {
                    if (ActorHelper.IsHostCampActor(ref orignalActor))
                    {
                        KillDetailInfo killDetailInfo = new KillDetailInfo();
                        killDetailInfo.Killer    = orignalActor;
                        killDetailInfo.bSelfCamp = true;
                        killDetailInfo.Type      = KillDetailInfoType.Info_Type_Disconnect;
                        Singleton <EventRouter> .instance.BroadCastEvent <KillDetailInfo>(EventID.AchievementRecorderEvent, killDetailInfo);

                        Singleton <EventRouter> .instance.BroadCastEvent <bool, uint>(EventID.DisConnectNtf, true, cmd.playerID);
                    }
                    orignalActor.handle.ActorControl.SetOffline(true);
                }
                Singleton <CBattleSystem> .GetInstance().m_battleEquipSystem.ExecuteInOutEquipShopFrameCommand(0, ref player.Captain);
            }
        }