Table of Contents

Struct Project.ActionSettings

Namespace
TinyLife.Goals
Assembly
Tiny Life.dll

A struct that represents a set of settings for CreateActions(ActionSettings)

public struct Project.ActionSettings
Inherited Members
Extension Methods

Constructors

ActionSettings(string, ObjectCategory, string, Type)

Constructs new action settings with the given default values

public ActionSettings(string name, ObjectCategory context, string type, Type constructedType)

Parameters

name string

The basic name for the actions

context ObjectCategory

The context for the actions

type string

The type of project that these actions should relate to. The type needs to have a constructor that additionally accepts a string, which is the project name to work on.

constructedType Type

The type that should be constructed for the start and continue actions

Fields

CanContinue

A function that determines whether the given project can be continued. By default, this function returns true for a project whose Completed property is false.

public Predicate<Project> CanContinue

Field Value

Predicate<Project>

ConstructedTypeScrap

The function that is used to construct the scrap action. If this is null, projects will not be scrappable using these actions. The type needs to have a constructor that additionally accepts a string, which is the project name to work on, and is passed using AddedConstructorArguments.

public Type ConstructedTypeScrap

Field Value

Type

IncludeProject

A function that determines whether the given project should be included as an action variety or whether it should be ignored. By default, this function returns true for a project that is not Archived, and whose DailyPay is less than or equal to 0.

public Predicate<Project> IncludeProject

Field Value

Predicate<Project>

ProjectDisplayName

A function that determines the display name for a given project. If this is null, the project's Name is displayed along with its doneness percentage.

public Func<Project, string> ProjectDisplayName

Field Value

Func<Project, string>

Settings

The underlying ActionType.TypeSettings to use for construction. These will be amended with additional info based on these action settings as part of CreateActions(ActionSettings).

public ActionType.TypeSettings Settings

Field Value

ActionType.TypeSettings

Type

The project Type to use for the actions

public string Type

Field Value

string