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

Method optBool

source/core/StarJson.cpp:282–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282Maybe<bool> Json::optBool() const {
283 if (isNull())
284 return {};
285 return toBool();
286}
287
288Maybe<int64_t> Json::optInt() const {
289 if (isNull())

Callers 15

jsonToNodeOutputFunction · 0.80
StarHumanoid.cppFile · 0.80
setWearableFromBackMethod · 0.80
VehicleMethod · 0.80
readJsonMethod · 0.80
ActorJumpProfileMethod · 0.80
lightingCalcMethod · 0.80
parseMissionMethod · 0.80
MovementParametersMethod · 0.80
addClientMethod · 0.80
destroyMethod · 0.80

Calls 2

ptrFunction · 0.85
toBoolMethod · 0.80

Tested by

no test coverage detected