Adds the NetProbe cartridge (#12543)
* Implement NetProbeCartridge * Add audio and a popup when scanning a device Add some doc comments * Set program icon * Add NetProbe cartridge as rare loot to maintenance loot tool spawner * Make the maximum amount of saved entries configurable Add a scrollbar that shows when there are more entries than fit on the screen * Make device net id names translatable
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using Content.Shared.CartridgeLoader.Cartridges;
|
||||
using Robust.Shared.Audio;
|
||||
|
||||
namespace Content.Server.CartridgeLoader.Cartridges;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class NetProbeCartridgeComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The list of probed network devices
|
||||
/// </summary>
|
||||
[DataField("probedDevices")]
|
||||
public List<ProbedNetworkDevice> ProbedDevices = new();
|
||||
|
||||
/// <summary>
|
||||
/// Limits the amount of devices that can be saved
|
||||
/// </summary>
|
||||
[DataField("maxSavedDevices")]
|
||||
public int MaxSavedDevices { get; set; } = 9;
|
||||
|
||||
[DataField("soundScan")]
|
||||
public SoundSpecifier SoundScan = new SoundPathSpecifier("/Audio/Machines/scan_finish.ogg");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user