From 95122cfde0003ba417a05dfa1887b58ea487c4c1 Mon Sep 17 00:00:00 2001 From: NoMathExpectation <85624722+NoMathExpectation@users.noreply.github.com> Date: Sun, 8 Mar 2026 00:54:23 +0800 Subject: [PATCH] Fixed some events lack of SerialName. --- .../cn/rdlevel/rdkt/core/events/PulseFreeTimeBeatEvent.kt | 2 ++ .../kotlin/cn/rdlevel/rdkt/core/events/SetBeatSoundEvent.kt | 1 + 2 files changed, 3 insertions(+) diff --git a/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/events/PulseFreeTimeBeatEvent.kt b/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/events/PulseFreeTimeBeatEvent.kt index b1bdd57..4a693a2 100644 --- a/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/events/PulseFreeTimeBeatEvent.kt +++ b/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/events/PulseFreeTimeBeatEvent.kt @@ -5,6 +5,7 @@ package cn.rdlevel.rdkt.core.events import cn.rdlevel.rdkt.core.annotations.RDKTInternalAPI import cn.rdlevel.rdkt.core.serialization.TransformSerializer +import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import kotlin.jvm.JvmOverloads @@ -15,6 +16,7 @@ import kotlin.jvm.JvmOverloads * @property hold The hold time this pulse will last in beats. 0 means disable the hold. */ @Serializable(PulseFreeTimeBeatEvent.Serializer::class) +@SerialName("PulseFreeTimeBeat") public data class PulseFreeTimeBeatEvent @JvmOverloads constructor( var action: Action = Action.Increment, var hold: Int = 0, diff --git a/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/events/SetBeatSoundEvent.kt b/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/events/SetBeatSoundEvent.kt index 369adcc..424c4a0 100644 --- a/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/events/SetBeatSoundEvent.kt +++ b/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/events/SetBeatSoundEvent.kt @@ -10,6 +10,7 @@ import kotlinx.serialization.Serializable * @property sound The pulse sound [AudioData] to set for the specified row. */ @Serializable +@SerialName("SetBeatSound") public data class SetBeatSoundEvent( var sound: AudioData, ) : BeatSpecificSoundEvent(), RowSpecificEvent {