Table of Contents

Class GoalTrigger<TObject, TValue>

Namespace
TinyLife.Goals
Assembly
Tiny Life.dll

A goal trigger is used by AutoTriggerGoal instances to determine whether they should be triggered. Goal triggers are compared only by their Name, so mods can add goal triggers that work for other mods without explicit compatibility. If there is only one ValidObjects entry, it is preferred to use one of the generic types GoalTrigger<TObject, TValue>, GoalTrigger<TObject, TValue1, TValue2>, or GoalTrigger<TObject, TValue1, TValue2, TValue3> for compile-time type safety.

public class GoalTrigger<TObject, TValue> : GoalTrigger, IEquatable<GoalTrigger>

Type Parameters

TObject
TValue
Inheritance
GoalTrigger<TObject, TValue>
Implements
Inherited Members
Extension Methods

Constructors

GoalTrigger(string)

public GoalTrigger(string name)

Parameters

name string