Add construction graph test (#10760)

This commit is contained in:
Leon Friedrich
2022-08-22 12:45:25 +12:00
committed by GitHub
parent ff37e69c0a
commit 87d753e910
2 changed files with 51 additions and 2 deletions

View File

@@ -1,11 +1,14 @@
using Content.Shared.Examine;
using Content.Shared.Examine;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared.Construction.Steps
{
[DataDefinition]
public sealed class PrototypeConstructionGraphStep : ArbitraryInsertConstructionGraphStep
{
[DataField("prototype")] public string Prototype { get; } = string.Empty;
[DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>), required:true)]
public string Prototype { get; } = string.Empty;
public override bool EntityValid(EntityUid uid, IEntityManager entityManager)
{