Skip to main content

Struct InteractionOptionDisplay

Presentation-only description of a single interaction option.

public readonly struct InteractionOptionDisplay

Remarks​

This exists so InteractionView never has to read the domain Interactable or InteractableOption types. The Interactor translates domain data into this structure, which keeps the view replaceable without touching the model.

Constructors​

InteractionOptionDisplay(string, float)​

Creates a display description for an interaction option.

public InteractionOptionDisplay(string prompt, float duration)

Parameters​

NameTypeDescription
promptstringThe prompt text shown to the player.
durationfloatHold duration in seconds.

Fields​

Duration​

How long the option must be held, in seconds. Zero means instant.

public readonly float Duration

Field Value​

float

Prompt​

The prompt text shown to the player.

public readonly string Prompt

Field Value​

string