2022-12-20 17:39:57 -05:00
|
|
|
|
using Robust.Shared.Audio;
|
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Research.TechnologyDisk.Components;
|
|
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class DiskConsoleComponent : Component
|
2022-12-20 17:39:57 -05:00
|
|
|
|
{
|
2023-05-19 22:10:28 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// How much it costs to print a disk
|
|
|
|
|
|
/// </summary>
|
2022-12-20 17:39:57 -05:00
|
|
|
|
[DataField("pricePerDisk"), ViewVariables(VVAccess.ReadWrite)]
|
2023-05-19 22:10:28 -04:00
|
|
|
|
public int PricePerDisk = 1000;
|
2022-12-20 17:39:57 -05:00
|
|
|
|
|
2023-05-19 22:10:28 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The prototype of what's being printed
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("diskPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>)), ViewVariables(VVAccess.ReadWrite)]
|
2022-12-20 17:39:57 -05:00
|
|
|
|
public string DiskPrototype = "TechnologyDisk";
|
|
|
|
|
|
|
2023-05-19 22:10:28 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// How long it takes to print <see cref="DiskPrototype"/>
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("printDuration"), ViewVariables(VVAccess.ReadWrite)]
|
2022-12-20 17:39:57 -05:00
|
|
|
|
public TimeSpan PrintDuration = TimeSpan.FromSeconds(1);
|
|
|
|
|
|
|
2023-05-19 22:10:28 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The sound made when printing occurs
|
|
|
|
|
|
/// </summary>
|
2022-12-20 17:39:57 -05:00
|
|
|
|
[DataField("printSound")]
|
|
|
|
|
|
public SoundSpecifier PrintSound = new SoundPathSpecifier("/Audio/Machines/printer.ogg");
|
|
|
|
|
|
}
|