Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
essentials.action.Pathing.Rails.StepRail Class Reference

Public Member Functions

 StepRail (IEnumerable< Vector3d > path)
 
 StepRail (Path path, Vector3d offset)
 
 StepRail (Path path)
 
bool Advance ()
 

Properties

int Index [get, set]
 
int Length [get]
 
Vector3d Position [get]
 
Vector3d LookDirection [get]
 

Constructor & Destructor Documentation

essentials.action.Pathing.Rails.StepRail.StepRail ( IEnumerable< Vector3d >  path)
64  {
65  _rail = path.ToArray();
66  }
essentials.action.Pathing.Rails.StepRail.StepRail ( Path  path,
Vector3d  offset 
)
69  :this(path.Select(x => x + offset))
70  {}
essentials.action.Pathing.Rails.StepRail.StepRail ( Path  path)
73  :this(path, Vector3d.Zero)
74  {}

Member Function Documentation

bool essentials.action.Pathing.Rails.StepRail.Advance ( )
77  {
78  if (_idx >= _rail.Length-1)
79  {
80  return false;
81  }
82  this.Index++;
83  return true;
84  }
int Index
Definition: StepRail.cs:15

Property Documentation

int essentials.action.Pathing.Rails.StepRail.Index
getset
int essentials.action.Pathing.Rails.StepRail.Length
get
Vector3d essentials.action.Pathing.Rails.StepRail.LookDirection
get
Vector3d essentials.action.Pathing.Rails.StepRail.Position
get

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