Fixed some events lack of SerialName.

This commit is contained in:
2026-03-08 00:54:23 +08:00
parent f6d02dfcd9
commit 95122cfde0
2 changed files with 3 additions and 0 deletions
@@ -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,
@@ -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 {