* Station AI overlay * implement * Bunch of ports * Fix a heap of bugs and basic scouting * helldivers * Shuffle interactions a bit * navmap stuff * Revert "navmap stuff" This reverts commit d1f89dd4be83233e22cf5dd062b2581f3c6da062. * AI wires implemented * Fix examines * Optimise the overlay significantly * Back to old static * BUI radial working * lots of work * Saving work * thanks fork * alright * pc * AI upload console * AI upload * stuff * Fix copy-paste shitcode * AI actions * navmap work * Fixes * first impressions * a * reh * Revert "navmap work" This reverts commit 6f63fea6e9245e189f368f97be3e32e9b210580e. # Conflicts: # Content.Client/Silicons/StationAi/StationAiOverlay.cs * OD * radar * weh * Fix examines * scoop mine eyes * fixes * reh * Optimise * Final round of optimisations * Fixes * fixes
65 lines
2.1 KiB
C#
65 lines
2.1 KiB
C#
using System.Text.RegularExpressions;
|
|
using Content.Shared.Tools;
|
|
using Content.Shared.Tools.Systems;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Shared.Configurable
|
|
{
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class ConfigurationComponent : Component
|
|
{
|
|
[DataField("config")]
|
|
public Dictionary<string, string?> Config = new();
|
|
|
|
[DataField("qualityNeeded", customTypeSerializer: typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
|
public string QualityNeeded = SharedToolSystem.PulseQuality;
|
|
|
|
[DataField("validation")]
|
|
public Regex Validation = new("^[a-zA-Z0-9 ]*$", RegexOptions.Compiled);
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class ConfigurationBoundUserInterfaceState : BoundUserInterfaceState
|
|
{
|
|
public Dictionary<string, string?> Config { get; }
|
|
|
|
public ConfigurationBoundUserInterfaceState(Dictionary<string, string?> config)
|
|
{
|
|
Config = config;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Message data sent from client to server when the device configuration is updated.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class ConfigurationUpdatedMessage : BoundUserInterfaceMessage
|
|
{
|
|
public Dictionary<string, string> Config { get; }
|
|
|
|
public ConfigurationUpdatedMessage(Dictionary<string, string> config)
|
|
{
|
|
Config = config;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class ValidationUpdateMessage : BoundUserInterfaceMessage
|
|
{
|
|
public string ValidationString { get; }
|
|
|
|
public ValidationUpdateMessage(string validationString)
|
|
{
|
|
ValidationString = validationString;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum ConfigurationUiKey
|
|
{
|
|
Key
|
|
}
|
|
}
|
|
}
|