* Predicted gas pumps I wanted to try out atmos and first thing I found. * a * Atmos device prediction - Canisters - Tanks - Internals AirMixes aren't predicted so nothing on that front but all the UIs should be a lot closer. * Remove details range * Gas tank prediction * Even more sweeping changes * Alerts * rehg * Popup fix * Fix merge conflicts * Fix * Review
28 lines
824 B
C#
28 lines
824 B
C#
using Content.Shared.Alert;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Body.Components;
|
|
|
|
/// <summary>
|
|
/// Handles hooking up a mask (breathing tool) / gas tank together and allowing the Owner to breathe through it.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
|
|
public sealed partial class InternalsComponent : Component
|
|
{
|
|
[DataField, AutoNetworkedField]
|
|
public EntityUid? GasTankEntity;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public HashSet<EntityUid> BreathTools = new();
|
|
|
|
/// <summary>
|
|
/// Toggle Internals delay when the target is not you.
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan Delay = TimeSpan.FromSeconds(3);
|
|
|
|
[DataField]
|
|
public ProtoId<AlertPrototype> InternalsAlert = "Internals";
|
|
}
|