2023-10-27 03:40:13 +01:00
|
|
|
|
using Robust.Shared.Prototypes;
|
2023-08-12 17:39:58 -04:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Silicons.Laws.Components;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This is used for an entity which grants laws to a <see cref="SiliconLawBoundComponent"/>
|
|
|
|
|
|
/// </summary>
|
2023-08-14 19:34:23 -04:00
|
|
|
|
[RegisterComponent, Access(typeof(SharedSiliconLawSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class SiliconLawProviderComponent : Component
|
2023-08-12 17:39:58 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2023-10-27 03:40:13 +01:00
|
|
|
|
/// The id of the lawset that is being provided.
|
2023-08-12 17:39:58 -04:00
|
|
|
|
/// </summary>
|
2023-10-27 03:40:13 +01:00
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
|
public ProtoId<SiliconLawsetPrototype> Laws = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Lawset created from the prototype id.
|
2024-02-01 00:02:49 -05:00
|
|
|
|
/// Cached when getting laws and modified during an ion storm event and when emagged.
|
2023-10-27 03:40:13 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
|
public SiliconLawset? Lawset;
|
2023-08-12 17:39:58 -04:00
|
|
|
|
}
|