19 lines
557 B
C#
19 lines
557 B
C#
using Content.Server.Stack;
|
|
using Content.Shared.Construction;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Content.Server.Construction.Completions
|
|
{
|
|
[UsedImplicitly]
|
|
[DataDefinition]
|
|
public sealed partial class SetStackCount : IGraphAction
|
|
{
|
|
[DataField("amount")] public int Amount { get; private set; } = 1;
|
|
|
|
public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager)
|
|
{
|
|
entityManager.EntitySysManager.GetEntitySystem<StackSystem>().SetCount(uid, Amount);
|
|
}
|
|
}
|
|
}
|