diff --git a/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/data/sound/AudioData.kt b/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/data/sound/AudioData.kt index 4756970..4cbf501 100644 --- a/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/data/sound/AudioData.kt +++ b/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/data/sound/AudioData.kt @@ -10,6 +10,7 @@ import kotlin.jvm.JvmOverloads /** * Represents an abstraction of audio and its configuration. */ +@Serializable public sealed class AbstractAudioData { /** * The file name or built-in name of the audio. diff --git a/core/src/commonTest/kotlin/cn/rdlevel/rdkt/core/test/SetGameSoundEventTest.kt b/core/src/commonTest/kotlin/cn/rdlevel/rdkt/core/test/SetGameSoundEventTest.kt index 6af86c1..206e34d 100644 --- a/core/src/commonTest/kotlin/cn/rdlevel/rdkt/core/test/SetGameSoundEventTest.kt +++ b/core/src/commonTest/kotlin/cn/rdlevel/rdkt/core/test/SetGameSoundEventTest.kt @@ -19,7 +19,7 @@ class SetGameSoundEventTest { } val event: Event = SetGameSoundEvent( - SmallMistakeAudioGroup(subGroupAudioDataOf("bar")) + SmallMistakeAudioGroup(subGroupAudioDataOf("bar", false, 50, 50, 50)) ).apply { bar = 114 y = 514