Split Door Bolt functionality out of AirlockDoor (#16354)
This commit is contained in:
@@ -86,7 +86,8 @@ public sealed class AirlockSystem : SharedAirlockSystem
|
||||
|
||||
if (_appearanceSystem.TryGetData<bool>(uid, DoorVisuals.Powered, out var powered, args.Component) && powered)
|
||||
{
|
||||
boltedVisible = _appearanceSystem.TryGetData<bool>(uid, DoorVisuals.BoltLights, out var lights, args.Component) && lights;
|
||||
boltedVisible = _appearanceSystem.TryGetData<bool>(uid, DoorVisuals.BoltLights, out var lights, args.Component)
|
||||
&& lights && state == DoorState.Closed;
|
||||
emergencyLightsVisible = _appearanceSystem.TryGetData<bool>(uid, DoorVisuals.EmergencyLights, out var eaLights, args.Component) && eaLights;
|
||||
unlitVisible =
|
||||
state == DoorState.Closing
|
||||
|
||||
12
Content.Client/Doors/DoorBoltSystem.cs
Normal file
12
Content.Client/Doors/DoorBoltSystem.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Content.Client.Wires.Visualizers;
|
||||
using Content.Shared.Doors.Components;
|
||||
using Content.Shared.Doors.Systems;
|
||||
using Robust.Client.Animations;
|
||||
using Robust.Client.GameObjects;
|
||||
|
||||
namespace Content.Client.Doors;
|
||||
|
||||
public sealed class DoorBoltSystem : SharedDoorBoltSystem
|
||||
{
|
||||
// Instantiate sub-class on client for prediction.
|
||||
}
|
||||
Reference in New Issue
Block a user