Add Whitelist.Components yaml valiation (#40916)
* Add Whitelist.Components yaml valiation * poke_tests * fix linter --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
@@ -2,6 +2,8 @@ using Content.Shared.Item;
|
||||
using Content.Shared.Tag;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Generic;
|
||||
|
||||
namespace Content.Shared.Whitelist;
|
||||
|
||||
@@ -32,8 +34,8 @@ public sealed partial class EntityWhitelist
|
||||
/// <summary>
|
||||
/// Component names that are allowed in the whitelist.
|
||||
/// </summary>
|
||||
[DataField] public string[]? Components;
|
||||
// TODO yaml validation
|
||||
[DataField(customTypeSerializer:typeof(CustomArraySerializer<string, ComponentNameSerializer>))]
|
||||
public string[]? Components;
|
||||
|
||||
/// <summary>
|
||||
/// Item sizes that are allowed in the whitelist.
|
||||
|
||||
Reference in New Issue
Block a user