Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
512 B
17 lines
512 B
package org.openrs2.game.cache
|
|
|
|
import jakarta.inject.Inject
|
|
import jakarta.inject.Provider
|
|
import org.openrs2.cache.Js5MasterIndex
|
|
import org.openrs2.cache.MasterIndexFormat
|
|
import org.openrs2.cache.Store
|
|
|
|
public class Js5MasterIndexProvider @Inject constructor(
|
|
private val store: Store
|
|
) : Provider<Js5MasterIndex> {
|
|
override fun get(): Js5MasterIndex {
|
|
val masterIndex = Js5MasterIndex.create(store)
|
|
masterIndex.format = MasterIndexFormat.VERSIONED
|
|
return masterIndex
|
|
}
|
|
}
|
|
|