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

Method parseMission

source/game/StarAiDatabase.cpp:112–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112AiMission AiDatabase::parseMission(Json const& vm) {
113 AiMission mission;
114 mission.missionName = vm.getString("missionName");
115 mission.missionUniqueWorld = vm.getString("missionWorld");
116 mission.warpAnimation = vm.optString("warpAnimation");
117 mission.warpDeploy = vm.optBool("warpDeploy");
118 mission.icon = AssetPath::relativeTo("/ai/", vm.getString("icon"));
119 for (auto const& textPair : vm.get("speciesText").iterateObject())
120 mission.speciesText[textPair.first] = parseSpeciesMissionText(textPair.second);
121 return mission;
122}
123
124}

Callers

nothing calls this directly

Calls 5

getStringMethod · 0.80
optStringMethod · 0.80
optBoolMethod · 0.80
iterateObjectMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected