Exemplo n.º 1
0
        //==============================
        //	関数
        //==============================

        /// <summary>
        ///
        /// </summary>
        public LocalSoundDatabase(string prefix, string path, SoundConfig config)
        {
            var database = new StreamingAssetsDatabase(path);

            m_table  = Build(prefix, database.AssetList);
            m_config = config;
        }
Exemplo n.º 2
0
        private ISoundLoadDatabase m_remoteDatabase = null;          //	データベース情報

        //=====================================
        //	プロパティ
        //=====================================

        //=====================================
        //	関数
        //=====================================
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public CriSoundFileManager(
            RuntimePlatform platform,
            SoundConfig config,
            IJobEngine engine,
            ISoundLoadDatabase database,
            IFileBuilder <CriVersionTable> builder,
            IErrorHandler handler
            ) : base(platform, config, engine, handler)
        {
            m_remoteDatabase = database;
            m_saveBuilder    = builder;
        }
Exemplo n.º 3
0
        /// <summary>
        /// ローカルDB取得
        /// </summary>
        public IEnumerator Setup(RuntimePlatform platform, IManifestLoader loader, SoundConfig config)
        {
            m_cacheDB = m_saveBuilder.Read(CacheDbLocation.FullPath);
            yield return(null);

            var manifest = loader.GetManifest(config.BuildMapName);

            m_builtinDatabase = config.BuildDatabase(platform);
            yield return(m_builtinDatabase.Build(platform, manifest));

            ChipstarLog.Log_ReadLocalTable(m_cacheDB, CacheDbLocation);
            yield break;
        }
Exemplo n.º 4
0
        //	プロパティ
        //=============================

        //=============================
        //	関数
        //=============================

        /// <summary>
        /// コンストラクタ
        /// </summary>
        public CriEditorSoundSimulator(
            RuntimePlatform platform,
            SoundConfig config,
            StoragePath[] storages
            )
        {
            foreach (var storage in storages)
            {
                var dir = storage.Get(platform);
                var tmp = ToSoundFileDict(dir, false);
                foreach (var d in tmp)
                {
                    if (m_table.ContainsKey(d.Key))
                    {
                        continue;
                    }
                    m_table.Add(d.Key, d.Value);
                }
            }
        }
Exemplo n.º 5
0
 public override ICriSoundFileManager Build(RuntimePlatform platform, SoundConfig config)
 {
     return(new CriEditorSoundSimulator(platform, config, m_storages));
 }
Exemplo n.º 6
0
 public override ISoundLoadDatabase Build(RuntimePlatform platform, SoundConfig config)
 {
     return(new LocalSoundDatabase(m_prefix, config.BuildMapName, config));
 }
Exemplo n.º 7
0
 public override ISoundLoadDatabase Build(RuntimePlatform platform, SoundConfig config)
 {
     return(new EmptyDatabase());
 }
Exemplo n.º 8
0
 /// <summary>
 /// 初期化
 /// </summary>
 public IEnumerator Setup(RuntimePlatform platform, IManifestLoader loader, SoundConfig config)
 {
     yield return(null);
 }
Exemplo n.º 9
0
 public abstract ISoundLoadDatabase Build(RuntimePlatform platform, SoundConfig config);