Renamed EventPublisher to EventFlow because of change in what it does.

This commit is contained in:
lieght
2025-09-23 01:31:52 +02:00
parent b5ee0a6725
commit 61a861910a
4 changed files with 231 additions and 325 deletions

View File

@@ -48,8 +48,8 @@ public class Main {
}
private static void registerEvents() {
new EventPublisher<>(Events.WindowEvents.OnQuitRequested.class, _ -> quit());
new EventPublisher<>(Events.WindowEvents.OnMouseMove.class, _ -> {});
new EventPublisher().onEvent(Events.WindowEvents.OnQuitRequested.class).perform(_ -> quit());
new EventPublisher().onEvent(Events.WindowEvents.OnMouseMove.class).perform(_ -> {});
}
private static void quit() {