diff options
Diffstat (limited to 'src/main')
4 files changed, 9 insertions, 6 deletions
diff --git a/src/main/kotlin/de/romjaki/pluggabledino/events/InitEvent.kt b/src/main/kotlin/de/romjaki/pluggabledino/events/InitEvent.kt index e82529c..1c18682 100644 --- a/src/main/kotlin/de/romjaki/pluggabledino/events/InitEvent.kt +++ b/src/main/kotlin/de/romjaki/pluggabledino/events/InitEvent.kt @@ -1,5 +1,6 @@ package de.romjaki.pluggabledino.events import de.romjaki.pluggabledino.api.Event +import org.newdawn.slick.AppGameContainer -class InitEvent : Event +class InitEvent(val app: AppGameContainer) : Event diff --git a/src/main/kotlin/de/romjaki/pluggabledino/events/PostInitEvent.kt b/src/main/kotlin/de/romjaki/pluggabledino/events/PostInitEvent.kt index 757888e..675b4fd 100644 --- a/src/main/kotlin/de/romjaki/pluggabledino/events/PostInitEvent.kt +++ b/src/main/kotlin/de/romjaki/pluggabledino/events/PostInitEvent.kt @@ -1,5 +1,6 @@ package de.romjaki.pluggabledino.events import de.romjaki.pluggabledino.api.Event +import org.newdawn.slick.AppGameContainer -class PostInitEvent : Event +class PostInitEvent(val app: AppGameContainer) : Event diff --git a/src/main/kotlin/de/romjaki/pluggabledino/events/PreInitEvent.kt b/src/main/kotlin/de/romjaki/pluggabledino/events/PreInitEvent.kt index 75d7acc..f70e041 100644 --- a/src/main/kotlin/de/romjaki/pluggabledino/events/PreInitEvent.kt +++ b/src/main/kotlin/de/romjaki/pluggabledino/events/PreInitEvent.kt @@ -1,6 +1,7 @@ package de.romjaki.pluggabledino.events import de.romjaki.pluggabledino.api.Event +import org.newdawn.slick.AppGameContainer -class PreInitEvent : Event
\ No newline at end of file +class PreInitEvent(val app: AppGameContainer) : Event
\ No newline at end of file diff --git a/src/main/kotlin/de/romjaki/pluggabledino/main.kt b/src/main/kotlin/de/romjaki/pluggabledino/main.kt index 970f38e..678e7c6 100644 --- a/src/main/kotlin/de/romjaki/pluggabledino/main.kt +++ b/src/main/kotlin/de/romjaki/pluggabledino/main.kt @@ -40,9 +40,9 @@ fun main(args: Array<String>) { app.setDisplayMode(REAL_WIDTH, REAL_HEIGHT, false) app.setTargetFrameRate(FPS) app.setShowFPS(true) - Events.broadcastEvent(PreInitEvent()) - Events.broadcastEvent(InitEvent()) - Events.broadcastEvent(PostInitEvent()) + Events.broadcastEvent(PreInitEvent(app)) + Events.broadcastEvent(InitEvent(app)) + Events.broadcastEvent(PostInitEvent(app)) app.start() } |