using Content.Shared.Dataset; using Robust.Shared.Prototypes; namespace Content.Server.RandomMetadata; /// /// Randomizes the description and/or the name for an entity by creating it from list of dataset prototypes or strings. /// [RegisterComponent] public sealed partial class RandomMetadataComponent : Component { [DataField] public List>? DescriptionSegments; [DataField] public List>? NameSegments; /// /// LocId of the formatting string to use to assemble the into the entity's name. /// Segments will be passed to the localization system with this string as variables named $part0, $part1, $part2, etc. /// [DataField] public LocId NameFormat = "random-metadata-name-format-default"; /// /// LocId of the formatting string to use to assemble the into the entity's description. /// Segments will be passed to the localization system with this string as variables named $part0, $part1, $part2, etc. /// [DataField] public LocId DescriptionFormat = "random-metadata-description-format-default"; }