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 partial class GridPathfindingComponent : Component { [ViewVariables] public readonly HashSet DirtyChunks = new(); /// /// Next time the graph is allowed to update. /// /// Removing this datafield is the lazy fix HOWEVER I want to purge this anyway and do pathfinding at runtime. 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(); }