Line

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

public sealed struct Line

⭐ Constructors

public Line()
public Line(LocalizedString text)

Create a line with a text without any speaker.

Parameters
text LocalizedString

public Line(Guid speaker, LocalizedString text)

Create a line with a text. That won't be used as a timer.

Parameters
speaker Guid
text LocalizedString

public Line(T? speaker, float delay)

Parameters
speaker T?
delay float

public Line(T? speaker, string portrait, T? text, T? delay)

Parameters
speaker T?
portrait string
text T?
delay T?

public Line(T? speaker)

Parameters
speaker T?

⭐ Properties

Delay

public readonly T? Delay;

Delay in seconds.

Returns
T?

IsText

public bool IsText { get; }

Returns
bool

Portrait

public readonly string Portrait;

Returns
string

Speaker

public readonly T? Speaker;

Returns
T?

Text

public readonly T? Text;

If the caption has a text, this will be the information.

Returns
T?

⭐ Methods

WithDelay(float)

public Line WithDelay(float delay)

Parameters
delay float

Returns
Line

WithPortrait(string)

public Line WithPortrait(string portrait)

Parameters
portrait string

Returns
Line

WithSpeaker(Guid)

public Line WithSpeaker(Guid speaker)

Parameters
speaker Guid

Returns
Line

WithSpeakerAndPortrait(Guid, string)

public Line WithSpeakerAndPortrait(Guid speaker, string portrait)

Parameters
speaker Guid
portrait string

Returns
Line

WithText(LocalizedString)

public Line WithText(LocalizedString text)

Parameters
text LocalizedString

Returns
Line