TinyLifeExampleMod/Api/TinyLife/Actions/PathfindAction.md

1.3 KiB

PathfindAction

Namespace: TinyLife > Actions

Assembly: Tiny Life.dll

Implements IGenericDataHolder

Summary

A pathfinding action is an action that first finds a path and then allows that path to be traversed. The pathfinding is done using MLEM.Pathfinding.AStar2.

Constructors

Name Summary
PathfindAction ( ActionType, ActionInfo )

Properties

Type Name Summary
Stack<Point> Path The path that this action has found. WHen TinyLife.Actions.PathfindAction.OnPathReady is called, this has a value.

Methods

Return Name Summary
void Initialize ( )
CompletionType IsCompleted ( )
void OnCompleted ( CompletionType )
void Update ( GameTime, TimeSpan, GameSpeed )
Boolean Validate ( Person )