RecordsRead
class RecordsRead<T : Any>import rift.ecs.Persistimport rift.ecs.Persistent
@Persistent class Signature(@Persist val text: String = "")
on_world_start { val read = Game.worldRecords.collection<Signature>().readAll() Logger.info("${read.records.size} signatures in the guestbook") read.unrestored.forEach { (key, why) -> Logger.warn("signature $key: $why") }}records
Section titled “records”val records: Map<String, T>unrestored
Section titled “unrestored”val unrestored: Map<String, String>