Table of Contents

Interface IEmotionSource

Namespace
TinyLife.Emotions
Assembly
Tiny Life.dll

This interface can be added to classes that should be able to represent a cause of an emotion. By default, several of the game's objects, including FurnitureType, ActionType and PersonalityType have this interface. Note that, since emotion sources are serialized directly when storing a EmotionModifier.Instance, it's recommended that their default serializer is MLEM.Data.Json.StaticJsonConverter<T>. To combine multiple emotion sources into one, you can use CombinedEmotionSource.

public interface IEmotionSource
Extension Methods

Properties

SourceString

A (localized) string that is displayed when hovering over an EmotionModifier that has this source

string SourceString { get; }

Property Value

string