Fixed AbstractAudioData not serializing some properties.

This commit is contained in:
2026-04-06 19:08:19 +08:00
parent 1c8ed604c2
commit 71c1ed05fc
2 changed files with 2 additions and 1 deletions
@@ -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.
@@ -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