Files
OldThink/Content.Shared/Silicons/Laws/Components/SiliconLawProviderComponent.cs

24 lines
787 B
C#
Raw Permalink Normal View History

using Robust.Shared.Prototypes;
namespace Content.Shared.Silicons.Laws.Components;
/// <summary>
/// This is used for an entity which grants laws to a <see cref="SiliconLawBoundComponent"/>
/// </summary>
[RegisterComponent, Access(typeof(SharedSiliconLawSystem))]
public sealed partial class SiliconLawProviderComponent : Component
{
/// <summary>
/// The id of the lawset that is being provided.
/// </summary>
[DataField(required: true)]
public ProtoId<SiliconLawsetPrototype> Laws = string.Empty;
/// <summary>
/// Lawset created from the prototype id.
/// Cached when getting laws and modified during an ion storm event and when emagged.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public SiliconLawset? Lawset;
}