Mineral Scanner (#31390)
* Mineral Scanner * doink * review * sunday funday * review and fix bugs i think? * Update MiningOverlay.cs
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Map;
|
||||
|
||||
namespace Content.Shared.Mining.Components;
|
||||
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, AutoGenerateComponentPause, Access(typeof(MiningScannerSystem))]
|
||||
public sealed partial class MiningScannerViewerComponent : Component
|
||||
{
|
||||
[DataField, ViewVariables(VVAccess.ReadOnly), AutoNetworkedField]
|
||||
public float ViewRange;
|
||||
|
||||
[DataField, AutoNetworkedField]
|
||||
public float AnimationDuration = 1.5f;
|
||||
|
||||
[DataField, AutoNetworkedField]
|
||||
public TimeSpan PingDelay = TimeSpan.FromSeconds(5);
|
||||
|
||||
[DataField, AutoNetworkedField, AutoPausedField]
|
||||
public TimeSpan NextPingTime = TimeSpan.MaxValue;
|
||||
|
||||
[DataField]
|
||||
public EntityCoordinates? LastPingLocation;
|
||||
|
||||
[DataField, AutoNetworkedField]
|
||||
public SoundSpecifier? PingSound = new SoundPathSpecifier("/Audio/Machines/sonar-ping.ogg")
|
||||
{
|
||||
Params = new AudioParams
|
||||
{
|
||||
Volume = -3,
|
||||
}
|
||||
};
|
||||
|
||||
[DataField]
|
||||
public bool QueueRemoval;
|
||||
}
|
||||
Reference in New Issue
Block a user