Dialog

Namespace: Murder.Core.Dialogs
Assembly: Murder.dll

public sealed struct Dialog

⭐ Constructors

public Dialog()
public Dialog(int id, int playUntil, ImmutableArray<T> requirements, ImmutableArray<T> lines, T? actions, T? goto, bool isChoice)

Parameters
id int
playUntil int
requirements ImmutableArray<T>
lines ImmutableArray<T>
actions T?
goto T?
isChoice bool

⭐ Properties

Actions

public readonly T? Actions;

Returns
T?

GoTo

public readonly T? GoTo;

Go to another dialog with a specified id.

Returns
T?

Id

public readonly int Id;

Returns
int

IsChoice

public readonly bool IsChoice;

Returns
bool

Lines

public readonly ImmutableArray<T> Lines;

Returns
ImmutableArray<T>

PlayUntil

public readonly int PlayUntil;

Stop playing this dialog until this number. If -1, this will play forever.

Returns
int

Requirements

public readonly ImmutableArray<T> Requirements;

Returns
ImmutableArray<T>

⭐ Methods

WithActions(T?)

public Dialog WithActions(T? actions)

Parameters
actions T?

Returns
Dialog

WithLineAt(int, Line)

public Dialog WithLineAt(int index, Line line)

Parameters
index int
line Line

Returns
Dialog

DebuggerDisplay()

public string DebuggerDisplay()

Returns
string