Class CommunityGardenerPlantAction
public class CommunityGardenerPlantAction : PlantAction, IGenericDataHolder
- Inheritance
-
JsonTypeSafeGenericDataHolderCommunityGardenerPlantAction
- Implements
-
IGenericDataHolder
- Inherited Members
-
JsonTypeSafeGenericDataHolder.GetDataKeys()
- Extension Methods
Constructors
CommunityGardenerPlantAction(ActionType, ActionInfo)
public CommunityGardenerPlantAction(ActionType type, ActionInfo info)
Parameters
typeActionTypeinfoActionInfo
Fields
PlantsToSpawn
public static readonly List<PlantType> PlantsToSpawn
Field Value
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
typeCompletionTypeThe 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
personPersonLike