Skip to content

Commit f8db805

Browse files
committed
refactor!: remove FlightController
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
1 parent 757829f commit f8db805

29 files changed

Lines changed: 210 additions & 349 deletions

src/main/kotlin/ru/octol1ttle/flightassistant/api/alert/AlertCategoryRegistrationCallback.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import dev.architectury.event.EventFactory
55
import java.util.function.Consumer
66
import ru.octol1ttle.flightassistant.api.computer.ComputerBus
77

8+
@Deprecated("Alert categories will be removed in a future release")
89
fun interface AlertCategoryRegistrationCallback {
910
/**
1011
* Called when the client has started, after all built-in alert categories have been initialized.

src/main/kotlin/ru/octol1ttle/flightassistant/api/autoflight/FlightController.kt

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/main/kotlin/ru/octol1ttle/flightassistant/api/autoflight/heading/HeadingControllerRegistrationCallback.kt

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/main/kotlin/ru/octol1ttle/flightassistant/api/autoflight/pitch/PitchControllerRegistrationCallback.kt

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/main/kotlin/ru/octol1ttle/flightassistant/api/autoflight/roll/RollControllerRegistrationCallback.kt

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/main/kotlin/ru/octol1ttle/flightassistant/api/autoflight/roll/RollSourceRegistrationCallback.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import dev.architectury.event.Event
44
import dev.architectury.event.EventFactory
55
import java.util.function.Consumer
66

7+
@Deprecated("Respond to ComputerQueries instead")
78
fun interface RollSourceRegistrationCallback {
89
/**
910
* Called during [ru.octol1ttle.flightassistant.api.computer.Computer.invokeEvents].

src/main/kotlin/ru/octol1ttle/flightassistant/api/autoflight/thrust/ThrustChangeCallback.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import dev.architectury.event.Event
44
import dev.architectury.event.EventFactory
55
import ru.octol1ttle.flightassistant.api.autoflight.ControlInput
66

7+
@Deprecated("Respond to ComputerEvents instead")
78
fun interface ThrustChangeCallback {
89
/**
910
* Called when the current thrust has been changed.

src/main/kotlin/ru/octol1ttle/flightassistant/api/autoflight/thrust/ThrustControllerRegistrationCallback.kt

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/main/kotlin/ru/octol1ttle/flightassistant/api/autoflight/thrust/ThrustSourceRegistrationCallback.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import dev.architectury.event.Event
44
import dev.architectury.event.EventFactory
55
import java.util.function.Consumer
66

7+
@Deprecated("Respond to ComputerQueries instead")
78
fun interface ThrustSourceRegistrationCallback {
89
/**
910
* Called during [ru.octol1ttle.flightassistant.api.computer.Computer.invokeEvents].

src/main/kotlin/ru/octol1ttle/flightassistant/api/computer/ComputerBus.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import ru.octol1ttle.flightassistant.impl.computer.data.HudDisplayDataComputer
1313
import ru.octol1ttle.flightassistant.impl.computer.safety.*
1414

1515
interface ComputerBus : ModuleView<Computer> {
16+
@Deprecated("Will be private")
1617
fun <C, T> guardedCall(computer: C, call: (C) -> T): T?
1718
fun <Event : ComputerEvent> dispatchEvent(event: Event)
1819
fun <Response> dispatchQuery(query: ComputerQuery<Response>): Collection<Response>

0 commit comments

Comments
 (0)