diff --git a/game/src/main/java/dev/openrs2/game/GameModule.kt b/game/src/main/java/dev/openrs2/game/GameModule.kt new file mode 100644 index 0000000000..2df0a13898 --- /dev/null +++ b/game/src/main/java/dev/openrs2/game/GameModule.kt @@ -0,0 +1,10 @@ +package dev.openrs2.game + +import com.google.inject.AbstractModule +import dev.openrs2.common.CommonModule + +class GameModule : AbstractModule() { + override fun configure() { + install(CommonModule()) + } +} diff --git a/game/src/main/java/dev/openrs2/game/GameServer.kt b/game/src/main/java/dev/openrs2/game/GameServer.kt index 25e406ca73..c5371addee 100644 --- a/game/src/main/java/dev/openrs2/game/GameServer.kt +++ b/game/src/main/java/dev/openrs2/game/GameServer.kt @@ -1,4 +1,17 @@ package dev.openrs2.game +import com.google.inject.Guice +import javax.inject.Singleton + fun main() { + val injector = Guice.createInjector(GameModule()) + val server = injector.getInstance(GameServer::class.java) + server.run() +} + +@Singleton +class GameServer { + fun run() { + TODO() + } }