Fixed value parsing from item definitions

This commit is contained in:
Ceikry
2022-10-03 07:26:34 +00:00
committed by Ryan
parent 30f43e1a18
commit 39cf1f60ca
5 changed files with 14694 additions and 33 deletions
+6
View File
@@ -18,6 +18,8 @@ import rs09.game.system.config.ServerConfigParser
import rs09.game.world.GameWorld
import rs09.game.world.repository.Repository
import rs09.game.world.update.UpdateSequence
import java.io.File
import java.net.URI
import java.nio.ByteBuffer
object TestUtils {
@@ -60,6 +62,10 @@ object TestUtils {
}
}
fun loadFile(path: String) : URI? {
return this::class.java.getResource(path)?.toURI()
}
fun advanceTicks(amount: Int, skipPulseUpdates: Boolean = true) {
SystemLogger.logInfo(this::class.java, "Advancing ticks by $amount.")
for(i in 0 until amount) {