Files
crystall-punk-14/Content.Shared/_CP14/Religion/Components/CP14ReligionObserverComponent.cs
Red 3a4bbcb289 Area of influence depends on followers MobState (#1439)
* simple anti-religion zone shader

* observers refactor
2025-06-18 21:46:58 +03:00

23 lines
745 B
C#

using Content.Shared._CP14.Religion.Prototypes;
using Content.Shared._CP14.Religion.Systems;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared._CP14.Religion.Components;
/// <summary>
/// Allows the god of a particular religion to see within a radius around the observer.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true), Access(typeof(CP14SharedReligionGodSystem))]
public sealed partial class CP14ReligionObserverComponent : Component
{
[DataField, AutoNetworkedField]
public ProtoId<CP14ReligionPrototype>? Religion;
[DataField, AutoNetworkedField]
public float Radius = 5f;
[DataField, AutoNetworkedField]
public bool Active = true;
}