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

Method fromJson

source/game/StarQuestDescriptor.cpp:88–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88QuestParam QuestParam::fromJson(Json const& json) {
89 return QuestParam{
90 questParamDetailFromJson(json), json.optString("name"), json.opt("portrait"), json.optString("indicator")};
91}
92
93QuestParamDetail questParamDetailDiskLoad(Json const& json) {
94 String type = json.getString("type");

Callers

nothing calls this directly

Calls 13

questParamDetailFromJsonFunction · 0.85
randu64Function · 0.85
questParamsFromJsonFunction · 0.85
optStringMethod · 0.80
getStringMethod · 0.80
getUIntMethod · 0.80
getArrayMethod · 0.80
optMethod · 0.45
isTypeMethod · 0.45
toStringMethod · 0.45
getMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected