Table of Contents

Class Emote

Namespace
TinyLife.Actions
Assembly
Tiny Life.dll

An emote is a graphic that can be displayed in a bubble over a Person, usually as part of a conversation.

public class Emote
Inheritance
Emote
Inherited Members
Extension Methods

Fields

Categories

A combined EmoteCategory flag that determines the categories that this emote belongs to

public readonly EmoteCategory Categories

Field Value

EmoteCategory

Texture

The texture that is displayed for this emote

public readonly TextureRegion Texture

Field Value

TextureRegion

Methods

Draw(Map, Vector2, float, SpriteBatch, Vector2, bool, ParentInfo)

Draws the emote.

public void Draw(Map map, Vector2 depthPos, float floor, SpriteBatch batch, Vector2 drawPos, bool thought, ParentInfo parent = default)

Parameters

map Map

The map to draw on.

depthPos Vector2

The depth position.

floor float

The floor to display the emote on.

batch SpriteBatch

The sprite batch to use for drawing.

drawPos Vector2

The position, in draw space, to draw this furniture at

thought bool

Whether the emote is a thought bubble, rather than a speech bubble.

parent ParentInfo

The emote holder's parent info.

GetEmotes(EmoteCategory)

Returns a set of all of the emotes in the given combined category flag

public static IEnumerable<Emote> GetEmotes(EmoteCategory possibleCategories)

Parameters

possibleCategories EmoteCategory

The categories

Returns

IEnumerable<Emote>

A set of all emotes that match the categories

GetRandomEmote(EmoteCategory)

Returns a random emote from a combined flag of possible categories

public static Emote GetRandomEmote(EmoteCategory possibleCategories)

Parameters

possibleCategories EmoteCategory

The possible categories

Returns

Emote

A random emote from the given categories

Register(TextureRegion, EmoteCategory)

Registers a new Emote with the given settings.

public static Emote Register(TextureRegion texture, EmoteCategory categories)

Parameters

texture TextureRegion

The texture that this emote should display.

categories EmoteCategory

The categories that this emote should have. Can be a combined flag.

Returns

Emote