Ejemplo n.º 1
0
        /// <summary> 推送协议 </summary>
        /// <param name="session">session</param>
        /// <param name="model">战斗Vo</param>
        public void SendProtocol(TGGSession session, FightVo model)
        {
            var aso = new ASObject(FIGHT_PERSONAL_ENTER.GetInstance().BuildData(Convert.ToInt32(ResultType.SUCCESS), model));
            var pv  = session.InitProtocol((int)ModuleNumber.FIGHT, (int)FightCommand.FIGHT_PERSONAL_ENTER, (int)ResponseType.TYPE_SUCCESS, aso);

            session.SendData(pv);
        }
Ejemplo n.º 2
0
 /// <summary>FIGHT_PERSONAL_ENTER单体模式</summary>
 public static FIGHT_PERSONAL_ENTER GetInstance()
 {
     return(_objInstance ?? (_objInstance = new FIGHT_PERSONAL_ENTER()));
 }