aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features/macros/MacroData.kt
blob: af1b0e8c1e740ccfb107c484fe0fe8c9739f7b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package moe.nea.firmament.features.macros

import kotlinx.serialization.Serializable
import moe.nea.firmament.util.data.Config
import moe.nea.firmament.util.data.DataHolder

@Serializable
data class MacroData(
	var comboActions: List<ComboKeyAction> = listOf(),
	var wheels: List<MacroWheel> = listOf(),
) {
	@Config
	object DConfig : DataHolder<MacroData>(kotlinx.serialization.serializer(), "macros", ::MacroData) {
		override fun onLoad() {
			ComboProcessor.setActions(data.comboActions)
			RadialMacros.setWheels(data.wheels)
		}
	}
}