| 252 | } |
| 253 | |
| 254 | static bool get_entity_id(const std::string & fname, int & entity_id) { |
| 255 | if (!fname.starts_with("dfhack-entity-")) |
| 256 | return false; |
| 257 | entity_id = string_to_int(fname.substr(14, fname.length() - 18), -1); |
| 258 | return true; |
| 259 | } |
| 260 | |
| 261 | static void add_entry(std::multimap<std::string, std::shared_ptr<Persistence::DataEntry>> & entity_store_entry, |
| 262 | std::shared_ptr<Persistence::DataEntry> entry) { |
no test coverage detected