Add GameServer skeleton

bzip2
Graham 5 years ago
parent 84b384156f
commit 65f0cc0f6e
  1. 10
      game/src/main/java/dev/openrs2/game/GameModule.kt
  2. 13
      game/src/main/java/dev/openrs2/game/GameServer.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())
}
}

@ -1,4 +1,17 @@
package dev.openrs2.game package dev.openrs2.game
import com.google.inject.Guice
import javax.inject.Singleton
fun main() { fun main() {
val injector = Guice.createInjector(GameModule())
val server = injector.getInstance(GameServer::class.java)
server.run()
}
@Singleton
class GameServer {
fun run() {
TODO()
}
} }

Loading…
Cancel
Save