You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have a group of FXEvents to which I can subscribe all at once and then selectively filter out the specific events, e.g.:
sealedclassGameUpdateEvent: FXEvent()
classGameReadyEvent: GameUpdateEvent()
data classNewGameState(valgameState:IGameState): GameUpdateEvent()
data classGamePausedEvent(valpaused:Boolean): GameUpdateEvent()
data classGameOverEvent(valresult:GameResult): GameUpdateEvent()
subscribe<GameUpdateEvent> { event ->// check event
}
But from what it seems, the subscribe class has to match exactly, no subclasses. This is not so wild for the subscription, but really annoying if I then want to remove all subscriptions of all subclasses.
The text was updated successfully, but these errors were encountered:
I would like to have a group of FXEvents to which I can subscribe all at once and then selectively filter out the specific events, e.g.:
But from what it seems, the subscribe class has to match exactly, no subclasses. This is not so wild for the subscription, but really annoying if I then want to remove all subscriptions of all subclasses.
The text was updated successfully, but these errors were encountered: