Table of Contents

Struct EmoteChoices

Namespace
TinyLife.Actions
Assembly
Tiny Life.dll

A structure used by DisplayEmote(EmoteChoices, bool, float, float) to allow passing either a combined EmoteCategory flag, or a set of specific Emote instances, from which a final emote should be chosen.

public readonly record struct EmoteChoices : IEquatable<EmoteChoices>
Implements
Inherited Members
Extension Methods

Constructors

EmoteChoices(EmoteCategory)

Creates a new set of emote choices from the given categories.

public EmoteChoices(EmoteCategory categories)

Parameters

categories EmoteCategory

EmoteChoices(params Emote[])

Creates a new set of emote choices from the given emotes.

public EmoteChoices(params Emote[] emotes)

Parameters

emotes Emote[]

Methods

GetEmote(Random)

Returns an emote from this set of choices, using the given random to choose one.

public Emote GetEmote(Random random)

Parameters

random Random

Returns

Emote

Operators

implicit operator EmoteChoices(Emote)

Implicitly converts an Emote to an EmoteChoices instance.

public static implicit operator EmoteChoices(Emote emote)

Parameters

emote Emote

Returns

EmoteChoices

implicit operator EmoteChoices(EmoteCategory)

Implicitly converts an EmoteCategory to an EmoteChoices instance.

public static implicit operator EmoteChoices(EmoteCategory category)

Parameters

category EmoteCategory

Returns

EmoteChoices

implicit operator EmoteChoices(Emote[])

Implicitly converts an array of Emote instances to an EmoteChoices instance.

public static implicit operator EmoteChoices(Emote[] emotes)

Parameters

emotes Emote[]

Returns

EmoteChoices