[O] Better understanding of the data type of different games

This commit is contained in:
Azalea
2024-02-22 23:51:22 -05:00
parent bb53d1448b
commit af3aa497d1
2 changed files with 7 additions and 5 deletions

View File

@@ -30,11 +30,11 @@ class UserRegistrar(
val emailProps: EmailProperties
) {
companion object {
// Random long with length 9 (10^10 possibilities)
// This is because DIVA is using int for card ID, which is at max 10 digits (2147483647)
// TODO: Figure out if DIVA can handle int64
// Random long with length 9-10
// We chose 1e9 as the start because normal cards took 0...1e9-1
// This is because games can only take uint32 for card ID, which is at max 10 digits (4294967295)
const val cardExtIdStart = 1e9.toLong()
const val cardExtIdEnd = 1e10.toLong() - 1
const val cardExtIdEnd = 4294967295
}
/**