Ejemplo n.º 1
0
        protected override byte[] BuildContent(CriVersionTable obj)
        {
            var formatter = new BinaryFormatter();

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

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