Example #1
0
        /// <summary>
        /// 获取所有的组名字
        /// </summary>
        /// <returns></returns>
        public string[] GetAllGroupNames()
        {
            List <string> list = new List <string>();

            for (var index = 0; index < groups.Count; index++)
            {
                ResGroupCfg scene = groups[index];
                list.Add(scene.groupName);
            }

            return(list.ToArray());
        }
Example #2
0
        public ResGroupCfg GetGroupInfo(string groupName)
        {
            for (var index = 0; index < groups.Count; index++)
            {
                ResGroupCfg scene = groups[index];
                if (groupName == scene.groupName)
                {
                    return(scene);
                }
            }

            return(null);
        }
Example #3
0
        /// <summary>
        /// 获取某个组包含的资源列表
        /// </summary>
        /// <param name="groupName"></param>
        /// <returns></returns>
        public string[] GetAssetsNames(string groupName)
        {
            List <string> list = new List <string>();

            if (!string.IsNullOrEmpty(groupName))
            {
                for (var index = 0; index < groups.Count; index++)
                {
                    ResGroupCfg scene = groups[index];
                    if (scene.groupName == groupName)
                    {
                        return(scene.keys.ToArray());
                    }
                }
            }

            return(list.ToArray());
        }