Esempio n. 1
0
 protected override void SetupResources()
 {
     foreach (string s in directories)
     {
         ResourceManager.AddCommonArchive(rootDir + s, "Folder");
     }
 }
        /// <summary>
        /// Adds the searchpaths from "EngineConfig.xml" to resources
        /// </summary>
        protected virtual void SetupResources()
        {
            EngineConfig config = new EngineConfig();

            config.ReadXml(ConfigFile);

            foreach (EngineConfig.FilePathRow row in config.FilePath)
            {
                ResourceManager.AddCommonArchive(row.src, row.type);
            }
        }
Esempio n. 3
0
        public void AddArchive(string assetType, List <string> assetPathList, string archiveType)
        {
            if (assetType == "Common")
            {
                ResourceManager.AddCommonArchive(assetPathList, archiveType);
                return;
            }
            if (!archiveDict.ContainsKey(assetType))
            {
                archiveDict[assetType] = new MVResourceManager();
            }
            MVResourceManager manager = archiveDict[assetType];

            manager.AddArchive(assetPathList, archiveType);
        }
Esempio n. 4
0
        protected void SetupResources()
        {
            EngineConfig config = new EngineConfig();

            // load the config file
            // relative from the location of debug and releases executables
            config.ReadXml("EngineConfig.xml");

            // interrogate the available resource paths
            foreach (EngineConfig.FilePathRow row in config.FilePath)
            {
                string fullPath = Environment.CurrentDirectory + Path.DirectorySeparatorChar + row.src;

                ResourceManager.AddCommonArchive(fullPath, row.type);
            }
        }
Esempio n. 5
0
 protected bool SetupResources()
 {
     RepositoryClass.Instance.InitializeRepositoryPath();
     if (!RepositoryClass.Instance.RepositoryDirectoryListSet())
     {
         return(false);
     }
     foreach (string s in RepositoryClass.AxiomDirectories)
     {
         List <string> repositoryDirectoryList = RepositoryClass.Instance.RepositoryDirectoryList;
         List <string> l = new List <string>();
         foreach (string repository in repositoryDirectoryList)
         {
             l.Add(Path.Combine(repository, s));
         }
         ResourceManager.AddCommonArchive(l, "Folder");
     }
     return(true);
 }