Files

28 lines
927 B
C#
Raw Permalink Normal View History

using Content.Shared._CP14.Religion.Prototypes;
using Content.Shared._CP14.Religion.Systems;
using Content.Shared.FixedPoint;
using Robust.Shared.GameStates;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
namespace Content.Shared._CP14.Religion.Components;
/// <summary>
///
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(CP14SharedReligionGodSystem))]
public sealed partial class CP14ReligionEntityComponent : Component
{
[DataField(required: true)]
public ProtoId<CP14ReligionPrototype>? Religion;
public HashSet<EntityUid> PvsOverridedObservers = new();
public ICommonSession? Session;
/// <summary>
/// Number of followers as a percentage. Automatically calculated on the server and sent to the client for data synchronization.
/// </summary>
[DataField, AutoNetworkedField]
public FixedPoint2 FollowerPercentage = 0;
}