mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-02-23 09:01:29 +08:00
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.
This commit is contained in:
parent
9d8c6b88bf
commit
1448b6f14d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user