Files
OldThink/Content.Shared/Pinpointer/NavMapComponent.cs

37 lines
877 B
C#
Raw Normal View History

2023-04-13 16:21:24 +10:00
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
2023-04-13 16:21:24 +10:00
{
2023-09-16 18:11:47 +10:00
/*
* Don't need DataFields as this can be reconstructed
*/
2023-04-13 16:21:24 +10:00
[ViewVariables]
public readonly Dictionary<Vector2i, NavMapChunk> Chunks = new();
2023-09-16 18:11:47 +10:00
[ViewVariables] public readonly List<SharedNavMapSystem.NavMapBeacon> Beacons = new();
[ViewVariables] public readonly List<SharedNavMapSystem.NavMapAirlock> Airlocks = new();
2023-04-13 16:21:24 +10:00
}
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;
}
}