Files
tbd-station-14/Content.Shared/Prototypes/NavMapBlipPrototype.cs
chromiumboy 45012cbe1d Layering for atmospheric pipes (#36124)
Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Co-authored-by: Kevin Zheng <kevinz5000@gmail.com>
2025-06-01 22:01:43 -07:00

56 lines
1.5 KiB
C#

using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
namespace Content.Shared.Prototypes;
[Prototype]
public sealed partial class NavMapBlipPrototype : IPrototype
{
[ViewVariables]
[IdDataField]
public string ID { get; private set; } = default!;
/// <summary>
/// Sets whether the associated entity can be selected when the blip is clicked
/// </summary>
[DataField]
public bool Selectable = false;
/// <summary>
/// Sets whether the blips is always blinking
/// </summary>
[DataField]
public bool Blinks = false;
/// <summary>
/// Sets the color of the blip
/// </summary>
[DataField]
public Color Color { get; private set; } = Color.LightGray;
/// <summary>
/// Texture paths associated with the blip
/// </summary>
[DataField]
public ResPath[]? TexturePaths { get; private set; }
/// <summary>
/// Sets the UI scaling of the blip
/// </summary>
[DataField]
public float Scale { get; private set; } = 1f;
/// <summary>
/// Describes how the blip should be positioned.
/// It's up to the individual system to enforce this
/// </summary>
[DataField]
public NavMapBlipPlacement Placement { get; private set; } = NavMapBlipPlacement.Centered;
}
public enum NavMapBlipPlacement
{
Centered, // The blip appears in the center of the tile
Offset // The blip is offset from the center of the tile (determined by the system using the blips)
}