Chem stuff QoL (#321)

This commit is contained in:
Aviu00
2023-08-23 15:12:11 +03:00
committed by Aviu00
parent 0d9c472aea
commit 87b0fb3e04
12 changed files with 215 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.Components
/// <seealso cref="ChemMasterSystem"/>
/// </summary>
[RegisterComponent]
[Access(typeof(ChemMasterSystem))]
[Access(typeof(ChemMasterSystem), typeof(ReagentDispenserSystem))] // WD EDIT
public sealed partial class ChemMasterComponent : Component
{
[DataField("pillType"), ViewVariables(VVAccess.ReadWrite)]
@@ -23,5 +23,12 @@ namespace Content.Server.Chemistry.Components
[DataField("clickSound"), ViewVariables(VVAccess.ReadWrite)]
public SoundSpecifier ClickSound = new SoundPathSpecifier("/Audio/Machines/machine_switch.ogg");
// WD START
public const string ChemMasterPort = "ChemMasterReceiver";
[ViewVariables]
public EntityUid? ConnectedDispenser;
// WD END
}
}

View File

@@ -10,7 +10,7 @@ namespace Content.Server.Chemistry.Components
/// A machine that dispenses reagents into a solution container.
/// </summary>
[RegisterComponent]
[Access(typeof(ReagentDispenserSystem))]
[Access(typeof(ReagentDispenserSystem), typeof(ChemMasterSystem))]
public sealed partial class ReagentDispenserComponent : Component
{
@@ -27,5 +27,15 @@ namespace Content.Server.Chemistry.Components
[ViewVariables(VVAccess.ReadWrite)]
public ReagentDispenserDispenseAmount DispenseAmount = ReagentDispenserDispenseAmount.U10;
// WD START
public const string ChemMasterPort = "ChemMasterSender";
[ViewVariables]
public bool ChemMasterInRange;
[ViewVariables]
public EntityUid? ChemMaster;
// WD END
}
}