CatStation/Content.Shared/SurveillanceCamera/Components/CameraActiveOnCollideComponent.cs
ScarKy0 4a88b375df
Make cameras react to the AI eye nearby (#43466)
* init

TODO:
Make this part of the surveillance camera system
Make this be bearable when unpowered(Probably commented out until we make AI lose vision without power)
Remove leftover shit
Probably clean up the camera RSI

* move to surv cameras, unpowered, remove leftovers

* silly

* review

* review

* I can see the light

* reverse fixtures

* review

* dependency query

* unused oops
2026-04-05 15:03:29 +00:00

22 lines
714 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.SurveillanceCamera.Components;
/// <summary>
/// Marks an entity with <see cref="SurveillanceCameraComponent"/> whenever entities are contacting with it.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class CameraActiveOnCollideComponent : Component
{
/// <summary>
/// Whether this camera is currently being collided with.
/// </summary>
[DataField, AutoNetworkedField]
public bool Enabled;
/// <summary>
/// Whether the entity must be powered for this component to work.
/// </summary>
[DataField, AutoNetworkedField]
public bool RequiresPower = true;
}