mirror of
https://github.com/RDCN-Community-Developers/rdkt.git
synced 2026-09-05 01:35:31 +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.
|
* Represents an abstraction of audio and its configuration.
|
||||||
*/
|
*/
|
||||||
|
@Serializable
|
||||||
public sealed class AbstractAudioData {
|
public sealed class AbstractAudioData {
|
||||||
/**
|
/**
|
||||||
* The file name or built-in name of the audio.
|
* The file name or built-in name of the audio.
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class SetGameSoundEventTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val event: Event = SetGameSoundEvent(
|
val event: Event = SetGameSoundEvent(
|
||||||
SmallMistakeAudioGroup(subGroupAudioDataOf("bar"))
|
SmallMistakeAudioGroup(subGroupAudioDataOf("bar", false, 50, 50, 50))
|
||||||
).apply {
|
).apply {
|
||||||
bar = 114
|
bar = 114
|
||||||
y = 514
|
y = 514
|
||||||
|
|||||||
Reference in New Issue
Block a user