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:
Reinier Vens 2021-06-23 04:25:23 +01:00
commit 85483319fe
158 changed files with 658 additions and 290 deletions

View file

@ -44,8 +44,7 @@ public class DatabaseInspector : EditorWindow
void OnEnable()
{
_instance = this;
CultCache.OnDataUpdateLocal += _ => Repaint();
CultCache.OnDataUpdateRemote += _ => EditorDispatcher.Dispatch(Repaint);
CultCache.OnUpdate += (_,__) => EditorDispatcher.Dispatch(Repaint);
wantsMouseMove = true;
_warning = new GUIStyle(EditorStyles.boldLabel);
_warning.normal.textColor = Color.red;