6
StarHorizon_Public/Content.Shared/Paper/RandomPaperContentComponent.cs
2025-11-03 10:15:18 +03:00

18 lines
567 B
C#

using Content.Shared.Dataset;
using Robust.Shared.Prototypes;
namespace Content.Shared.Paper;
/// <summary>
/// If added to an entity that has a <see cref="PaperComponent"/>, the name,
/// description and contents of the paper will be replaced with a random
/// entry from the specified <see cref="LocalizedDatasetPrototype"/>.
/// Requires <see cref="PaperComponent"/>.
/// </summary>
[RegisterComponent]
public sealed partial class RandomPaperContentComponent : Component
{
[DataField(required: true)]
public ProtoId<LocalizedDatasetPrototype> Dataset;
}