Table of Contents

Class ChoicePromptInfo

Namespace
TinyLife.Actions
Assembly
Tiny Life.dll

A choice prompt info is a set of data that can be used in OpenChoicePrompt(ChoicePromptInfo) to display a set of options to the player, one of which is randomly chosen to be "correct", causing a positive effect to happen. Choice prompts are used by JobType, but can also be used in custom circumstances.

public class ChoicePromptInfo
Inheritance
ChoicePromptInfo
Inherited Members
Extension Methods

Constructors

ChoicePromptInfo(string, params Option[])

Creates a new choice prompt info with the given settings.

public ChoicePromptInfo(string name, params ChoicePromptInfo.Option[] options)

Parameters

name string

This choice prompt's name, which will be localized.

options Option[]

This choice prompt's set of ChoicePromptInfo.Option instances, one of which will randomly be chosen as the correct option.

Fields

Name

This choice prompt's name, which will be localized.

public readonly string Name

Field Value

string

Options

This choice prompt's set of ChoicePromptInfo.Option instances, one of which will randomly be chosen as the correct option.

public readonly ChoicePromptInfo.Option[] Options

Field Value

Option[]

Methods

CreatePromptContent(Person, CoveringGroup)

Creates the UI content for this choice prompt. This method is mainly used by OpenChoicePrompt(ChoicePromptInfo).

public IEnumerable<Element> CreatePromptContent(Person person, CoveringGroup prompt)

Parameters

person Person

The person that should be affected by this choice prompt.

prompt CoveringGroup

The prompt that should be closed when an option is selected.

Returns

IEnumerable<Element>

The elements that make up the choice prompt.