Struct EmoteChoices
A structure used by DisplayEmote(EmoteChoices, EmoteBubbleType, 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, bool)
Creates a new set of emote choices from the given categories.
public EmoteChoices(EmoteCategory categories, bool matchAll)
Parameters
categoriesEmoteCategorymatchAllbool
EmoteChoices(params Emote[])
Creates a new set of emote choices from the given emotes.
public EmoteChoices(params Emote[] emotes)
Parameters
emotesEmote[]
Methods
GetEmote(Random)
Returns an emote from this set of choices, using the given random to choose one.
public Emote GetEmote(Random random)
Parameters
randomRandom
Returns
Operators
implicit operator EmoteChoices(Emote)
Implicitly converts an Emote to an EmoteChoices instance.
public static implicit operator EmoteChoices(Emote emote)
Parameters
emoteEmote
Returns
implicit operator EmoteChoices(EmoteCategory)
Implicitly converts an EmoteCategory to an EmoteChoices instance.
public static implicit operator EmoteChoices(EmoteCategory category)
Parameters
categoryEmoteCategory
Returns
implicit operator EmoteChoices(Emote[])
Implicitly converts an array of Emote instances to an EmoteChoices instance.
public static implicit operator EmoteChoices(Emote[] emotes)
Parameters
emotesEmote[]