Class Emote
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
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
MapThe map to draw on.
depthPos
Vector2The depth position.
floor
floatThe floor to display the emote on.
batch
SpriteBatchThe sprite batch to use for drawing.
drawPos
Vector2The position, in draw space, to draw this furniture at
thought
boolWhether the emote is a thought bubble, rather than a speech bubble.
parent
ParentInfoThe 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
EmoteCategoryThe 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
EmoteCategoryThe 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
TextureRegionThe texture that this emote should display.
categories
EmoteCategoryThe categories that this emote should have. Can be a combined flag.