mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-20 15:34:05 +09:00
moved Codices out of the singleton so they can be serialised
This commit is contained in:
@@ -28,12 +28,14 @@ class Material {
|
||||
var identifier: String = "Name not set"
|
||||
}
|
||||
|
||||
object MaterialCodex {
|
||||
class MaterialCodex {
|
||||
|
||||
val materialProps = HashMap<String, Material>()
|
||||
private val nullMaterial = Material()
|
||||
@Transient private val nullMaterial = Material()
|
||||
|
||||
operator fun invoke(module: String, path: String) {
|
||||
private constructor()
|
||||
|
||||
internal constructor(module: String, path: String) : this() {
|
||||
register(CSVFetcher.readFromModule(module, path))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user