CivilopediaCategories

enum CivilopediaCategories(label: String, hide: Boolean, getImage: (name: String, size: Float) -> Actor??, key: KeyCharAndCode, headerIcon: String) : Enum<CivilopediaCategories>

Enum used as keys for Civilopedia "pages" (categories).

Note names are singular on purpose - a "link" allows both key and label Order of values determines ordering of the categories in the Civilopedia top bar

Parameters

label

Translatable caption for the Civilopedia button

Constructors

CivilopediaCategories
Link copied to clipboard
private fun CivilopediaCategories(label: String, hide: Boolean, getImage: (name: String, size: Float) -> Actor??, key: KeyCharAndCode = KeyCharAndCode.UNKNOWN, headerIcon: String)

Entries

Building
Link copied to clipboard
Building("Buildings", false, CivilopediaImageGetters.construction, KeyCharAndCode('B'), "OtherIcons/Cities")
Wonder
Link copied to clipboard
Wonder("Wonders", false, CivilopediaImageGetters.construction, KeyCharAndCode('W'), "OtherIcons/Wonders")
Resource
Link copied to clipboard
Resource("Resources", false, CivilopediaImageGetters.resource, KeyCharAndCode('R'), "OtherIcons/Resources")
Terrain
Link copied to clipboard
Terrain("Terrains", false, CivilopediaImageGetters.terrain, KeyCharAndCode('T'), "OtherIcons/Terrains")
Improvement
Link copied to clipboard
Improvement("Tile Improvements", false, CivilopediaImageGetters.improvement, KeyCharAndCode('T'), "OtherIcons/Improvements")
Unit
Link copied to clipboard
Unit("Units", false, CivilopediaImageGetters.construction, KeyCharAndCode('U'), "OtherIcons/Shield")
Nation
Link copied to clipboard
Nation("Nations", false, CivilopediaImageGetters.nation, KeyCharAndCode('N'), "OtherIcons/Nations")
Technology
Link copied to clipboard
Technology("Technologies", false, CivilopediaImageGetters.technology, KeyCharAndCode('T'), "TechIcons/Philosophy")
Promotion
Link copied to clipboard
Promotion("Promotions", false, CivilopediaImageGetters.promotion, KeyCharAndCode('P'), "UnitPromotionIcons/Mobility")
Policy
Link copied to clipboard
Policy("Policies", false, CivilopediaImageGetters.policy, KeyCharAndCode('P'), "PolicyIcons/Constitution")
Belief
Link copied to clipboard
Belief("Religions and Beliefs", false, CivilopediaImageGetters.belief, KeyCharAndCode('R'), "ReligionIcons/Religion")
Tutorial
Link copied to clipboard
Tutorial("Tutorials", false, getImage, null, KeyCharAndCode(Input.Keys.F1), "OtherIcons/ExclamationMark")
Difficulty
Link copied to clipboard
Difficulty("Difficulty levels", false, getImage, null, KeyCharAndCode('D'), "OtherIcons/Quickstart")

Types

Companion
Link copied to clipboard
object Companion

Functions

clone
Link copied to clipboard
protected fun clone(): Any
compareTo
Link copied to clipboard
operator override fun compareTo(other: CivilopediaCategories): Int
equals
Link copied to clipboard
operator override fun equals(other: Any?): Boolean
finalize
Link copied to clipboard
fun finalize()
getByOffset
Link copied to clipboard
fun getByOffset(offset: Int): CivilopediaCategories
getDeclaringClass
Link copied to clipboard
fun getDeclaringClass(): Class<CivilopediaCategories>
hashCode
Link copied to clipboard
override fun hashCode(): Int
nextForKey
Link copied to clipboard
fun nextForKey(key: KeyCharAndCode): CivilopediaCategories
toString
Link copied to clipboard
open override fun toString(): String

Properties

getImage
Link copied to clipboard
val getImage: (name: String, size: Float) -> Actor??
headerIcon
Link copied to clipboard
val headerIcon: String
hide
Link copied to clipboard
val hide: Boolean
key
Link copied to clipboard
val key: KeyCharAndCode
label
Link copied to clipboard
val label: String
name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int

Sources

jvm source
Link copied to clipboard