diff options
author | Tyrannova <daniel.sluga@grb-online.net> | 2019-01-15 16:44:44 +0100 |
---|---|---|
committer | Tyrannova <daniel.sluga@grb-online.net> | 2019-01-15 16:44:44 +0100 |
commit | f58a6414f0df1115f86331762c7b7773a61a7e06 (patch) | |
tree | 28a628165dcd8a65b2acd0c44dcde4b7860c3055 | |
parent | e5f3c9ea1a2d79308643d5c2cd70f8ea7bcad394 (diff) | |
download | pluggabledino-f58a6414f0df1115f86331762c7b7773a61a7e06.tar.gz pluggabledino-f58a6414f0df1115f86331762c7b7773a61a7e06.tar.bz2 pluggabledino-f58a6414f0df1115f86331762c7b7773a61a7e06.zip |
Settings
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() } |