mirror of
https://github.com/RDCN-Community-Developers/rdkt.git
synced 2026-09-04 17:25:33 +08:00
Fixed some events lack of SerialName.
This commit is contained in:
@@ -5,6 +5,7 @@ package cn.rdlevel.rdkt.core.events
|
|||||||
|
|
||||||
import cn.rdlevel.rdkt.core.annotations.RDKTInternalAPI
|
import cn.rdlevel.rdkt.core.annotations.RDKTInternalAPI
|
||||||
import cn.rdlevel.rdkt.core.serialization.TransformSerializer
|
import cn.rdlevel.rdkt.core.serialization.TransformSerializer
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
import kotlin.jvm.JvmOverloads
|
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.
|
* @property hold The hold time this pulse will last in beats. 0 means disable the hold.
|
||||||
*/
|
*/
|
||||||
@Serializable(PulseFreeTimeBeatEvent.Serializer::class)
|
@Serializable(PulseFreeTimeBeatEvent.Serializer::class)
|
||||||
|
@SerialName("PulseFreeTimeBeat")
|
||||||
public data class PulseFreeTimeBeatEvent @JvmOverloads constructor(
|
public data class PulseFreeTimeBeatEvent @JvmOverloads constructor(
|
||||||
var action: Action = Action.Increment,
|
var action: Action = Action.Increment,
|
||||||
var hold: Int = 0,
|
var hold: Int = 0,
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import kotlinx.serialization.Serializable
|
|||||||
* @property sound The pulse sound [AudioData] to set for the specified row.
|
* @property sound The pulse sound [AudioData] to set for the specified row.
|
||||||
*/
|
*/
|
||||||
@Serializable
|
@Serializable
|
||||||
|
@SerialName("SetBeatSound")
|
||||||
public data class SetBeatSoundEvent(
|
public data class SetBeatSoundEvent(
|
||||||
var sound: AudioData,
|
var sound: AudioData,
|
||||||
) : BeatSpecificSoundEvent(), RowSpecificEvent {
|
) : BeatSpecificSoundEvent(), RowSpecificEvent {
|
||||||
|
|||||||
Reference in New Issue
Block a user