From 1448b6f14d0be729c4ff64ba102e314d1b54d463 Mon Sep 17 00:00:00 2001 From: Frederico Santos Date: Sat, 8 Jun 2024 00:50:01 +0100 Subject: [PATCH] feat: Add ChallengeData to SessionSaveData struct (#34) This commit adds the `ChallengeData` struct to the `SessionSaveData` struct. The `ChallengeData` struct includes fields for `id`, `value`, and `severity`. This change allows for storing challenge data in the session save data. --- defs/savedata.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/defs/savedata.go b/defs/savedata.go index 1d63603..094ffc5 100644 --- a/defs/savedata.go +++ b/defs/savedata.go @@ -107,6 +107,13 @@ type SessionSaveData struct { Trainer TrainerData `json:"trainer"` GameVersion string `json:"gameVersion"` Timestamp int `json:"timestamp"` + Challenges []ChallengeData `json:"challenges"` +} + +type ChallengeData struct { + Id int `json:"id"` + Value int `json:"value"` + Severity int `json:"severity"` } type GameMode int