| 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()) { |