* The all-in-one hacking solution The thinking man's lockpick The iconic EMAG * emagged medbay's stasis bed * left med, emagged sec' apc * went back to chem, emagged the dispenser * emagged the fax while i was there * had a donut while waiting for emag to charge * i broke into the bridge then announced 'mandatory johnson inspection in medical' * get system instead of dependency * feedback * net suggestion Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> * use EnsureComp and import NetworkedComponent --------- Co-authored-by: deltanedas <user@zenith> Co-authored-by: deltanedas <deltanedas@laptop> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
32 lines
1.3 KiB
C#
32 lines
1.3 KiB
C#
using Content.Server.Chemistry.EntitySystems;
|
|
using Content.Shared.Chemistry;
|
|
using Content.Shared.Chemistry.Dispenser;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.Chemistry.Components
|
|
{
|
|
/// <summary>
|
|
/// A machine that dispenses reagents into a solution container.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
[Access(typeof(ReagentDispenserSystem))]
|
|
public sealed class ReagentDispenserComponent : Component
|
|
{
|
|
|
|
[DataField("pack", customTypeSerializer:typeof(PrototypeIdSerializer<ReagentDispenserInventoryPrototype>))]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public string? PackPrototypeId = default!;
|
|
|
|
[DataField("emagPack", customTypeSerializer:typeof(PrototypeIdSerializer<ReagentDispenserInventoryPrototype>))]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public string? EmagPackPrototypeId = default!;
|
|
|
|
[DataField("clickSound"), ViewVariables(VVAccess.ReadWrite)]
|
|
public SoundSpecifier ClickSound = new SoundPathSpecifier("/Audio/Machines/machine_switch.ogg");
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public ReagentDispenserDispenseAmount DispenseAmount = ReagentDispenserDispenseAmount.U10;
|
|
}
|
|
}
|