public AccountGateway GetAccountGateway(PtGuid sign) { AccountGateway accGateway; m_accountGatewayBySignDic.TryGetValue(ServerCommon.Network.NetworkManager.PtGuidConvertToGuid(sign), out accGateway); return(accGateway); }
/// <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); }
/// <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."); }
/// <summary> /// 删除角色服务分配信息 /// </summary> /// <param name="charaID"></param> public void OnNoticeDeleteCharacterAllocSvrInfo(ref PtGuid charaID) { //Guid cgid = Network.NetworkManager.PtGuidConvertToGuid(charaID); //AllocSvrMap.Instance.DeleteCharaSvrInfo(cgid); }