Files
tbd-station-14/Content.Shared/Pinpointer/NavMapComponent.cs
Nemanja 1886941da6 Add doors to the station map (#23639)
* Add doors to the navmap

* tweaksies

* gah

* draw primitive

* draw primitive? at least take me out to dinner first!

* Update Content.Client/Pinpointer/UI/NavMapControl.cs

* casualties

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2024-01-12 00:14:20 +11:00

37 lines
877 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Pinpointer;
/// <summary>
/// Used to store grid poly data to be used for UIs.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class NavMapComponent : Component
{
/*
* Don't need DataFields as this can be reconstructed
*/
[ViewVariables]
public readonly Dictionary<Vector2i, NavMapChunk> Chunks = new();
[ViewVariables] public readonly List<SharedNavMapSystem.NavMapBeacon> Beacons = new();
[ViewVariables] public readonly List<SharedNavMapSystem.NavMapAirlock> Airlocks = new();
}
public sealed class NavMapChunk
{
public readonly Vector2i Origin;
/// <summary>
/// Bitmask for tiles, 1 for occupied and 0 for empty.
/// </summary>
public int TileData;
public NavMapChunk(Vector2i origin)
{
Origin = origin;
}
}