MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / diskLoad

Method diskLoad

source/game/StarQuestManager.cpp:54–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void QuestManager::diskLoad(Json const& quests) {
55 m_quests = readQuests(quests.get("quests", JsonObject{}));
56 m_trackedQuestId = quests.optString("currentQuest");
57}
58
59Json QuestManager::diskStore() {
60 auto questPtrToJson = [](QuestPtr const& quest) { return quest->diskStore(); };

Callers

nothing calls this directly

Calls 3

readQuestsFunction · 0.85
optStringMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected