ConfigurableNavMapBeaconComponent.cs 913 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.Pinpointer;
  4. /// <summary>
  5. /// This is used for a <see cref="NavMapBeaconComponent"/> that can be configured with a UI.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent]
  8. [Access(typeof(SharedNavMapSystem))]
  9. public sealed partial class ConfigurableNavMapBeaconComponent : Component
  10. {
  11. }
  12. [Serializable, NetSerializable]
  13. public sealed class NavMapBeaconConfigureBuiMessage : BoundUserInterfaceMessage
  14. {
  15. public string? Text;
  16. public bool Enabled;
  17. public Color Color;
  18. public NavMapBeaconConfigureBuiMessage(string? text, bool enabled, Color color)
  19. {
  20. Text = text;
  21. Enabled = enabled;
  22. Color = color;
  23. }
  24. }
  25. [Serializable, NetSerializable]
  26. public enum NavMapBeaconUiKey : byte
  27. {
  28. Key
  29. }
  30. [Serializable, NetSerializable]
  31. public enum NavMapBeaconVisuals : byte
  32. {
  33. Enabled
  34. }