Ejemplo n.º 1
0
    /// <summary>
    /// GM指令内容
    /// </summary>
    /// <param name="contens"></param>
    //已换GMCmd
    //协议名不一致eMsgToGSToCSFromGC_GMCmd->eMsgToGSToSSFromGC_GMCmd
    public void EmsgToss_eMsgToGSToCSFromGC_GMCmd(string contens)
    {
        GCToSS.GMCmd pMsg = new GCToSS.GMCmd()
        {
            cmd = contens
        };
        NetworkManager.Instance.SendMsg(pMsg, (int)pMsg.msgnum);

        /*
         * GCToSS.AskSSGuideStepComp pmsg = new GCToSS.AskSSGuideStepComp();
         * if (contens == "a")
         * {
         * pmsg.dtype = GCToSS.AskSSGuideStepComp.edotype.ebornsolder;
         *
         * GCToSS.AskSSGuideStepComp.GuideTaskInfo tinfo = new GCToSS.AskSSGuideStepComp.GuideTaskInfo();
         * tinfo.childtype = 15;
         * tinfo.stepid = 1001;
         * pmsg.taskinfolist.Add(tinfo);
         * }
         * else
         * {
         * pmsg.dtype = GCToSS.AskSSGuideStepComp.edotype.ecomptask;
         *
         * GCToSS.AskSSGuideStepComp.GuideTaskInfo tinfo = new GCToSS.AskSSGuideStepComp.GuideTaskInfo();
         * tinfo.childtype = 15;
         * tinfo.stepid = 1010;
         * pmsg.taskinfolist.Add(tinfo);
         * }
         * NetworkManager.Instance.SendMsg(pmsg, (int)pmsg.msgid );
         * */
    }
Ejemplo n.º 2
0
 /// <summary>
 /// GM指令内容
 /// </summary>
 /// <param name="contens"></param>
 //已换GMCmd
 //协议名不一致eMsgToGSToCSFromGC_GMCmd->eMsgToGSToSSFromGC_GMCmd
 public void EmsgToss_eMsgToGSToCSFromGC_GMCmd(string contens)
 {
     GCToSS.GMCmd pMsg = new GCToSS.GMCmd()
     {
         cmd = contens
     };
     NetworkManager.Instance.SendMsg(pMsg, (int)pMsg.msgnum);
 }