2023-03-25 23:16:27 +00:00
|
|
|
using Content.Server.Atmos.Piping.Binary.EntitySystems;
|
2023-07-24 14:07:35 +12:00
|
|
|
using Content.Shared.DeviceLinking;
|
2023-03-25 23:16:27 +00:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Atmos.Piping.Binary.Components;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent, Access(typeof(SignalControlledValveSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class SignalControlledValveComponent : Component
|
2023-03-25 23:16:27 +00:00
|
|
|
{
|
2023-07-24 14:07:35 +12:00
|
|
|
[DataField("openPort", customTypeSerializer: typeof(PrototypeIdSerializer<SinkPortPrototype>))]
|
2023-03-25 23:16:27 +00:00
|
|
|
public string OpenPort = "Open";
|
|
|
|
|
|
2023-07-24 14:07:35 +12:00
|
|
|
[DataField("closePort", customTypeSerializer: typeof(PrototypeIdSerializer<SinkPortPrototype>))]
|
2023-03-25 23:16:27 +00:00
|
|
|
public string ClosePort = "Close";
|
|
|
|
|
|
2023-07-24 14:07:35 +12:00
|
|
|
[DataField("togglePort", customTypeSerializer: typeof(PrototypeIdSerializer<SinkPortPrototype>))]
|
2023-03-25 23:16:27 +00:00
|
|
|
public string TogglePort = "Toggle";
|
|
|
|
|
}
|