/* * SPDX-FileCopyrightText: 2024 Linnea Gräf * * SPDX-License-Identifier: GPL-3.0-or-later */ package moe.nea.firmament.events.subscription import moe.nea.firmament.events.FirmamentEvent import moe.nea.firmament.events.FirmamentEventBus import moe.nea.firmament.features.FirmamentFeature interface SubscriptionOwner { val delegateFeature: FirmamentFeature } data class Subscription( val owner: SubscriptionOwner, val invoke: (T) -> Unit, val eventBus: FirmamentEventBus, )