mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
feat: Add ChallengeData to SessionSaveData struct
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
0a824af7f1
@ -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…
x
Reference in New Issue
Block a user