Пример #1
0
        /// <summary>
        /// 获取一个副本
        /// </summary>
        /// <param name="userID"></param>
        /// <param name="plotID"></param>
        /// <returns></returns>
        public static UserPlotInfo GetUserPlotInfo(string userID, int plotID)
        {
            UserPlotInfo userPlotInfo = null;
            var          package      = UserPlotPackage.Get(userID);

            if (package != null)
            {
                userPlotInfo = package.PlotPackage.Find(s => s.PlotID == plotID);
            }
            return(userPlotInfo);
        }
Пример #2
0
        /// <summary>
        ///  获取全部副本
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        public static List <UserPlotInfo> UserPlotFindAll(string userID)
        {
            List <UserPlotInfo> userPlotList = new List <UserPlotInfo>();
            var package = UserPlotPackage.Get(userID);

            if (package != null)
            {
                userPlotList = package.PlotPackage.ToList();
            }
            return(userPlotList);
        }