1
0

RandomMetadataComponent.cs 603 B

1234567891011121314151617181920
  1. namespace Content.Server.RandomMetadata;
  2. /// <summary>
  3. /// Randomizes the description and/or the name for an entity by creating it from list of dataset prototypes or strings.
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class RandomMetadataComponent : Component
  7. {
  8. [DataField("descriptionSegments")]
  9. public List<string>? DescriptionSegments;
  10. [DataField("nameSegments")]
  11. public List<string>? NameSegments;
  12. [DataField("nameSeparator")]
  13. public string NameSeparator = " ";
  14. [DataField("descriptionSeparator")]
  15. public string DescriptionSeparator = " ";
  16. }