2025-04-16 11:08:22 +00:00
|
|
|
|
using Content.Shared.CartridgeLoader.Cartridges;
|
2025-02-27 13:47:16 +00:00
|
|
|
|
using Content.Shared.Paper;
|
2023-12-26 16:24:53 -06:00
|
|
|
|
using Robust.Shared.Audio;
|
2025-02-27 13:47:16 +00:00
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
2023-12-26 16:24:53 -06:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.CartridgeLoader.Cartridges;
|
|
|
|
|
|
|
2025-02-27 13:47:16 +00:00
|
|
|
|
[RegisterComponent, Access(typeof(LogProbeCartridgeSystem))]
|
|
|
|
|
|
[AutoGenerateComponentPause]
|
2023-12-26 16:24:53 -06:00
|
|
|
|
public sealed partial class LogProbeCartridgeComponent : Component
|
|
|
|
|
|
{
|
2025-02-27 13:47:16 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The name of the scanned entity, sent to clients when they open the UI.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField]
|
|
|
|
|
|
public string EntityName = string.Empty;
|
|
|
|
|
|
|
2023-12-26 16:24:53 -06:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The list of pulled access logs
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField, ViewVariables]
|
|
|
|
|
|
public List<PulledAccessLog> PulledAccessLogs = new();
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The sound to make when we scan something with access
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
2025-04-16 11:08:22 +00:00
|
|
|
|
public SoundSpecifier SoundScan = new SoundPathSpecifier("/Audio/Machines/scan_finish.ogg", AudioParams.Default.WithVariation(0.25f));
|
2025-02-27 13:47:16 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Paper to spawn when printing logs.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField]
|
|
|
|
|
|
public EntProtoId<PaperComponent> PaperPrototype = "PaperAccessLogs";
|
|
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
|
public SoundSpecifier PrintSound = new SoundPathSpecifier("/Audio/Machines/diagnoser_printing.ogg");
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// How long you have to wait before printing logs again.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField]
|
|
|
|
|
|
public TimeSpan PrintCooldown = TimeSpan.FromSeconds(5);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// When anyone is allowed to spawn another printout.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoPausedField]
|
|
|
|
|
|
public TimeSpan NextPrintAllowed = TimeSpan.Zero;
|
2023-12-26 16:24:53 -06:00
|
|
|
|
}
|