2020-06-18 22:52:44 +10:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Content.Server.AI.Operators.Inventory;
|
|
|
|
|
using Content.Server.AI.Operators.Movement;
|
2021-02-11 01:13:03 -08:00
|
|
|
using Robust.Shared.GameObjects;
|
2020-06-18 22:52:44 +10:00
|
|
|
|
|
|
|
|
namespace Content.Server.AI.Operators.Sequences
|
|
|
|
|
{
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class GoPickupEntitySequence : SequenceOperator
|
2020-06-18 22:52:44 +10:00
|
|
|
{
|
2021-12-05 18:09:01 +01:00
|
|
|
public GoPickupEntitySequence(EntityUid owner, EntityUid target)
|
2020-06-18 22:52:44 +10:00
|
|
|
{
|
|
|
|
|
Sequence = new Queue<AiOperator>(new AiOperator[]
|
|
|
|
|
{
|
2020-08-22 20:03:24 +10:00
|
|
|
new MoveToEntityOperator(owner, target, requiresInRangeUnobstructed: true),
|
2020-06-18 22:52:44 +10:00
|
|
|
new OpenStorageOperator(owner, target),
|
|
|
|
|
new PickupEntityOperator(owner, target),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-12-05 18:09:01 +01:00
|
|
|
}
|