Empeld
Empeld plugin documentation.
essentials.action.Pathing.PathingJob Class Reference

A pathing job for the task scheduler to increment an engine More...

Inheritance diagram for essentials.action.Pathing.PathingJob:
pluginbase.Objects.Tasks.ITask

Public Member Functions

 PathingJob (IPathingEngine engine)
 
void Abort ()
 
Path GetResult ()
 

Properties

PathEngineState State [get]
 
- Properties inherited from pluginbase.Objects.Tasks.ITask
TimeSpan Frequency [get]
 

Events

Action< PathOnComplete
 
Action< PathOnIncrement
 

Detailed Description

A pathing job for the task scheduler to increment an engine

Constructor & Destructor Documentation

◆ PathingJob()

essentials.action.Pathing.PathingJob.PathingJob ( IPathingEngine  engine)
21  {
22  _engine = engine;
23  _timer = new Stopwatch();
24  }

Member Function Documentation

◆ Abort()

void essentials.action.Pathing.PathingJob.Abort ( )
27  {
28  _abort = true;
29  }

◆ GetResult()

Path essentials.action.Pathing.PathingJob.GetResult ( )
37  {
38  return _engine.GetResult();
39  }
Path GetResult()
Returns the full resulting path. Throws if incomplete

Property Documentation

◆ State

PathEngineState essentials.action.Pathing.PathingJob.State
get

Event Documentation

◆ OnComplete

Action<Path> essentials.action.Pathing.PathingJob.OnComplete

◆ OnIncrement

Action<Path> essentials.action.Pathing.PathingJob.OnIncrement

The documentation for this class was generated from the following file: