getCivilopediaTextLines

open fun getCivilopediaTextLines(ruleset: Ruleset): List<FormattedLine>

Generate automatic lines from object metadata.

Please do not rely on a UncivGame.Current.gameInfo being initialized, this should be able to run from the main menu. (And the info displayed should be about the ruleset, not the player situation)

Default implementation is empty - no need to call super in overrides.

Return

A list of FormattedLines that will be inserted before the first line of civilopediaText having a link

Parameters

ruleset

The current ruleset for the Civilopedia viewer

Sources

jvm source
Link copied to clipboard