Ruleset

class Ruleset

Types

RulesetError
Link copied to clipboard
class RulesetError(text: String, errorSeverityToReport: Ruleset.RulesetErrorSeverity)
RulesetErrorList
Link copied to clipboard
class RulesetErrorList : ArrayList<Ruleset.RulesetError>
RulesetErrorSeverity
Link copied to clipboard
enum RulesetErrorSeverity : Enum<Ruleset.RulesetErrorSeverity>

Functions

add
Link copied to clipboard
fun add(ruleset: Ruleset)
checkModLinks
Link copied to clipboard
fun checkModLinks(): Ruleset.RulesetErrorList
checkUniques
Link copied to clipboard
fun checkUniques(uniqueContainer: IHasUniques, lines: Ruleset.RulesetErrorList, severityToReport: UniqueType.UniqueComplianceErrorSeverity)
clear
Link copied to clipboard
fun clear()
clone
Link copied to clipboard
fun clone(): Ruleset
createHashmap
Link copied to clipboard
private fun <T : INamed> createHashmap(items: Array<T>): LinkedHashMap<String, T>
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getSummary
Link copied to clipboard
fun getSummary(): String
hashCode
Link copied to clipboard
open fun hashCode(): Int
hasReligion
Link copied to clipboard
fun hasReligion(): Boolean
load
Link copied to clipboard
fun load(folderHandle: FileHandle, printOutput: Boolean)
toString
Link copied to clipboard
open override fun toString(): String

Used for displaying a RuleSet's name

updateBuildingCosts
Link copied to clipboard
fun updateBuildingCosts()

Building costs are unique in that they are dependant on info in the technology part. This means that if you add a building in a mod, you want it to depend on the original tech values. Alternatively, if you edit a tech column's building costs, you want it to affect all buildings in that column. This deals with that

Properties

beliefs
Link copied to clipboard
val beliefs: LinkedHashMap<String, Belief>
buildings
Link copied to clipboard
val buildings: LinkedHashMap<String, Building>
difficulties
Link copied to clipboard
val difficulties: LinkedHashMap<String, Difficulty>
eras
Link copied to clipboard
val eras: LinkedHashMap<String, Era>
jsonParser
Link copied to clipboard
private val jsonParser: JsonParser
modOptions
Link copied to clipboard
var modOptions: ModOptions
mods
Link copied to clipboard
val mods: LinkedHashSet<String>
modWithReligionLoaded
Link copied to clipboard
var modWithReligionLoaded: Boolean = false
name
Link copied to clipboard
var name: String
nations
Link copied to clipboard
val nations: LinkedHashMap<String, Nation>
policies
Link copied to clipboard
val policies: LinkedHashMap<String, Policy>
policyBranches
Link copied to clipboard
val policyBranches: LinkedHashMap<String, PolicyBranch>
quests
Link copied to clipboard
val quests: LinkedHashMap<String, Quest>
religions
Link copied to clipboard
val religions: ArrayList<String>
ruinRewards
Link copied to clipboard
val ruinRewards: LinkedHashMap<String, RuinReward>
specialists
Link copied to clipboard
val specialists: LinkedHashMap<String, Specialist>
technologies
Link copied to clipboard
val technologies: LinkedHashMap<String, Technology>
terrains
Link copied to clipboard
val terrains: LinkedHashMap<String, Terrain>
tileImprovements
Link copied to clipboard
val tileImprovements: LinkedHashMap<String, TileImprovement>
tileResources
Link copied to clipboard
val tileResources: LinkedHashMap<String, TileResource>
unitPromotions
Link copied to clipboard
val unitPromotions: LinkedHashMap<String, Promotion>
units
Link copied to clipboard
val units: LinkedHashMap<String, BaseUnit>
unitTypes
Link copied to clipboard
val unitTypes: LinkedHashMap<String, UnitType>

Sources

jvm source
Link copied to clipboard