Table of Contents

Class GoHereIshAction

Namespace
TinyLife.Actions
Assembly
TinyLife.dll

This action is similar to GoHereAction, but, instead of choosing the best location out of the GetInvolvedLocations(), it tries to pathfind to each one of the positions in a random order, until one of them is valid, and causes the Person to go to it.

public class GoHereIshAction : TryMultipleAction, IGenericDataHolder
Inheritance
JsonTypeSafeGenericDataHolder
GoHereIshAction
Implements
IGenericDataHolder
Inherited Members
JsonTypeSafeGenericDataHolder.GetDataKeys()
Extension Methods

Constructors

GoHereIshAction(ActionInfo)

Creates a new typeless action with the given action information.

[JsonConstructor]
public GoHereIshAction(ActionInfo info)

Parameters

info ActionInfo

The information for this action.

GoHereIshAction(PersonLike, IEnumerable<(Map Map, Point Pos, float Floor)>)

public GoHereIshAction(PersonLike person, IEnumerable<(Map Map, Point Pos, float Floor)> positions)

Parameters

person PersonLike
positions IEnumerable<(Map Map, Point Pos, float Floor)>

GoHereIshAction(PersonLike, IList<(Map Map, Vector2 Pos, float Floor)>)

public GoHereIshAction(PersonLike person, IList<(Map Map, Vector2 Pos, float Floor)> positions)

Parameters

person PersonLike
positions IList<(Map Map, Vector2 Pos, float Floor)>

Methods

GetNextActionToTry()

Create and return an instance of the next action to try. If this action completes successfully, this action also completes successfully. If this method returns null, it causes this action to fail.

public override Action GetNextActionToTry()

Returns

Action

The next action to try, or null to give up.