moved Codices out of the singleton so they can be serialised

This commit is contained in:
minjaesong
2021-09-04 17:55:37 +09:00
parent 57e4b83649
commit 6bea9c9f07
42 changed files with 180 additions and 98 deletions

View File

@@ -1,7 +1,7 @@
package net.torvald.terrarum.gameactors.faction
import net.torvald.random.HQRNG
import java.util.HashSet
import net.torvald.terrarum.*
/**
* Created by minjaesong on 2016-02-15.

View File

@@ -5,9 +5,13 @@ import java.util.*
/**
* Created by minjaesong on 2016-05-09.
*/
object FactionCodex {
class FactionCodex {
val factionContainer = ArrayList<Faction>()
fun clear() = factionContainer.clear()
internal constructor()
fun hasFaction(ID: FactionID): Boolean =
if (factionContainer.size == 0)
false