Beispiel #1
0
    ////////////////#########################################################################################################////////////
    ////////////////#########################################################################################################////////////
    ////////////////#########################################################################################################////////////

    //已换AskPingSS
    //eMsgToGSToSSFromGC_AskPingSS
    public void EmsgToss_AskPing()
    {
        GCToSS.AskPingSS pMsg = new GCToSS.AskPingSS()
        {
            time = GetNowTime()
        };
        NetworkManager.Instance.SendMsg(pMsg, (int)pMsg.msgnum);
    }
Beispiel #2
0
        private ErrorCode OnMsgToGstoSsfromGcAskPingSs(byte[] data, int offset, int size, int msgID)
        {
            if (!this._logicInited)
            {
                this.SetInited(true, true);
            }

            GCToSS.AskPingSS msgPing = new GCToSS.AskPingSS();
            msgPing.MergeFrom(data, offset, size);
            GSToGC.PingRet retMsg = new GSToGC.PingRet
            {
                Time = msgPing.Time,
                Flag = 1
            };
            GS.instance.PostToGameClient(this.id, retMsg, ( int )GSToGC.MsgID.EMsgToGcfromGsGcaskPingRet);
            return(ErrorCode.Success);
        }