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

Method DataEntry

library/modules/Persistence.cpp:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 std::array<int, PersistentDataItem::NumInts> int_values;
66
67 explicit DataEntry(int entity_id, const std::string &key)
68 : entry_id(next_entry_id++), entity_id(entity_id), key(key) {
69 fake_df_id = 0;
70 for (size_t i = 0; i < PersistentDataItem::NumInts; i++)
71 int_values.at(i) = -1;
72 }
73
74 explicit DataEntry(int entity_id, Json::Value &json)
75 : DataEntry(entity_id, json["k"].asString()) {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected