예제 #1
0
        public AccountGateway GetAccountGateway(PtGuid sign)
        {
            AccountGateway accGateway;

            m_accountGatewayBySignDic.TryGetValue(ServerCommon.Network.NetworkManager.PtGuidConvertToGuid(sign), out accGateway);
            return(accGateway);
        }
예제 #2
0
 /// <summary>
 /// 签名认证
 /// </summary>
 /// <param name="sign"></param>
 /// <returns></returns>
 public bool CheckSign(PtGuid sign)
 {
     if (m_sign == ServerCommon.Network.NetworkManager.PtGuidConvertToGuid(sign))
     {
         return(true);
     }
     return(false);
 }
예제 #3
0
        /// <summary>
        /// 通知玩家服务分配信息改变
        /// </summary>
        /// <param name="userID"></param>
        /// <param name="allocSvrInfo"></param>
        public void OnNotifyPlayerSvrAllocUpdate(ref PtGuid userID, ref PtPlayerAllocSvrInfo allocSvrInfo)
        {
            //Guid ugid = Network.NetworkManager.PtGuidConvertToGuid(userID);
            //SvLogger.Debug("OnNotifyPlayerSvrAllocUpdate Begin : UsreID={0}, SvrType={1}, SvrName={2}.", ugid.ToString(), allocSvrInfo.svrType, allocSvrInfo.svrName);

            //UserSvrInfo userSvrInfo = AllocSvrMap.Instance.GetPlayerSvrInfo(ugid);

            //if (userSvrInfo != null)
            //{
            //    if (allocSvrInfo.svrType == eServerType.GAME)
            //        userSvrInfo.m_GameServerName = allocSvrInfo.svrName;
            //    else if (allocSvrInfo.svrType == eServerType.GATEWAY)
            //        userSvrInfo.m_GateWayName = allocSvrInfo.svrName;
            //}

            //SvLogger.Debug("OnNotifyPlayerSvrAllocUpdate Done.");
        }
예제 #4
0
 /// <summary>
 /// 删除角色服务分配信息
 /// </summary>
 /// <param name="charaID"></param>
 public void OnNoticeDeleteCharacterAllocSvrInfo(ref PtGuid charaID)
 {
     //Guid cgid = Network.NetworkManager.PtGuidConvertToGuid(charaID);
     //AllocSvrMap.Instance.DeleteCharaSvrInfo(cgid);
 }