forked from openrs2/openrs2
parent
84b384156f
commit
65f0cc0f6e
@ -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 |
||||
|
||||
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() |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue