protected override byte[] BuildContent(CriVersionTable obj) { var formatter = new BinaryFormatter(); using (var ms = new MemoryStream()) { formatter.Serialize(ms, obj); return(ms.ToArray()); } }
/// <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; }
protected override byte[] BuildContent(CriVersionTable obj) { var json = JsonUtility.ToJson(obj, true); return(System.Text.Encoding.UTF8.GetBytes(json)); }
protected override void DoDatabaseClear() { m_cacheDB = new CriVersionTable(); }