Beispiel #1
0
        protected override byte[] BuildContent(CriVersionTable obj)
        {
            var formatter = new BinaryFormatter();

            using (var ms = new MemoryStream())
            {
                formatter.Serialize(ms, obj);
                return(ms.ToArray());
            }
        }
Beispiel #2
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;
        }
Beispiel #3
0
        protected override byte[] BuildContent(CriVersionTable obj)
        {
            var json = JsonUtility.ToJson(obj, true);

            return(System.Text.Encoding.UTF8.GetBytes(json));
        }
Beispiel #4
0
 protected override void DoDatabaseClear()
 {
     m_cacheDB = new CriVersionTable();
 }