NavInterfaceState.cs 952 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Robust.Shared.Map;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.Shuttles.BUIStates;
  4. [Serializable, NetSerializable]
  5. public sealed class NavInterfaceState
  6. {
  7. public float MaxRange;
  8. /// <summary>
  9. /// The relevant coordinates to base the radar around.
  10. /// </summary>
  11. public NetCoordinates? Coordinates;
  12. /// <summary>
  13. /// The relevant rotation to rotate the angle around.
  14. /// </summary>
  15. public Angle? Angle;
  16. public Dictionary<NetEntity, List<DockingPortState>> Docks;
  17. public bool RotateWithEntity = true;
  18. public NavInterfaceState(
  19. float maxRange,
  20. NetCoordinates? coordinates,
  21. Angle? angle,
  22. Dictionary<NetEntity, List<DockingPortState>> docks)
  23. {
  24. MaxRange = maxRange;
  25. Coordinates = coordinates;
  26. Angle = angle;
  27. Docks = docks;
  28. }
  29. }
  30. [Serializable, NetSerializable]
  31. public enum RadarConsoleUiKey : byte
  32. {
  33. Key
  34. }