From b25139367a614c5332f028a4199a708ab4435c80 Mon Sep 17 00:00:00 2001 From: Stedoss <29103029+Stedoss@users.noreply.github.com> Date: Sun, 6 Jul 2025 17:08:26 +0100 Subject: [PATCH] Add info about reconstructing replays via model --- .../main/kotlin/com/nisemoe/nise/Models.kt | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/nise-backend/src/main/kotlin/com/nisemoe/nise/Models.kt b/nise-backend/src/main/kotlin/com/nisemoe/nise/Models.kt index dce55dd..a63f67f 100644 --- a/nise-backend/src/main/kotlin/com/nisemoe/nise/Models.kt +++ b/nise-backend/src/main/kotlin/com/nisemoe/nise/Models.kt @@ -204,6 +204,31 @@ data class ReplayData( } +// Contains everything needed to reconstruct a replay (.osr) file. +// We currently do not store some of these - these have been marked. +data class EncodedReplayData( + val gameMode: Byte, + val gameVersion: Int, + val beatmapHash: String, + val username: String, + val replayHash: String, // We do not store - maybe we can reconstruct? + val count300: Short, + val count100: Short, + val count50: Short, + val countGeki: Short, // We do not store - probably should + val countKatu: Short, // We do not store - probably should + val countMisses: Short, + val totalScore: Int, + val greatestCombo: Short, + val perfect: Byte, + val mods: Int, + val lifeBar: String, // We do not store, and maybe shouldn't? + val timeStamp: Long, + val replayLength: ByteArray, // We do not store - could be calculated? + val scoreId: Long, + val additionalInformation: Double, // We do not store - probably not needed +) + data class DistributionEntry( val countMiss: Double, val count300: Double,