Modular Database Upgrade
CultCache API can now be configured with multiple interchangeable backing stores. Will be using plain JSON in repository from now on.
This commit is contained in:
parent
00f752edf7
commit
85483319fe
158 changed files with 658 additions and 290 deletions
|
|
@ -84,8 +84,13 @@ public class ActionGameManager : MonoBehaviour
|
|||
{
|
||||
if (_cultCache != null) return _cultCache;
|
||||
|
||||
_cultCache = new CultCache(Path.Combine(GameDataDirectory.FullName, "AetherDB.msgpack"));
|
||||
_cultCache.Load();
|
||||
_cultCache = new CultCache();
|
||||
_cultCache.AddBackingStore(new MultiFileJsonBackingStore(GameDataDirectory.FullName));
|
||||
_cultCache.AddBackingStore(
|
||||
new SingleFileMessagePackBackingStore(Path.Combine(GameDataDirectory.FullName, "AetherDB.msgpack")));
|
||||
// _cultCache.AddBackingStore(
|
||||
// new MultiFileMessagePackBackingStore(GameDataDirectory.FullName), typeof(NameFile));
|
||||
_cultCache.PullAllBackingStores();
|
||||
|
||||
return _cultCache;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue