Skip to content

Commit

Permalink
feature: Cosmetics and ownership state
Browse files Browse the repository at this point in the history
  • Loading branch information
kezz authored Dec 6, 2024
1 parent 362295c commit a135778
Showing 1 changed file with 77 additions and 1 deletion.
78 changes: 77 additions & 1 deletion schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,25 @@ type Social {
type Collections {
"The player's earned currency."
currency: Currency!

"Returns the ownership state of all cosmetics, optionally in a category and/or collection."
cosmetics(

Check notice on line 147 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'cosmetics' was added to object type 'Collections'

Field 'cosmetics' was added to object type 'Collections'
category: CosmeticCategory = null,
collection: String = null
@spectaql(options: { key: "example", value: "oceanic" })
): [CosmeticOwnershipState!]!
}

"The ownership state of a cosmetic."
type CosmeticOwnershipState {

Check notice on line 155 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'CosmeticOwnershipState' was added

Type 'CosmeticOwnershipState' was added
"The cosmetic in question."
cosmetic: Cosmetic!

"If the cosmetic is owned."
owned: Boolean!

"The Chroma Packs that have applied to this cosmetic, if it is colorable."
chromaPacks: [String!]
}

"A player's earned currency."
Expand All @@ -160,7 +179,7 @@ type Currency {

"The number of material dust the player currently has."
materialDust: Int!

"The number of A.N.G.L.R. Tokens the player currently has."
anglrTokens: Int!
}
Expand Down Expand Up @@ -343,6 +362,63 @@ enum Rotation {
LIFETIME
}

"Different categories of cosmetics."
enum CosmeticCategory {

Check notice on line 366 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'CosmeticCategory' was added

Type 'CosmeticCategory' was added
"Hats."
HAT

"Accessories."
ACCESSORY

"Auras."
AURA

"Trails."
TRAIL

"Cloaks."
CLOAK

"Fishing rods."
ROD
}

"Different tiers of rarity."
enum Rarity {

Check notice on line 387 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'Rarity' was added

Type 'Rarity' was added
"Common."
COMMON

"Uncommon."
UNCOMMON

"Rare."
RARE

"Epic."
EPIC

"Legendary."
LEGENDARY

"Mythic."
MYTHIC
}

"A cosmetic."
type Cosmetic {

Check notice on line 408 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'Cosmetic' was added

Type 'Cosmetic' was added
"The name of the cosmetic."
name: String!

"The category the cosmetic is in."
category: CosmeticCategory!

"The rarity of the cosmetic."
rarity: Rarity!

"If this cosmetic can be colored using Chroma Packs."
colorable: Boolean!
}

"Available queries."
type Query {
"Given a UUID, returns a Player if they have logged in to MCC Island."
Expand Down

0 comments on commit a135778

Please sign in to comment.