Files
tbd-station-14/Content.Server/RandomMetadata/RandomMetadataComponent.cs
deltanedas 67a9809a5e remove evil shitcode from randommetadata (#36324)
* remove evil

* fix non-localizeddataset uses

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2025-04-05 17:56:22 +02:00

24 lines
642 B
C#
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Content.Shared.Dataset;
using Robust.Shared.Prototypes;
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 partial class RandomMetadataComponent : Component
{
[DataField]
public List<ProtoId<LocalizedDatasetPrototype>>? DescriptionSegments;
[DataField]
public List<ProtoId<LocalizedDatasetPrototype>>? NameSegments;
[DataField]
public string NameSeparator = " ";
[DataField]
public string DescriptionSeparator = " ";
}