Settings

data class Settings(var version: String = CURRENT_VERSION, val templateList: TemplateList = TemplateList()) : State(source)

Contains references to various State objects.

Constructors

Link copied to clipboard
constructor(version: String = CURRENT_VERSION, templateList: TemplateList = TemplateList())

Types

Link copied to clipboard
object Companion

Holds constants.

Properties

Link copied to clipboard

The template list.

Link copied to clipboard
val templates: MutableList<Template>
Link copied to clipboard
var version: String

The version of Randomness with which these settings were created.

Functions

Link copied to clipboard
open override fun applyContext(context: Box<Settings>)

Sets the State.context of this State to context.

Link copied to clipboard
open override fun deepCopy(retainUuid: Boolean): Settings

Returns a deep copy, retaining the uuid if and only if retainUuid is true.

Link copied to clipboard
open override fun doValidate(): String?

Validates the state, and indicates whether and why it is invalid.