Skip to content

WorldRecords

class WorldRecords
Example
import rift.ecs.Persist
import rift.ecs.Persistent
@Persistent class Champion(@Persist val name: String = "")
on_npc_option(Assets.Npc.hans.id, "Ask") { player ->
val records: WorldRecords = Game.worldRecords
val champion = records.collection<Champion>().get("arena")
player.message("The arena champion is ${champion?.name ?: "nobody yet"}.")
}
fun <T : Any> collection(type: KClass<T>): RecordCollection<T>
inline fun <reified T : Any> collection(): RecordCollection<T>