CatStation/Content.Shared/Construction/Steps/EntityInsertConstructionGraphStep.cs
āda fb9401cf6a
EntityInsertConstructionGraphStep accepts an amount (#46268)
* commit

* self review

* x

* format

---------

Co-authored-by: iaada <iaada@users.noreply.github.com>
Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com>
2026-10-02 02:09:40 +00:00

20 lines
660 B
C#

namespace Content.Shared.Construction.Steps
{
[ImplicitDataDefinitionForInheritors]
public abstract partial class EntityInsertConstructionGraphStep : ConstructionGraphStep
{
/// <summary>
/// A container ID to store the entity in.
/// </summary>
[DataField]
public string Store { get; private set; } = string.Empty;
/// <summary>
/// How many of the entity is needed.
/// </summary>
[DataField]
public int Amount { get; private set; } = 1;
public abstract bool EntityValid(EntityUid uid, IEntityManager entityManager, IComponentFactory compFactory);
}
}