Table of Contents

Class CommunityGardenerPlantAction

Namespace
TinyLife.Actions
Assembly
TinyLife.dll
public class CommunityGardenerPlantAction : PlantAction, IGenericDataHolder
Inheritance
JsonTypeSafeGenericDataHolder
CommunityGardenerPlantAction
Implements
IGenericDataHolder
Inherited Members
JsonTypeSafeGenericDataHolder.GetDataKeys()
Extension Methods

Constructors

CommunityGardenerPlantAction(ActionType, ActionInfo)

public CommunityGardenerPlantAction(ActionType type, ActionInfo info)

Parameters

type ActionType
info ActionInfo

Fields

PlantsToSpawn

public static readonly List<PlantType> PlantsToSpawn

Field Value

List<PlantType>

Methods

AndThenInitialize()

Initializes the main action. This method is called after Handler has all completed.

protected override void AndThenInitialize()

AndThenOnCompleted(CompletionType)

MultiAction version of OnCompleted(CompletionType). This method gets called when the main action completes.

protected override void AndThenOnCompleted(CompletionType type)

Parameters

type CompletionType

The completion of the main action

CreateFirstActions()

Return a set of actions that should be executed before this action. Even if the yield statement is used, all actions will be collected into a list at the start of this action's invocation. If no action gets returned in this function, this action fails. If the returned set only contains null items, no first actions will be executed.

protected override IEnumerable<Action> CreateFirstActions()

Returns

IEnumerable<Action>

A set of actions that should run before this action

FindValidPlanter(PersonLike)

public static ActionInfo FindValidPlanter(PersonLike person)

Parameters

person PersonLike

Returns

ActionInfo