mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-06 08:38:30 +09:00
33 lines
936 B
Kotlin
33 lines
936 B
Kotlin
package net.torvald.terrarum.modulecomputers
|
|
|
|
import net.torvald.terrarum.CommonResourcePool
|
|
import net.torvald.terrarum.ItemSheet
|
|
import net.torvald.terrarum.ModMgr
|
|
import net.torvald.terrarum.ModuleEntryPoint
|
|
|
|
/**
|
|
* Created by minjaesong on 2021-12-03.
|
|
*/
|
|
class EntryPoint : ModuleEntryPoint() {
|
|
|
|
private val moduleName = "dwarventech"
|
|
|
|
override fun invoke() {
|
|
|
|
// load common resources to the AssetsManager
|
|
CommonResourcePool.addToLoadingList("$moduleName.items") {
|
|
ItemSheet(ModMgr.getGdxFile(moduleName, "items/items.tga"))
|
|
}
|
|
CommonResourcePool.loadAll()
|
|
|
|
|
|
ModMgr.GameItemLoader.invoke(moduleName)
|
|
ModMgr.GameBlockLoader.invoke(moduleName)
|
|
ModMgr.GameWatchdogLoader.register(moduleName, NetFrameWatchdog())
|
|
println("[${moduleName[0].toUpperCase()}${moduleName.substring(1)}] Dirtboard(tm) go drrrrr")
|
|
}
|
|
|
|
override fun dispose() {
|
|
}
|
|
|
|
} |