remove a bunch of instances of component reference (#13164)
This commit is contained in:
@@ -1,11 +1,20 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using Content.Shared.Tools;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Shared.Configurable
|
||||
{
|
||||
[Virtual]
|
||||
public class SharedConfigurationComponent : Component
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed class ConfigurationComponent : Component
|
||||
{
|
||||
[DataField("config")]
|
||||
public readonly Dictionary<string, string> Config = new();
|
||||
|
||||
[DataField("qualityNeeded", customTypeSerializer: typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
||||
public string QualityNeeded = "Pulsing";
|
||||
|
||||
[DataField("validation")]
|
||||
public readonly Regex Validation = new("^[a-zA-Z0-9 ]*$", RegexOptions.Compiled);
|
||||
|
||||
Reference in New Issue
Block a user