コード例 #1
0
        /// <summary>
        /// 从服务器获取
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        public int GetRoleKuaFuFuBenRoleCount(int roleId)
        {
            int roleCount = 0;

            try
            {
                ITianTiService kuaFuService = GetKuaFuService();
                if (null != kuaFuService)
                {
                    object result = kuaFuService.GetRoleExtendData(ClientInfo.ServerId, roleId, (int)KuaFuRoleExtendDataTypes.GameFuBenRoleCount);
                    if (null != result)
                    {
                        roleCount = (int)result;
                    }
                }
            }
            catch (System.Exception ex)
            {
                LogManager.WriteExceptionUseCache(ex.ToString());
            }

            return(roleCount);
        }