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