WorldRecords
class WorldRecordsimport rift.ecs.Persistimport 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"}.")}collection
Section titled “collection”fun <T : Any> collection(type: KClass<T>): RecordCollection<T>inline fun <reified T : Any> collection(): RecordCollection<T>