2021-11-23 16:24:04 +01:00
### YamlMime:ManagedReference
items :
- uid : TinyLife.Emotions.IEmotionSource
commentId : T:TinyLife.Emotions.IEmotionSource
id : IEmotionSource
parent : TinyLife.Emotions
children :
- TinyLife.Emotions.IEmotionSource.SourceString
langs :
- csharp
- vb
name : IEmotionSource
nameWithType : IEmotionSource
fullName : TinyLife.Emotions.IEmotionSource
type : Interface
source :
remote :
path : TinyLife/Emotions/IEmotionSource.cs
2023-12-06 13:25:52 +01:00
branch : main
2021-11-26 23:42:22 +01:00
repo : https://git.ellpeck.de/Ellpeck/TinyLife
2021-11-23 16:24:04 +01:00
id : IEmotionSource
2022-03-09 16:13:05 +01:00
path : ../TinyLife/Emotions/IEmotionSource.cs
2024-07-26 12:47:59 +02:00
startLine : 14
2021-11-23 16:24:04 +01:00
assemblies :
- Tiny Life
namespace : TinyLife.Emotions
2024-01-07 16:53:47 +01:00
summary : >-
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 <xref href="TinyLife.Objects.FurnitureType" data-throw-if-not-resolved="false"></xref>, <xref href="TinyLife.Actions.ActionType" data-throw-if-not-resolved="false"></xref> and <xref href="TinyLife.PersonalityType" data-throw-if-not-resolved="false"></xref> have this interface.
2024-06-09 17:05:30 +02:00
Note that, since emotion sources are serialized directly when storing a <xref href="TinyLife.Emotions.EmotionModifier.Instance" data-throw-if-not-resolved="false"></xref>, it's recommended that their default serializer is <xref href="MLEM.Data.Json.StaticJsonConverter%601" data-throw-if-not-resolved="false"></xref>.
2024-01-07 16:53:47 +01:00
To combine multiple emotion sources into one, you can use <xref href="TinyLife.Emotions.CombinedEmotionSource" data-throw-if-not-resolved="false"></xref>.
2021-11-23 16:24:04 +01:00
example : [ ]
syntax :
content : public interface IEmotionSource
content.vb : Public Interface IEmotionSource
extensionMethods :
- TinyLife.Emotions.IEmotionSource.TinyLife.Utilities.Extensions.JsonCopy``1
- uid : TinyLife.Emotions.IEmotionSource.SourceString
commentId : P:TinyLife.Emotions.IEmotionSource.SourceString
id : SourceString
parent : TinyLife.Emotions.IEmotionSource
langs :
- csharp
- vb
name : SourceString
nameWithType : IEmotionSource.SourceString
fullName : TinyLife.Emotions.IEmotionSource.SourceString
type : Property
source :
remote :
path : TinyLife/Emotions/IEmotionSource.cs
2023-12-06 13:25:52 +01:00
branch : main
2021-11-26 23:42:22 +01:00
repo : https://git.ellpeck.de/Ellpeck/TinyLife
2021-11-23 16:24:04 +01:00
id : SourceString
2022-03-09 16:13:05 +01:00
path : ../TinyLife/Emotions/IEmotionSource.cs
2024-07-26 12:47:59 +02:00
startLine : 19
2021-11-23 16:24:04 +01:00
assemblies :
- Tiny Life
namespace : TinyLife.Emotions
2024-01-07 16:53:47 +01:00
summary : A (localized) string that is displayed when hovering over an <xref href="TinyLife.Emotions.EmotionModifier" data-throw-if-not-resolved="false"></xref> that has this source
2021-11-23 16:24:04 +01:00
example : [ ]
syntax :
content : string SourceString { get; }
parameters : [ ]
return :
type : System.String
content.vb : ReadOnly Property SourceString As String
overload : TinyLife.Emotions.IEmotionSource.SourceString*
references :
- uid : TinyLife.Objects.FurnitureType
commentId : T:TinyLife.Objects.FurnitureType
parent : TinyLife.Objects
2024-01-07 16:53:47 +01:00
href : TinyLife.Objects.FurnitureType.html
2021-11-23 16:24:04 +01:00
name : FurnitureType
nameWithType : FurnitureType
fullName : TinyLife.Objects.FurnitureType
- uid : TinyLife.Actions.ActionType
commentId : T:TinyLife.Actions.ActionType
parent : TinyLife.Actions
2024-01-07 16:53:47 +01:00
href : TinyLife.Actions.ActionType.html
2021-11-23 16:24:04 +01:00
name : ActionType
nameWithType : ActionType
fullName : TinyLife.Actions.ActionType
- uid : TinyLife.PersonalityType
commentId : T:TinyLife.PersonalityType
parent : TinyLife
2024-01-07 16:53:47 +01:00
href : TinyLife.PersonalityType.html
2021-11-23 16:24:04 +01:00
name : PersonalityType
nameWithType : PersonalityType
fullName : TinyLife.PersonalityType
2024-06-09 17:05:30 +02:00
- uid : TinyLife.Emotions.EmotionModifier.Instance
commentId : T:TinyLife.Emotions.EmotionModifier.Instance
parent : TinyLife.Emotions
href : TinyLife.Emotions.EmotionModifier.html
name : EmotionModifier.Instance
nameWithType : EmotionModifier.Instance
fullName : TinyLife.Emotions.EmotionModifier.Instance
spec.csharp :
- uid : TinyLife.Emotions.EmotionModifier
name : EmotionModifier
href : TinyLife.Emotions.EmotionModifier.html
- name : .
- uid : TinyLife.Emotions.EmotionModifier.Instance
name : Instance
href : TinyLife.Emotions.EmotionModifier.Instance.html
spec.vb :
- uid : TinyLife.Emotions.EmotionModifier
name : EmotionModifier
href : TinyLife.Emotions.EmotionModifier.html
- name : .
- uid : TinyLife.Emotions.EmotionModifier.Instance
name : Instance
href : TinyLife.Emotions.EmotionModifier.Instance.html
- uid : MLEM.Data.Json.StaticJsonConverter`1
commentId : T:MLEM.Data.Json.StaticJsonConverter`1
isExternal : true
name : StaticJsonConverter<T>
nameWithType : StaticJsonConverter<T>
fullName : MLEM.Data.Json.StaticJsonConverter<T>
nameWithType.vb : StaticJsonConverter(Of T)
fullName.vb : MLEM.Data.Json.StaticJsonConverter(Of T)
name.vb : StaticJsonConverter(Of T)
spec.csharp :
- uid : MLEM.Data.Json.StaticJsonConverter`1
name : StaticJsonConverter
isExternal : true
- name : <
- name : T
- name : '>'
spec.vb :
- uid : MLEM.Data.Json.StaticJsonConverter`1
name : StaticJsonConverter
isExternal : true
- name : (
- name : Of
- name : " "
- name : T
- name : )
2022-06-10 12:18:26 +02:00
- uid : TinyLife.Emotions.CombinedEmotionSource
commentId : T:TinyLife.Emotions.CombinedEmotionSource
2024-01-07 16:53:47 +01:00
href : TinyLife.Emotions.CombinedEmotionSource.html
2022-06-10 12:18:26 +02:00
name : CombinedEmotionSource
nameWithType : CombinedEmotionSource
fullName : TinyLife.Emotions.CombinedEmotionSource
2021-11-23 16:24:04 +01:00
- uid : TinyLife.Emotions
commentId : N : TinyLife.Emotions
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2021-11-23 16:24:04 +01:00
name : TinyLife.Emotions
nameWithType : TinyLife.Emotions
fullName : TinyLife.Emotions
2023-03-30 18:07:55 +02:00
spec.csharp :
- uid : TinyLife
name : TinyLife
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2023-03-30 18:07:55 +02:00
- name : .
- uid : TinyLife.Emotions
name : Emotions
2024-01-07 16:53:47 +01:00
href : TinyLife.Emotions.html
2023-03-30 18:07:55 +02:00
spec.vb :
- uid : TinyLife
name : TinyLife
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2023-03-30 18:07:55 +02:00
- name : .
- uid : TinyLife.Emotions
name : Emotions
2024-01-07 16:53:47 +01:00
href : TinyLife.Emotions.html
2021-11-23 16:24:04 +01:00
- uid : TinyLife.Emotions.IEmotionSource.TinyLife.Utilities.Extensions.JsonCopy``1
commentId : M:TinyLife.Utilities.Extensions.JsonCopy``1(``0)
parent : TinyLife.Utilities.Extensions
definition : TinyLife.Utilities.Extensions.JsonCopy``1(``0)
2024-01-07 16:53:47 +01:00
href : TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
2023-03-30 18:07:55 +02:00
name : JsonCopy<IEmotionSource>(IEmotionSource)
nameWithType : Extensions.JsonCopy<IEmotionSource>(IEmotionSource)
fullName : TinyLife.Utilities.Extensions.JsonCopy<TinyLife.Emotions.IEmotionSource>(TinyLife.Emotions.IEmotionSource)
nameWithType.vb : Extensions.JsonCopy(Of IEmotionSource)(IEmotionSource)
fullName.vb : TinyLife.Utilities.Extensions.JsonCopy(Of TinyLife.Emotions.IEmotionSource)(TinyLife.Emotions.IEmotionSource)
name.vb : JsonCopy(Of IEmotionSource)(IEmotionSource)
2021-11-23 16:24:04 +01:00
spec.csharp :
2023-03-30 18:07:55 +02:00
- uid : TinyLife.Utilities.Extensions.JsonCopy``1(TinyLife.Emotions.IEmotionSource)
name : JsonCopy
2024-01-07 16:53:47 +01:00
href : TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
2023-03-30 18:07:55 +02:00
- name : <
- uid : TinyLife.Emotions.IEmotionSource
name : IEmotionSource
2024-01-07 16:53:47 +01:00
href : TinyLife.Emotions.IEmotionSource.html
2023-03-30 18:07:55 +02:00
- name : '>'
2021-11-23 16:24:04 +01:00
- name : (
2023-03-30 18:07:55 +02:00
- uid : TinyLife.Emotions.IEmotionSource
name : IEmotionSource
2024-01-07 16:53:47 +01:00
href : TinyLife.Emotions.IEmotionSource.html
2021-11-23 16:24:04 +01:00
- name : )
spec.vb :
2023-03-30 18:07:55 +02:00
- uid : TinyLife.Utilities.Extensions.JsonCopy``1(TinyLife.Emotions.IEmotionSource)
name : JsonCopy
2024-01-07 16:53:47 +01:00
href : TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
2023-03-30 18:07:55 +02:00
- name : (
- name : Of
- name : " "
- uid : TinyLife.Emotions.IEmotionSource
name : IEmotionSource
2024-01-07 16:53:47 +01:00
href : TinyLife.Emotions.IEmotionSource.html
2023-03-30 18:07:55 +02:00
- name : )
2021-11-23 16:24:04 +01:00
- name : (
2023-03-30 18:07:55 +02:00
- uid : TinyLife.Emotions.IEmotionSource
name : IEmotionSource
2024-01-07 16:53:47 +01:00
href : TinyLife.Emotions.IEmotionSource.html
2021-11-23 16:24:04 +01:00
- name : )
- uid : TinyLife.Objects
commentId : N : TinyLife.Objects
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2021-11-23 16:24:04 +01:00
name : TinyLife.Objects
nameWithType : TinyLife.Objects
fullName : TinyLife.Objects
2023-03-30 18:07:55 +02:00
spec.csharp :
- uid : TinyLife
name : TinyLife
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2023-03-30 18:07:55 +02:00
- name : .
- uid : TinyLife.Objects
name : Objects
2024-01-07 16:53:47 +01:00
href : TinyLife.Objects.html
2023-03-30 18:07:55 +02:00
spec.vb :
- uid : TinyLife
name : TinyLife
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2023-03-30 18:07:55 +02:00
- name : .
- uid : TinyLife.Objects
name : Objects
2024-01-07 16:53:47 +01:00
href : TinyLife.Objects.html
2021-11-23 16:24:04 +01:00
- uid : TinyLife.Actions
commentId : N : TinyLife.Actions
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2021-11-23 16:24:04 +01:00
name : TinyLife.Actions
nameWithType : TinyLife.Actions
fullName : TinyLife.Actions
2023-03-30 18:07:55 +02:00
spec.csharp :
- uid : TinyLife
name : TinyLife
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2023-03-30 18:07:55 +02:00
- name : .
- uid : TinyLife.Actions
name : Actions
2024-01-07 16:53:47 +01:00
href : TinyLife.Actions.html
2023-03-30 18:07:55 +02:00
spec.vb :
- uid : TinyLife
name : TinyLife
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2023-03-30 18:07:55 +02:00
- name : .
- uid : TinyLife.Actions
name : Actions
2024-01-07 16:53:47 +01:00
href : TinyLife.Actions.html
2021-11-23 16:24:04 +01:00
- uid : TinyLife
commentId : N : TinyLife
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2021-11-23 16:24:04 +01:00
name : TinyLife
nameWithType : TinyLife
fullName : TinyLife
- uid : TinyLife.Utilities.Extensions.JsonCopy``1(``0)
commentId : M:TinyLife.Utilities.Extensions.JsonCopy``1(``0)
2024-01-07 16:53:47 +01:00
href : TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
2021-11-23 16:24:04 +01:00
name : JsonCopy<T>(T)
nameWithType : Extensions.JsonCopy<T>(T)
fullName : TinyLife.Utilities.Extensions.JsonCopy<T>(T)
nameWithType.vb : Extensions.JsonCopy(Of T)(T)
fullName.vb : TinyLife.Utilities.Extensions.JsonCopy(Of T)(T)
name.vb : JsonCopy(Of T)(T)
spec.csharp :
- uid : TinyLife.Utilities.Extensions.JsonCopy``1(``0)
2023-03-30 18:07:55 +02:00
name : JsonCopy
2024-01-07 16:53:47 +01:00
href : TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
2023-03-30 18:07:55 +02:00
- name : <
- name : T
- name : '>'
2021-11-23 16:24:04 +01:00
- name : (
- name : T
- name : )
spec.vb :
- uid : TinyLife.Utilities.Extensions.JsonCopy``1(``0)
2023-03-30 18:07:55 +02:00
name : JsonCopy
2024-01-07 16:53:47 +01:00
href : TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
2023-03-30 18:07:55 +02:00
- name : (
- name : Of
- name : " "
- name : T
- name : )
2021-11-23 16:24:04 +01:00
- name : (
- name : T
- name : )
- uid : TinyLife.Utilities.Extensions
commentId : T:TinyLife.Utilities.Extensions
parent : TinyLife.Utilities
2024-01-07 16:53:47 +01:00
href : TinyLife.Utilities.Extensions.html
2021-11-23 16:24:04 +01:00
name : Extensions
nameWithType : Extensions
fullName : TinyLife.Utilities.Extensions
- uid : TinyLife.Utilities
commentId : N : TinyLife.Utilities
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2021-11-23 16:24:04 +01:00
name : TinyLife.Utilities
nameWithType : TinyLife.Utilities
fullName : TinyLife.Utilities
2023-03-30 18:07:55 +02:00
spec.csharp :
- uid : TinyLife
name : TinyLife
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2023-03-30 18:07:55 +02:00
- name : .
- uid : TinyLife.Utilities
name : Utilities
2024-01-07 16:53:47 +01:00
href : TinyLife.Utilities.html
2023-03-30 18:07:55 +02:00
spec.vb :
- uid : TinyLife
name : TinyLife
2024-01-07 16:53:47 +01:00
href : TinyLife.html
2023-03-30 18:07:55 +02:00
- name : .
- uid : TinyLife.Utilities
name : Utilities
2024-01-07 16:53:47 +01:00
href : TinyLife.Utilities.html
2021-11-23 16:24:04 +01:00
- uid : TinyLife.Emotions.EmotionModifier
commentId : T:TinyLife.Emotions.EmotionModifier
parent : TinyLife.Emotions
2024-01-07 16:53:47 +01:00
href : TinyLife.Emotions.EmotionModifier.html
2021-11-23 16:24:04 +01:00
name : EmotionModifier
nameWithType : EmotionModifier
fullName : TinyLife.Emotions.EmotionModifier
- uid : TinyLife.Emotions.IEmotionSource.SourceString*
commentId : Overload:TinyLife.Emotions.IEmotionSource.SourceString
2024-01-07 16:53:47 +01:00
href : TinyLife.Emotions.IEmotionSource.html#TinyLife_Emotions_IEmotionSource_SourceString
2021-11-23 16:24:04 +01:00
name : SourceString
nameWithType : IEmotionSource.SourceString
fullName : TinyLife.Emotions.IEmotionSource.SourceString
- uid : System.String
commentId : T:System.String
parent : System
isExternal : true
2023-03-30 18:07:55 +02:00
href : https://learn.microsoft.com/dotnet/api/system.string
name : string
nameWithType : string
fullName : string
nameWithType.vb : String
fullName.vb : String
name.vb : String
2021-11-23 16:24:04 +01:00
- uid : System
commentId : N : System
isExternal : true
2023-03-30 18:07:55 +02:00
href : https://learn.microsoft.com/dotnet/api/system
2021-11-23 16:24:04 +01:00
name : System
nameWithType : System
fullName : System