|
| std::string | captureUnknownKeys (const gjson &src, const std::set< std::string > &known) |
| | Extract any keys not in known into a JSON object string.
|
| bool | jbool (const gjson &j, const char *key, bool def=false) |
| double | jdouble (const gjson &j, const char *key, double def=0.0) |
| int | jint (const gjson &j, const char *key, int def=0) |
| int64_t | jint64 (const gjson &j, const char *key, int64_t def=0) |
| std::string | jstr (const gjson &j, const char *key, const char *def="") |
| | Type-tolerant getter helpers — return defaultVal when the key is missing or the value is the wrong type.
|
| const std::set< std::string > & | kKnownMetadataKeys () |
| const std::set< std::string > & | kKnownRunnerConfigKeys () |
| | Set of keys that the typed struct knows about.
|
| void | mergeUnknownKeys (gjson &dst, const std::string &extrasStr) |
| | Inverse of captureUnknownKeys: merge stashed unknowns into the JSON object we're about to serialise.
|
| void anonymous_namespace{game.cpp}::mergeUnknownKeys |
( |
gjson & | dst, |
|
|
const std::string & | extrasStr ) |
Inverse of captureUnknownKeys: merge stashed unknowns into the JSON object we're about to serialise.
Known keys we just wrote take precedence — the stash is ONLY for keys we don't know about, so a collision means a user edit-and-save took ownership of that key.
Definition at line 624 of file game.cpp.
References Logger::warn().