Change order of inheritance so docs of beat can be displayed correctly. Added ActionEvent.

This commit is contained in:
2026-03-11 01:46:28 +08:00
parent 60615d5a35
commit 18b2a3dd90
@@ -37,7 +37,7 @@ public sealed class BeatSpecificSoundEvent : BeatSpecificEvent, SoundEvent() {
* An event that belongs to the rows tab. * An event that belongs to the rows tab.
*/ */
@Serializable @Serializable
public sealed class RowEvent : AbstractEvent(), BeatSpecificEvent, RowSpecificEvent, YSpecificEvent { public sealed class RowEvent : BeatSpecificEvent, AbstractEvent(), RowSpecificEvent, YSpecificEvent {
override var beat: Double = 1.0 override var beat: Double = 1.0
set(value) { set(value) {
BeatSpecificEvent.requireBeatInBound(value) BeatSpecificEvent.requireBeatInBound(value)
@@ -69,7 +69,21 @@ public sealed class RowEvent : AbstractEvent(), BeatSpecificEvent, RowSpecificEv
* An event that belongs to the actions tab. * An event that belongs to the actions tab.
*/ */
@Serializable @Serializable
public sealed class ActionEvent : AbstractEvent() public sealed class ActionEvent : BeatSpecificEvent, AbstractEvent(), YSpecificEvent {
override var beat: Double = 1.0
set(value) {
BeatSpecificEvent.requireBeatInBound(value)
field = value
}
override var y: Int = 0
protected fun copyBaseFrom(other: ActionEvent) {
super.copyBaseFrom(other)
this.beat = other.beat
this.y = other.y
}
}
/** /**
* An event that belongs to the rooms tab. * An event that belongs to the rooms tab.