-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use data from Brilliance to limit card counts when generating a playe…
…r's deck Resolves #37
- Loading branch information
Showing
9 changed files
with
177 additions
and
3,159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package org.trackedout.data | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
/* | ||
Example: | ||
{ | ||
"shorthand": "MOC", | ||
"id": "minecraft:iron_nugget", | ||
"maxCopies": 5, | ||
"tag": { | ||
"NameFormat": { | ||
"color": "gray", | ||
"OriginalName": "'{\"color\":\"gray\",\"text\":\"✲ Moment of Clarity ✲\"}'", | ||
"ModifiedName": "'{\"color\":\"gray\",\"text\":\"✲ Moment of Clarity ✲\"}'" | ||
}, | ||
"CustomRoleplayData": "1b", | ||
"CustomModelData": 106, | ||
"display": { | ||
"Name": "'{\"color\":\"gray\",\"text\":\"✲ Moment of Clarity ✲\"}'" | ||
}, | ||
"tracked": "0b" | ||
} | ||
} | ||
*/ | ||
|
||
@Serializable | ||
data class BrillianceCard( | ||
val shorthand: String, | ||
val id: String, | ||
val tag: Tag, | ||
val maxCopies: Int? = null, | ||
) | ||
|
||
@Serializable | ||
data class Tag( | ||
@SerialName("NameFormat") | ||
val nameFormat: NameFormat? = null, | ||
|
||
@SerialName("CustomRoleplayData") | ||
val customRoleplayData: String? = null, | ||
|
||
@SerialName("CustomModelData") | ||
val customModelData: Long? = null, | ||
|
||
val display: Display, | ||
val tracked: String? = null, | ||
) | ||
|
||
@Serializable | ||
data class Display( | ||
@SerialName("Name") | ||
val name: String? = null, | ||
) | ||
|
||
@Serializable | ||
data class NameFormat( | ||
val color: String? = null, | ||
|
||
@SerialName("OriginalName") | ||
val originalName: String? = null, | ||
|
||
@SerialName("ModifiedName") | ||
val modifiedName: String? = null, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.