Class GoalInfo
A goal info is the underlying goal information for a Goal that constructs an instance when a new GoalSet is constructed. For auto-triggered goals, AutoGoalInfo should be used.
public class GoalInfo : GenericDataHolder, IGenericDataHolder
- Inheritance
-
GenericDataHolderGoalInfo
- Implements
-
IGenericDataHolder
- Derived
- Inherited Members
-
GenericDataHolder.GetDataKeys()
- Extension Methods
Constructors
GoalInfo(string, Func<GoalSet, GoalInfo, Goal>)
Creates a new goal info with the given settings
public GoalInfo(string name, Func<GoalSet, GoalInfo, Goal> constructor)
Parameters
name
stringThe name of this goal
constructor
Func<GoalSet, GoalInfo, Goal>The function that should be called to construct a goal instance
Fields
Name
The name of this goal info, which will be passed to the underlying Goal
public readonly string Name
Field Value
Methods
Construct(GoalSet)
Constructs a new goal from this goal info. By default, this simply calls the construction function that has been passed in the constructor.
public virtual Goal Construct(GoalSet set)
Parameters
set
GoalSetThe goal set
Returns
- Goal
The goal instance