### YamlMime:ManagedReference
items:
- uid: TinyLife.Goals.IGoalTriggerable
commentId: T:TinyLife.Goals.IGoalTriggerable
id: IGoalTriggerable
parent: TinyLife.Goals
children:
- TinyLife.Goals.IGoalTriggerable.Trigger(System.Collections.Generic.IEnumerable{TinyLife.Goals.IGoalTriggerable},System.Object,TinyLife.Goals.GoalTrigger,System.Object[])
- TinyLife.Goals.IGoalTriggerable.Trigger(TinyLife.Goals.IGoalTriggerable,System.Object,TinyLife.Goals.GoalTrigger,System.Object[])
- TinyLife.Goals.IGoalTriggerable.TryTrigger(System.Object,TinyLife.Goals.GoalTrigger,System.Object)
langs:
- csharp
- vb
name: IGoalTriggerable
nameWithType: IGoalTriggerable
fullName: TinyLife.Goals.IGoalTriggerable
type: Interface
source:
remote:
path: TinyLife/Goals/IGoalTriggerable.cs
branch: 0.29.3-dev
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: IGoalTriggerable
path: ../TinyLife/Goals/IGoalTriggerable.cs
startLine: 10
assemblies:
- Tiny Life
namespace: TinyLife.Goals
summary: "\nAn interface that classes like implement to allow for them or their instances to be triggered by a that is associated with an object and a value.\n"
example: []
syntax:
content: public interface IGoalTriggerable
content.vb: Public Interface IGoalTriggerable
extensionMethods:
- TinyLife.Goals.IGoalTriggerable.TinyLife.Utilities.Extensions.JsonCopy``1
modifiers.csharp:
- public
- interface
modifiers.vb:
- Public
- Interface
- uid: TinyLife.Goals.IGoalTriggerable.TryTrigger(System.Object,TinyLife.Goals.GoalTrigger,System.Object)
commentId: M:TinyLife.Goals.IGoalTriggerable.TryTrigger(System.Object,TinyLife.Goals.GoalTrigger,System.Object)
id: TryTrigger(System.Object,TinyLife.Goals.GoalTrigger,System.Object)
parent: TinyLife.Goals.IGoalTriggerable
langs:
- csharp
- vb
name: TryTrigger(Object, GoalTrigger, Object)
nameWithType: IGoalTriggerable.TryTrigger(Object, GoalTrigger, Object)
fullName: TinyLife.Goals.IGoalTriggerable.TryTrigger(System.Object, TinyLife.Goals.GoalTrigger, System.Object)
type: Method
source:
remote:
path: TinyLife/Goals/IGoalTriggerable.cs
branch: 0.29.3-dev
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: TryTrigger
path: ../TinyLife/Goals/IGoalTriggerable.cs
startLine: 20
assemblies:
- Tiny Life
namespace: TinyLife.Goals
summary: "\nTries to trigger this goal triggerable.\nTo call this method more easily, use or one of its overloads.\n"
example: []
syntax:
content: bool TryTrigger(object obj, GoalTrigger trigger, object value)
parameters:
- id: obj
type: System.Object
description: The object that triggered the given trigger
.
- id: trigger
type: TinyLife.Goals.GoalTrigger
description: The goal trigger that is triggering this .
- id: value
type: System.Object
description: The value that is associated with the trigger, which is usually an amount that a value has changed by, an amount of money, or similar.
return:
type: System.Boolean
description: Whether this goal was successfully triggered.
content.vb: Function TryTrigger(obj As Object, trigger As GoalTrigger, value As Object) As Boolean
overload: TinyLife.Goals.IGoalTriggerable.TryTrigger*
- uid: TinyLife.Goals.IGoalTriggerable.Trigger(TinyLife.Goals.IGoalTriggerable,System.Object,TinyLife.Goals.GoalTrigger,System.Object[])
commentId: M:TinyLife.Goals.IGoalTriggerable.Trigger(TinyLife.Goals.IGoalTriggerable,System.Object,TinyLife.Goals.GoalTrigger,System.Object[])
id: Trigger(TinyLife.Goals.IGoalTriggerable,System.Object,TinyLife.Goals.GoalTrigger,System.Object[])
parent: TinyLife.Goals.IGoalTriggerable
langs:
- csharp
- vb
name: Trigger(IGoalTriggerable, Object, GoalTrigger, Object[])
nameWithType: IGoalTriggerable.Trigger(IGoalTriggerable, Object, GoalTrigger, Object[])
fullName: TinyLife.Goals.IGoalTriggerable.Trigger(TinyLife.Goals.IGoalTriggerable, System.Object, TinyLife.Goals.GoalTrigger, System.Object[])
type: Method
source:
remote:
path: TinyLife/Goals/IGoalTriggerable.cs
branch: 0.29.3-dev
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Trigger
path: ../TinyLife/Goals/IGoalTriggerable.cs
startLine: 32
assemblies:
- Tiny Life
namespace: TinyLife.Goals
summary: "\nTriggers all auto-triggered goals with the specified type constraint in the given .\nWhen calling this method, it should ideally be called on a specific subclass like , or .\nWhen calling this method for a , their should be used.\n"
example: []
syntax:
content: static bool Trigger(IGoalTriggerable set, object obj, GoalTrigger trigger, params object[] values)
parameters:
- id: set
type: TinyLife.Goals.IGoalTriggerable
description: The goal set to search for auto-triggered goals
- id: obj
type: System.Object
description: The object that triggered the given trigger
.
- id: trigger
type: TinyLife.Goals.GoalTrigger
description: The goal trigger that is triggering this .
- id: values
type: System.Object[]
description: The values that is associated with the trigger, which is usually an amount that a value has changed by, an amount of money, or similar. The values will be passed individually to .
return:
type: System.Boolean
description: Whether any goal was successfully triggered.
content.vb: Shared Function Trigger(set As IGoalTriggerable, obj As Object, trigger As GoalTrigger, ParamArray values As Object()) As Boolean
overload: TinyLife.Goals.IGoalTriggerable.Trigger*
nameWithType.vb: IGoalTriggerable.Trigger(IGoalTriggerable, Object, GoalTrigger, Object())
fullName.vb: TinyLife.Goals.IGoalTriggerable.Trigger(TinyLife.Goals.IGoalTriggerable, System.Object, TinyLife.Goals.GoalTrigger, System.Object())
name.vb: Trigger(IGoalTriggerable, Object, GoalTrigger, Object())
- uid: TinyLife.Goals.IGoalTriggerable.Trigger(System.Collections.Generic.IEnumerable{TinyLife.Goals.IGoalTriggerable},System.Object,TinyLife.Goals.GoalTrigger,System.Object[])
commentId: M:TinyLife.Goals.IGoalTriggerable.Trigger(System.Collections.Generic.IEnumerable{TinyLife.Goals.IGoalTriggerable},System.Object,TinyLife.Goals.GoalTrigger,System.Object[])
id: Trigger(System.Collections.Generic.IEnumerable{TinyLife.Goals.IGoalTriggerable},System.Object,TinyLife.Goals.GoalTrigger,System.Object[])
parent: TinyLife.Goals.IGoalTriggerable
langs:
- csharp
- vb
name: Trigger(IEnumerable, Object, GoalTrigger, Object[])
nameWithType: IGoalTriggerable.Trigger(IEnumerable, Object, GoalTrigger, Object[])
fullName: TinyLife.Goals.IGoalTriggerable.Trigger(System.Collections.Generic.IEnumerable, System.Object, TinyLife.Goals.GoalTrigger, System.Object[])
type: Method
source:
remote:
path: TinyLife/Goals/IGoalTriggerable.cs
branch: 0.29.3-dev
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: Trigger
path: ../TinyLife/Goals/IGoalTriggerable.cs
startLine: 56
assemblies:
- Tiny Life
namespace: TinyLife.Goals
summary: "\nTriggers all auto-triggered goals with the specified type constraint in the given set of instances.\nWhen calling this method, it should ideally be called on a specific subclass like , or .\nWhen calling this method for a , their should be used.\n"
example: []
syntax:
content: static bool Trigger(IEnumerable sets, object obj, GoalTrigger trigger, params object[] values)
parameters:
- id: sets
type: System.Collections.Generic.IEnumerable{TinyLife.Goals.IGoalTriggerable}
description: The set of goal set instances to search for auto-triggered goals
- id: obj
type: System.Object
description: The object that triggered the given trigger
.
- id: trigger
type: TinyLife.Goals.GoalTrigger
description: The goal trigger that is triggering this .
- id: values
type: System.Object[]
description: The values that is associated with the trigger, which is usually an amount that a value has changed by, an amount of money, or similar. The values will be passed individually to .
return:
type: System.Boolean
description: Whether any goal was successfully triggered.
content.vb: Shared Function Trigger(sets As IEnumerable(Of IGoalTriggerable), obj As Object, trigger As GoalTrigger, ParamArray values As Object()) As Boolean
overload: TinyLife.Goals.IGoalTriggerable.Trigger*
nameWithType.vb: IGoalTriggerable.Trigger(IEnumerable(Of IGoalTriggerable), Object, GoalTrigger, Object())
fullName.vb: TinyLife.Goals.IGoalTriggerable.Trigger(System.Collections.Generic.IEnumerable(Of TinyLife.Goals.IGoalTriggerable), System.Object, TinyLife.Goals.GoalTrigger, System.Object())
name.vb: Trigger(IEnumerable(Of IGoalTriggerable), Object, GoalTrigger, Object())
references:
- uid: TinyLife.Goals.GoalSet
commentId: T:TinyLife.Goals.GoalSet
parent: TinyLife.Goals
name: GoalSet
nameWithType: GoalSet
fullName: TinyLife.Goals.GoalSet
- uid: TinyLife.Goals.AutoTriggerGoal
commentId: T:TinyLife.Goals.AutoTriggerGoal
parent: TinyLife.Goals
name: AutoTriggerGoal
nameWithType: AutoTriggerGoal
fullName: TinyLife.Goals.AutoTriggerGoal
- uid: TinyLife.Goals.GoalTrigger
commentId: T:TinyLife.Goals.GoalTrigger
parent: TinyLife.Goals
name: GoalTrigger
nameWithType: GoalTrigger
fullName: TinyLife.Goals.GoalTrigger
- uid: TinyLife.Goals
commentId: N:TinyLife.Goals
name: TinyLife.Goals
nameWithType: TinyLife.Goals
fullName: TinyLife.Goals
- uid: TinyLife.Goals.IGoalTriggerable.TinyLife.Utilities.Extensions.JsonCopy``1
commentId: M:TinyLife.Utilities.Extensions.JsonCopy``1(``0)
parent: TinyLife.Utilities.Extensions
definition: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
name: JsonCopy()
nameWithType: Extensions.JsonCopy()
fullName: TinyLife.Utilities.Extensions.JsonCopy()
nameWithType.vb: Extensions.JsonCopy(Of IGoalTriggerable)()
fullName.vb: TinyLife.Utilities.Extensions.JsonCopy(Of TinyLife.Goals.IGoalTriggerable)()
name.vb: JsonCopy(Of IGoalTriggerable)()
spec.csharp:
- uid: TinyLife.Utilities.Extensions.JsonCopy``1
name: JsonCopy
nameWithType: Extensions.JsonCopy
fullName: TinyLife.Utilities.Extensions.JsonCopy
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: TinyLife.Utilities.Extensions.JsonCopy``1
name: JsonCopy(Of IGoalTriggerable)
nameWithType: Extensions.JsonCopy(Of IGoalTriggerable)
fullName: TinyLife.Utilities.Extensions.JsonCopy(Of TinyLife.Goals.IGoalTriggerable)
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
commentId: M:TinyLife.Utilities.Extensions.JsonCopy``1(``0)
name: JsonCopy(T)
nameWithType: Extensions.JsonCopy(T)
fullName: TinyLife.Utilities.Extensions.JsonCopy(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)
name: JsonCopy
nameWithType: Extensions.JsonCopy
fullName: TinyLife.Utilities.Extensions.JsonCopy
- name: (
nameWithType: (
fullName: (
- name: T
nameWithType: T
fullName: T
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
name: JsonCopy(Of T)
nameWithType: Extensions.JsonCopy(Of T)
fullName: TinyLife.Utilities.Extensions.JsonCopy(Of T)
- name: (
nameWithType: (
fullName: (
- name: T
nameWithType: T
fullName: T
- name: )
nameWithType: )
fullName: )
- uid: TinyLife.Utilities.Extensions
commentId: T:TinyLife.Utilities.Extensions
parent: TinyLife.Utilities
name: Extensions
nameWithType: Extensions
fullName: TinyLife.Utilities.Extensions
- uid: TinyLife.Utilities
commentId: N:TinyLife.Utilities
name: TinyLife.Utilities
nameWithType: TinyLife.Utilities
fullName: TinyLife.Utilities
- uid: TinyLife.Goals.IGoalTriggerable.Trigger(TinyLife.Goals.IGoalTriggerable,System.Object,TinyLife.Goals.GoalTrigger,System.Object[])
commentId: M:TinyLife.Goals.IGoalTriggerable.Trigger(TinyLife.Goals.IGoalTriggerable,System.Object,TinyLife.Goals.GoalTrigger,System.Object[])
isExternal: true
- uid: TinyLife.Goals.IGoalTriggerable
commentId: T:TinyLife.Goals.IGoalTriggerable
parent: TinyLife.Goals
name: IGoalTriggerable
nameWithType: IGoalTriggerable
fullName: TinyLife.Goals.IGoalTriggerable
- uid: TinyLife.Goals.IGoalTriggerable.TryTrigger*
commentId: Overload:TinyLife.Goals.IGoalTriggerable.TryTrigger
name: TryTrigger
nameWithType: IGoalTriggerable.TryTrigger
fullName: TinyLife.Goals.IGoalTriggerable.TryTrigger
- uid: System.Object
commentId: T:System.Object
parent: System
isExternal: true
name: Object
nameWithType: Object
fullName: System.Object
- uid: System.Boolean
commentId: T:System.Boolean
parent: System
isExternal: true
name: Boolean
nameWithType: Boolean
fullName: System.Boolean
- uid: System
commentId: N:System
isExternal: true
name: System
nameWithType: System
fullName: System
- uid: TinyLife.Goals.AmountGoal
commentId: T:TinyLife.Goals.AmountGoal
name: AmountGoal
nameWithType: AmountGoal
fullName: TinyLife.Goals.AmountGoal
- uid: TinyLife.Goals.ConditionedGoal
commentId: T:TinyLife.Goals.ConditionedGoal
name: ConditionedGoal
nameWithType: ConditionedGoal
fullName: TinyLife.Goals.ConditionedGoal
- uid: TinyLife.Goals.DistinctGoal
commentId: T:TinyLife.Goals.DistinctGoal
isExternal: true
- uid: TinyLife.Objects.Person
commentId: T:TinyLife.Objects.Person
parent: TinyLife.Objects
name: Person
nameWithType: Person
fullName: TinyLife.Objects.Person
- uid: TinyLife.Objects.Person.GetCurrentGoals
commentId: M:TinyLife.Objects.Person.GetCurrentGoals
isExternal: true
- uid: TinyLife.Goals.IGoalTriggerable.TryTrigger(System.Object,TinyLife.Goals.GoalTrigger,System.Object)
commentId: M:TinyLife.Goals.IGoalTriggerable.TryTrigger(System.Object,TinyLife.Goals.GoalTrigger,System.Object)
isExternal: true
- uid: TinyLife.Goals.IGoalTriggerable.Trigger*
commentId: Overload:TinyLife.Goals.IGoalTriggerable.Trigger
name: Trigger
nameWithType: IGoalTriggerable.Trigger
fullName: TinyLife.Goals.IGoalTriggerable.Trigger
- uid: System.Object[]
isExternal: true
name: Object[]
nameWithType: Object[]
fullName: System.Object[]
nameWithType.vb: Object()
fullName.vb: System.Object()
name.vb: Object()
spec.csharp:
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: '[]'
nameWithType: '[]'
fullName: '[]'
spec.vb:
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: ()
nameWithType: ()
fullName: ()
- uid: TinyLife.Objects
commentId: N:TinyLife.Objects
name: TinyLife.Objects
nameWithType: TinyLife.Objects
fullName: TinyLife.Objects
- uid: System.Collections.Generic.IEnumerable{TinyLife.Goals.IGoalTriggerable}
commentId: T:System.Collections.Generic.IEnumerable{TinyLife.Goals.IGoalTriggerable}
parent: System.Collections.Generic
definition: System.Collections.Generic.IEnumerable`1
name: IEnumerable
nameWithType: IEnumerable
fullName: System.Collections.Generic.IEnumerable
nameWithType.vb: IEnumerable(Of IGoalTriggerable)
fullName.vb: System.Collections.Generic.IEnumerable(Of TinyLife.Goals.IGoalTriggerable)
name.vb: IEnumerable(Of IGoalTriggerable)
spec.csharp:
- uid: System.Collections.Generic.IEnumerable`1
name: IEnumerable
nameWithType: IEnumerable
fullName: System.Collections.Generic.IEnumerable
isExternal: true
- name: <
nameWithType: <
fullName: <
- uid: TinyLife.Goals.IGoalTriggerable
name: IGoalTriggerable
nameWithType: IGoalTriggerable
fullName: TinyLife.Goals.IGoalTriggerable
- name: '>'
nameWithType: '>'
fullName: '>'
spec.vb:
- uid: System.Collections.Generic.IEnumerable`1
name: IEnumerable
nameWithType: IEnumerable
fullName: System.Collections.Generic.IEnumerable
isExternal: true
- name: '(Of '
nameWithType: '(Of '
fullName: '(Of '
- uid: TinyLife.Goals.IGoalTriggerable
name: IGoalTriggerable
nameWithType: IGoalTriggerable
fullName: TinyLife.Goals.IGoalTriggerable
- name: )
nameWithType: )
fullName: )
- uid: System.Collections.Generic.IEnumerable`1
commentId: T:System.Collections.Generic.IEnumerable`1
isExternal: true
name: IEnumerable
nameWithType: IEnumerable
fullName: System.Collections.Generic.IEnumerable
nameWithType.vb: IEnumerable(Of T)
fullName.vb: System.Collections.Generic.IEnumerable(Of T)
name.vb: IEnumerable(Of T)
spec.csharp:
- uid: System.Collections.Generic.IEnumerable`1
name: IEnumerable
nameWithType: IEnumerable
fullName: System.Collections.Generic.IEnumerable
isExternal: true
- name: <
nameWithType: <
fullName: <
- name: T
nameWithType: T
fullName: T
- name: '>'
nameWithType: '>'
fullName: '>'
spec.vb:
- uid: System.Collections.Generic.IEnumerable`1
name: IEnumerable
nameWithType: IEnumerable
fullName: System.Collections.Generic.IEnumerable
isExternal: true
- name: '(Of '
nameWithType: '(Of '
fullName: '(Of '
- name: T
nameWithType: T
fullName: T
- name: )
nameWithType: )
fullName: )
- uid: System.Collections.Generic
commentId: N:System.Collections.Generic
isExternal: true
name: System.Collections.Generic
nameWithType: System.Collections.Generic
fullName: System.Collections.Generic