Class GoHereIshAction
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
-
JsonTypeSafeGenericDataHolderGoHereIshAction
- 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
infoActionInfoThe 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
personPersonLikepositionsIEnumerable<(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
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()