| 25 | } |
| 26 | |
| 27 | Json PlayerLog::toJson() const { |
| 28 | auto collections = JsonObject(); |
| 29 | for (auto pair : m_collections) |
| 30 | collections[pair.first] = jsonFromStringSet(pair.second); |
| 31 | |
| 32 | return JsonObject{{"deathCount", m_deathCount}, |
| 33 | {"playTime", m_playTime}, |
| 34 | {"introComplete", m_introComplete}, |
| 35 | {"scannedObjects", jsonFromStringSet(m_scannedObjects)}, |
| 36 | {"radioMessages", jsonFromStringSet(m_radioMessages)}, |
| 37 | {"cinematics", jsonFromStringSet(m_cinematics)}, |
| 38 | {"collections", collections}}; |
| 39 | } |
| 40 | |
| 41 | int PlayerLog::deathCount() const { |
| 42 | return m_deathCount; |
nothing calls this directly
no test coverage detected