| 123456789101112131415161718192021222324252627282930313233 |
- using Robust.Shared.GameStates;
- using Robust.Shared.Serialization;
- namespace Content.Shared.SubFloor;
- [RegisterComponent, NetworkedComponent]
- public sealed partial class TrayScannerComponent : Component
- {
- /// <summary>
- /// Whether the scanner is currently on.
- /// </summary>
- [DataField]
- public bool Enabled;
- /// <summary>
- /// Radius in which the scanner will reveal entities. Centered on the <see cref="LastLocation"/>.
- /// </summary>
- [DataField]
- public float Range = 4f;
- }
- [Serializable, NetSerializable]
- public sealed class TrayScannerState : ComponentState
- {
- public bool Enabled;
- public float Range;
- public TrayScannerState(bool enabled, float range)
- {
- Enabled = enabled;
- Range = range;
- }
- }
|