mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-10 02:41:18 +03:00
* 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
22 lines
714 B
C#
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;
|
|
}
|