示例#1
0
文件: EXIT.cs 项目: Lantnr/MyTest
        /// <summary>退出活动</summary>
        public ASObject CommandStart(TGGSession session)
        {
            var user       = session.Player.User;
            var playerdata = Common.GetInstance().GetSiegePlayer(user.id, user.player_camp);

            playerdata.state = (int)SiegePlayerType.EXIT_DEFEND;

            PlayerExit(session);                                  //(SendData)
            RemoveActivityScene(user.id);                         //移除玩家活动场景数据

            PUSH_PLAYER_EXIT.GetInstance().CommandStart(session); //给其他玩家推送  该玩家离开美浓活动
            return(new ASObject(Common.GetInstance().BuildData((int)ResultType.SUCCESS)));
        }
示例#2
0
 /// <summary>PUSH_PLAYER_EXIT单体模式</summary>
 public static PUSH_PLAYER_EXIT GetInstance()
 {
     return(ObjInstance ?? (ObjInstance = new PUSH_PLAYER_EXIT()));
 }