Exemple #1
0
        private void load()
        {
            _config = JsonConfig.LoadOrCreate <Config>(this, ConfigPath);

            //_sessionManager = new SessionManager(_config);

            QuestLoader.LoadQuests(QuestInfosPath);

            //new session manager must be initialized after quest loader loads the quest infos, since it requires them as well.

            //workaround, to preserve parties but still react to changed db config.
            if (_sessionManager == null)
            {
                _sessionManager = new SessionManager(_config);
            }
            else
            {
                _sessionManager.UseDatabase(_config);                //only refresh db, but try to preserve sessions & parties...
            }
        }
        public async Task <IEnumerable <PartialQuest> > LoadQuests()
        {
            var quests = await _loader.LoadQuests();

            return(quests);
        }
Exemple #3
0
 // Start is called before the first frame update
 void Start()
 {
     questLoader.LoadQuests(questFile, questFlagsFile);
 }