2022-09-14 03:13:22 -04:00
|
|
|
|
namespace Content.Server.RandomMetadata;
|
2022-05-02 13:51:03 -07:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-09-14 03:13:22 -04:00
|
|
|
|
/// Randomizes the description and/or the name for an entity by creating it from list of dataset prototypes or strings.
|
2022-05-02 13:51:03 -07:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class RandomMetadataComponent : Component
|
2022-05-02 13:51:03 -07:00
|
|
|
|
{
|
2022-09-14 03:13:22 -04:00
|
|
|
|
[DataField("descriptionSegments")]
|
|
|
|
|
|
public List<string>? DescriptionSegments;
|
|
|
|
|
|
|
|
|
|
|
|
[DataField("nameSegments")]
|
|
|
|
|
|
public List<string>? NameSegments;
|
|
|
|
|
|
|
|
|
|
|
|
[DataField("nameSeparator")]
|
|
|
|
|
|
public string NameSeparator = " ";
|
2022-05-02 13:51:03 -07:00
|
|
|
|
|
2022-09-14 03:13:22 -04:00
|
|
|
|
[DataField("descriptionSeparator")]
|
|
|
|
|
|
public string DescriptionSeparator = " ";
|
2022-05-02 13:51:03 -07:00
|
|
|
|
}
|