Surveillance camera's red light fixes (#31831)
several surv camera related fixes Co-authored-by: YourUsername <you@example.com>
This commit is contained in:
@@ -21,6 +21,7 @@ public sealed class SurveillanceCameraMonitorSystem : EntitySystem
|
||||
{
|
||||
SubscribeLocalEvent<SurveillanceCameraMonitorComponent, SurveillanceCameraDeactivateEvent>(OnSurveillanceCameraDeactivate);
|
||||
SubscribeLocalEvent<SurveillanceCameraMonitorComponent, PowerChangedEvent>(OnPowerChanged);
|
||||
SubscribeLocalEvent<SurveillanceCameraMonitorComponent, ComponentShutdown>(OnShutdown);
|
||||
SubscribeLocalEvent<SurveillanceCameraMonitorComponent, DeviceNetworkPacketEvent>(OnPacketReceived);
|
||||
SubscribeLocalEvent<SurveillanceCameraMonitorComponent, ComponentStartup>(OnComponentStartup);
|
||||
SubscribeLocalEvent<SurveillanceCameraMonitorComponent, AfterActivatableUIOpenEvent>(OnToggleInterface);
|
||||
@@ -196,6 +197,12 @@ public sealed class SurveillanceCameraMonitorSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
|
||||
private void OnShutdown(EntityUid uid, SurveillanceCameraMonitorComponent component, ComponentShutdown args)
|
||||
{
|
||||
RemoveActiveCamera(uid, component);
|
||||
}
|
||||
|
||||
|
||||
private void OnToggleInterface(EntityUid uid, SurveillanceCameraMonitorComponent component,
|
||||
AfterActivatableUIOpenEvent args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user