Exemplo n.º 1
0
        public void AddFolder(string folderAssetsPath, ABConfigFolderHandler.SerializeData data)
        {
            var rootFolder = FindResRootFolder(folderAssetsPath);

            if (rootFolder != null)
            {
                Log.w("Already Add Root Folder.");
                return;
            }

            if (!Directory.Exists(EditorUtils.AssetsPath2ABSPath(folderAssetsPath)))
            {
                Log.w("Folder not Exit.");
                return;
            }

            ABConfigFolderHandler folder = new ABConfigFolderHandler();

            if (data == null)
            {
                folder.BuildAsFileSystem(folderAssetsPath);
            }
            else
            {
                folder.BuildAsConfigFile(data);
            }

            if (m_RootFolderArray == null)
            {
                m_RootFolderArray = new List <ABConfigFolderHandler>();
            }

            m_RootFolderArray.Add(folder);
        }
Exemplo n.º 2
0
 public GenerateConfigVisitor(ABConfigFolderHandler handler)
 {
     m_Handler = handler;
 }