Skip to content

Commit

Permalink
feature: Include information about progress to next crown level and e…
Browse files Browse the repository at this point in the history
…volution (#1)
  • Loading branch information
kezz authored May 2, 2024
1 parent fd3c6d5 commit b8459b2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ enum TrophyCategory {
SKILL
}

"Data for types that track some form of progression."
type ProgressionData {
"The amount obtained."
obtained: Int!

"The amount that can be obtained."
obtainable: Int!
}

"Data on the amount of trophies a user has/can have."
type TrophyData {
"The amount of trophies obtained."
Expand All @@ -58,6 +67,12 @@ type CrownLevel {
"The overall Crown Level."
level: Int!

"The next level that the crown will evolve, if any."
nextEvolutionLevel: Int

"The progress the player is making towards their next level, if any."
nextLevelProgress: ProgressionData

"The amount of trophies the player has."
trophies(
category: TrophyCategory = null
Expand Down

0 comments on commit b8459b2

Please sign in to comment.