Pathfinder rework (#11452)
This commit is contained in:
23
Content.Shared/NPC/PathfindingBoundary.cs
Normal file
23
Content.Shared/NPC/PathfindingBoundary.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.NPC;
|
||||
|
||||
/// <summary>
|
||||
/// Boundary around a navigation region.
|
||||
/// </summary>
|
||||
[Serializable, NetSerializable]
|
||||
public struct PathfindingBoundary
|
||||
{
|
||||
public List<PathfindingBreadcrumb> Breadcrumbs;
|
||||
|
||||
/// <summary>
|
||||
/// Is it a closed loop or is it a special-case chain (e.g. thindows).
|
||||
/// </summary>
|
||||
public bool Closed;
|
||||
|
||||
public PathfindingBoundary(bool closed, List<PathfindingBreadcrumb> crumbs)
|
||||
{
|
||||
Closed = closed;
|
||||
Breadcrumbs = crumbs;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user