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.
pull/35/head
Frederico Santos 7 months ago committed by GitHub
parent 9d8c6b88bf
commit 1448b6f14d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -107,6 +107,13 @@ type SessionSaveData struct {
Trainer TrainerData `json:"trainer"` Trainer TrainerData `json:"trainer"`
GameVersion string `json:"gameVersion"` GameVersion string `json:"gameVersion"`
Timestamp int `json:"timestamp"` 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 type GameMode int

Loading…
Cancel
Save