mirror of
https://github.com/RDCN-Community-Developers/rdkt.git
synced 2026-09-04 17:25:33 +08:00
Fixed AbstractAudioData not serializing some properties.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user