KStarbound/src/main/kotlin/ru/dbotthepony/kstarbound/GameRegistry.kt

14 lines
211 B
Kotlin

package ru.dbotthepony.kstarbound
class GameRegistry<T> {
private val table = HashMap<String, T>()
val access: Map<String, T> by table
var frozen = false
private set
fun freeze() {
frozen = true
}
}