Files
crystall-punk-14/Content.Server/AI/Operators/Sequences/GoPickupEntitySequence.cs

21 lines
677 B
C#
Raw Normal View History

using System.Collections.Generic;
using Content.Server.AI.Operators.Inventory;
using Content.Server.AI.Operators.Movement;
using Robust.Shared.GameObjects;
namespace Content.Server.AI.Operators.Sequences
{
public sealed class GoPickupEntitySequence : SequenceOperator
{
2021-12-05 18:09:01 +01:00
public GoPickupEntitySequence(EntityUid owner, EntityUid target)
{
Sequence = new Queue<AiOperator>(new AiOperator[]
{
new MoveToEntityOperator(owner, target, requiresInRangeUnobstructed: true),
new OpenStorageOperator(owner, target),
new PickupEntityOperator(owner, target),
});
}
}
2021-12-05 18:09:01 +01:00
}