Class SharedPathfindingSystem
Inheritance
System.Object
SharedPathfindingSystem
Assembly: Content.Shared.dll
Syntax
public abstract class SharedPathfindingSystem : EntitySystem
Fields
|
Improve this Doc
View Source
ChunkSize
Declaration
public const byte ChunkSize = null
Field Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
ChunkSizeVec
Declaration
public static readonly Vector2 ChunkSizeVec
Field Value
|
Improve this Doc
View Source
StepOffset
We won't do points on edges so we'll offset them slightly.
Declaration
protected const float StepOffset = null
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
SubStep
This is equivalent to agent radii for navmeshes. In our case it's preferable that things are cleanly
divisible per tile so we'll make sure it works as a discrete number.
Declaration
public const byte SubStep = null
Field Value
Type |
Description |
System.Byte |
|
Methods
|
Improve this Doc
View Source
GetCoordinate(Vector2i, Vector2i)
Declaration
public Vector2 GetCoordinate(Vector2i chunk, Vector2i index)
Parameters
Type |
Name |
Description |
Vector2i |
chunk |
|
Vector2i |
index |
|
Returns
|
Improve this Doc
View Source
ManhattanDistance(Vector2i, Vector2i)
Declaration
public static float ManhattanDistance(Vector2i start, Vector2i end)
Parameters
Type |
Name |
Description |
Vector2i |
start |
|
Vector2i |
end |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
OctileDistance(Vector2i, Vector2i)
Declaration
public static float OctileDistance(Vector2i start, Vector2i end)
Parameters
Type |
Name |
Description |
Vector2i |
start |
|
Vector2i |
end |
|
Returns
Type |
Description |
System.Single |
|