MCPcopy Create free account
hub / github.com/TurningWheel/Barony / jsonValueToInt

Function jsonValueToInt

src/playfab.cpp:383–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383void jsonValueToInt(Json::Value& val, std::string key, int& set)
384{
385 if ( val.isMember(key) )
386 {
387 if ( val[key].isInt() )
388 {
389 set = val[key].asInt();
390 }
391 }
392}
393
394void jsonValueToUint(Json::Value& val, std::string key, Uint32& set)
395{

Callers 2

parseOnlineHiscoreFunction · 0.85
OnFunctionExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected