ECS configuration component (#7353)

This commit is contained in:
Leon Friedrich
2022-03-31 18:22:38 +13:00
committed by GitHub
parent 70f0fffed2
commit dab0020d35
4 changed files with 80 additions and 140 deletions

View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using Robust.Shared.GameObjects;
using System.Text.RegularExpressions;
using Robust.Shared.Serialization;
namespace Content.Shared.Configurable
@@ -8,6 +6,9 @@ namespace Content.Shared.Configurable
[Virtual]
public class SharedConfigurationComponent : Component
{
[DataField("validation")]
public readonly Regex Validation = new("^[a-zA-Z0-9 ]*$", RegexOptions.Compiled);
[Serializable, NetSerializable]
public sealed class ConfigurationBoundUserInterfaceState : BoundUserInterfaceState
{