diff options
author | Linnea Gräf <nea@nea.moe> | 2024-01-18 00:10:25 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-01-18 17:55:53 +0100 |
commit | d7902e06cd7285c72cd4ea2be6f18ead56a8775e (patch) | |
tree | fe07a4644bd889a4402d66105e0e6679f104cfb2 /src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt | |
parent | ac151c8ebc4c5546795cdbf5b0c179183e2c71d1 (diff) | |
download | firmament-d7902e06cd7285c72cd4ea2be6f18ead56a8775e.tar.gz firmament-d7902e06cd7285c72cd4ea2be6f18ead56a8775e.tar.bz2 firmament-d7902e06cd7285c72cd4ea2be6f18ead56a8775e.zip |
Add Ancestral Spade solver
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt b/src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt new file mode 100644 index 0000000..eb20852 --- /dev/null +++ b/src/main/kotlin/moe/nea/firmament/features/diana/DianaWaypoints.kt @@ -0,0 +1,32 @@ +/* + * SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe> + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package moe.nea.firmament.features.diana + +import moe.nea.firmament.events.ParticleSpawnEvent +import moe.nea.firmament.events.SoundReceiveEvent +import moe.nea.firmament.events.WorldRenderLastEvent +import moe.nea.firmament.features.FirmamentFeature +import moe.nea.firmament.gui.config.ManagedConfig + +object DianaWaypoints : FirmamentFeature { + override val identifier: String + get() = "diana-waypoints" + override val config: ManagedConfig? + get() = TConfig + + object TConfig : ManagedConfig(identifier) { + val ancestralSpadeSolver by toggle("ancestral-spade") { false } + } + + override fun onLoad() { + ParticleSpawnEvent.subscribe(AncestralSpadeSolver::onParticleSpawn) + SoundReceiveEvent.subscribe(AncestralSpadeSolver::onPlaySound) + WorldRenderLastEvent.subscribe(AncestralSpadeSolver::onWorldRender) + } +} + + |