MCPcopy Create free account
hub / github.com/DFHack/dfhack / store_associations

Function store_associations

plugins/preserve-rooms.cpp:167–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167static void store_associations(const unordered_map<int32_t, vector<int32_t>> & data, const char * suffix) {
168 get_config(suffix, true).set_str(serialize_associations(data));
169}
170
171static void load_associations(unordered_map<int32_t, vector<int32_t>> * data, const char * suffix) {
172 PersistentDataItem c = get_config(suffix);

Callers 1

Calls 2

get_configFunction · 0.85
serialize_associationsFunction · 0.85

Tested by

no test coverage detected