Files
tbd-station-14/Content.Server/RandomMetadata/RandomMetadataComponent.cs

21 lines
603 B
C#

namespace Content.Server.RandomMetadata;
/// <summary>
/// Randomizes the description and/or the name for an entity by creating it from list of dataset prototypes or strings.
/// </summary>
[RegisterComponent]
public sealed partial class RandomMetadataComponent : Component
{
[DataField("descriptionSegments")]
public List<string>? DescriptionSegments;
[DataField("nameSegments")]
public List<string>? NameSegments;
[DataField("nameSeparator")]
public string NameSeparator = " ";
[DataField("descriptionSeparator")]
public string DescriptionSeparator = " ";
}