protected BaseStoredGameComponent(BaseStoredGameComponentSettings settings, IWorldCoreGameComponentContext worldContext)
            : base(settings, worldContext)
        {
            try
            {
                _idForFacts = settings.IdForFacts;

                var standaloneStorageSettings = new StandaloneStorageSettings();
                standaloneStorageSettings.Id      = settings.Id;
                standaloneStorageSettings.IsWorld = false;
                standaloneStorageSettings.AppFile = settings.HostFile;
                standaloneStorageSettings.Logger  = Logger;

                standaloneStorageSettings.ModulesStorage          = worldContext.ModulesStorage;
                standaloneStorageSettings.ParentStorage           = worldContext.StandaloneStorage;
                standaloneStorageSettings.LogicQueryParseAndCache = worldContext.LogicQueryParseAndCache;

#if DEBUG
                //Log($"standaloneStorageSettings = {standaloneStorageSettings}");
#endif
                HostStorage = new StandaloneStorage(standaloneStorageSettings);
            }
            catch (Exception e)
            {
                Log(e.ToString());

                throw e;
            }
        }
        public StandaloneStorageComponent(WorldSettings settings, IWorldCoreContext coreContext)
            : base(coreContext)
        {
            var standaloneStorageSettings = new StandaloneStorageSettings();

            standaloneStorageSettings.Id             = "world";
            standaloneStorageSettings.IsWorld        = true;
            standaloneStorageSettings.Logger         = coreContext.Logger;
            standaloneStorageSettings.ModulesStorage = coreContext.ModulesStorage;

            standaloneStorageSettings.AppFile = settings.HostFile;
            standaloneStorageSettings.LogicQueryParseAndCache = coreContext.LogicQueryParseAndCache;

            //Log($"standaloneStorageSettings = {standaloneStorageSettings}");

            _standaloneStorage = new StandaloneStorage(standaloneStorageSettings);
        }