Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaShared/SharedSource/Characters/AI/ShipCommand/ShipIssueWorkerItem.cs
2022-02-26 02:43:01 +09:00

27 lines
710 B
C#

using Barotrauma.Items.Components;
namespace Barotrauma
{
abstract class ShipIssueWorkerItem : ShipIssueWorker
{
public ShipIssueWorkerItem(ShipCommandManager shipCommandManager, Order order) : base(shipCommandManager, order) { }
protected override bool IsIssueViable()
{
if (TargetItemComponent == null)
{
DebugConsole.ThrowError("TargetItemComponent was null in " + this);
return false;
}
if (TargetItem == null)
{
DebugConsole.ThrowError("TargetItem was null in " + this);
return false;
}
return true;
}
}
}