Class GridPathfindingComponent
Stores the relevant pathfinding data for grids.
Inheritance
System.Object
GridPathfindingComponent
Namespace: Content.Server.NPC.Pathfinding
Assembly: Content.Server.dll
Syntax
public sealed class GridPathfindingComponent : Component
Fields
| Improve this Doc View SourceChunks
Declaration
public readonly Dictionary<Vector2i, GridPathfindingChunk> Chunks
Field Value
Type | Description |
---|---|
Dictionary<Vector2i, GridPathfindingChunk> |
DirtyChunks
Declaration
public readonly HashSet<Vector2i> DirtyChunks
Field Value
Type | Description |
---|---|
HashSet<Vector2i> |
DirtyPortals
Declaration
public readonly List<PathPortal> DirtyPortals
Field Value
Type | Description |
---|---|
List<PathPortal> |
NextUpdate
Next time the graph is allowed to update.
Declaration
public TimeSpan NextUpdate
Field Value
Type | Description |
---|---|
TimeSpan |
PortalLookup
Retrieves the chunk where the specified portal is stored on this grid.
Declaration
public readonly Dictionary<PathPortal, Vector2i> PortalLookup
Field Value
Type | Description |
---|---|
Dictionary<PathPortal, Vector2i> |