using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Server.NPC.Pathfinding;
///
/// Stores the relevant pathfinding data for grids.
///
[RegisterComponent, Access(typeof(PathfindingSystem))]
public sealed class GridPathfindingComponent : Component
{
[ViewVariables]
public readonly HashSet DirtyChunks = new();
///
/// Next time the graph is allowed to update.
///
[ViewVariables, DataField("nextUpdate", customTypeSerializer:typeof(TimeOffsetSerializer))]
public TimeSpan NextUpdate;
[ViewVariables]
public readonly Dictionary Chunks = new();
///
/// Retrieves the chunk where the specified portal is stored on this grid.
///
[ViewVariables]
public readonly Dictionary PortalLookup = new();
[ViewVariables]
public readonly List DirtyPortals = new();
}