Situation

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

public sealed struct Situation

⭐ Constructors

public Situation()
public Situation(int id, string name, ImmutableArray<T> dialogs, ImmutableDictionary<TKey, TValue> edges)

Parameters
id int
name string
dialogs ImmutableArray<T>
edges ImmutableDictionary<TKey, TValue>

public Situation(int id, string name)

Parameters
id int
name string

⭐ Properties

Dialogs

public readonly ImmutableArray<T> Dialogs;

Returns
ImmutableArray<T>

Edges

public readonly ImmutableDictionary<TKey, TValue> Edges;

Returns
ImmutableDictionary<TKey, TValue>

Id

public readonly int Id;

Returns
int

Name

public readonly string Name;

Returns
string

⭐ Methods

WithDialogAt(int, Dialog)

public Situation WithDialogAt(int index, Dialog dialog)

Parameters
index int
dialog Dialog

Returns
Situation

WithName(string)

public Situation WithName(string name)

Parameters
name string

Returns
Situation