PathfindingBoundary.cs 544 B

1234567891011121314151617181920212223
  1. using Robust.Shared.Serialization;
  2. namespace Content.Shared.NPC;
  3. /// <summary>
  4. /// Boundary around a navigation region.
  5. /// </summary>
  6. [Serializable, NetSerializable]
  7. public struct PathfindingBoundary
  8. {
  9. public List<PathfindingBreadcrumb> Breadcrumbs;
  10. /// <summary>
  11. /// Is it a closed loop or is it a special-case chain (e.g. thindows).
  12. /// </summary>
  13. public bool Closed;
  14. public PathfindingBoundary(bool closed, List<PathfindingBreadcrumb> crumbs)
  15. {
  16. Closed = closed;
  17. Breadcrumbs = crumbs;
  18. }
  19. }