Files
tbd-station-14/Content.Server/RandomMetadata/RandomMetadataComponent.cs
Nemanja cff6fe267c Use Segments for RandomMetadata (#11190)
* use segments for randomized names now

* separator datafields

* public api
2022-09-14 00:13:22 -07:00

21 lines
595 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 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 = " ";
}