Fix 3000 errors
This commit is contained in:
@@ -14,10 +14,10 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
/// </summary>
|
||||
public sealed class CloseLastStorageOperator : AiOperator
|
||||
{
|
||||
private readonly IEntity _owner;
|
||||
private IEntity? _target;
|
||||
private readonly EntityUid _owner;
|
||||
private EntityUid _target;
|
||||
|
||||
public CloseLastStorageOperator(IEntity owner)
|
||||
public CloseLastStorageOperator(EntityUid owner)
|
||||
{
|
||||
_owner = owner;
|
||||
}
|
||||
@@ -38,7 +38,7 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
|
||||
_target = blackboard.GetState<LastOpenedStorageState>().GetValue();
|
||||
|
||||
return _target != null;
|
||||
return _target != default;
|
||||
}
|
||||
|
||||
public override bool Shutdown(Outcome outcome)
|
||||
@@ -48,13 +48,13 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
|
||||
var blackboard = UtilityAiHelpers.GetBlackboard(_owner);
|
||||
|
||||
blackboard?.GetState<LastOpenedStorageState>().SetValue(null);
|
||||
blackboard?.GetState<LastOpenedStorageState>().SetValue(default);
|
||||
return true;
|
||||
}
|
||||
|
||||
public override Outcome Execute(float frameTime)
|
||||
{
|
||||
if (_target == null || !_owner.InRangeUnobstructed(_target, popup: true))
|
||||
if (_target == default || !_owner.InRangeUnobstructed(_target, popup: true))
|
||||
{
|
||||
return Outcome.Failed;
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
{
|
||||
public class DropEntityOperator : AiOperator
|
||||
{
|
||||
private readonly IEntity _owner;
|
||||
private readonly IEntity _entity;
|
||||
public DropEntityOperator(IEntity owner, IEntity entity)
|
||||
private readonly EntityUid _owner;
|
||||
private readonly EntityUid _entity;
|
||||
public DropEntityOperator(EntityUid owner, EntityUid entity)
|
||||
{
|
||||
_owner = owner;
|
||||
_entity = entity;
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
{
|
||||
public class DropHandItemsOperator : AiOperator
|
||||
{
|
||||
private readonly IEntity _owner;
|
||||
private readonly EntityUid _owner;
|
||||
|
||||
public DropHandItemsOperator(IEntity owner)
|
||||
public DropHandItemsOperator(EntityUid owner)
|
||||
{
|
||||
_owner = owner;
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
{
|
||||
public sealed class EquipEntityOperator : AiOperator
|
||||
{
|
||||
private readonly IEntity _owner;
|
||||
private readonly IEntity _entity;
|
||||
public EquipEntityOperator(IEntity owner, IEntity entity)
|
||||
private readonly EntityUid _owner;
|
||||
private readonly EntityUid _entity;
|
||||
public EquipEntityOperator(EntityUid owner, EntityUid entity)
|
||||
{
|
||||
_owner = owner;
|
||||
_entity = entity;
|
||||
|
||||
@@ -11,10 +11,10 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
/// </summary>
|
||||
public class InteractWithEntityOperator : AiOperator
|
||||
{
|
||||
private readonly IEntity _owner;
|
||||
private readonly IEntity _useTarget;
|
||||
private readonly EntityUid _owner;
|
||||
private readonly EntityUid _useTarget;
|
||||
|
||||
public InteractWithEntityOperator(IEntity owner, IEntity useTarget)
|
||||
public InteractWithEntityOperator(EntityUid owner, EntityUid useTarget)
|
||||
{
|
||||
_owner = owner;
|
||||
_useTarget = useTarget;
|
||||
|
||||
@@ -14,10 +14,10 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
/// </summary>
|
||||
public sealed class OpenStorageOperator : AiOperator
|
||||
{
|
||||
private readonly IEntity _owner;
|
||||
private readonly IEntity _target;
|
||||
private readonly EntityUid _owner;
|
||||
private readonly EntityUid _target;
|
||||
|
||||
public OpenStorageOperator(IEntity owner, IEntity target)
|
||||
public OpenStorageOperator(EntityUid owner, EntityUid target)
|
||||
{
|
||||
_owner = owner;
|
||||
_target = target;
|
||||
|
||||
@@ -11,10 +11,10 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
public class PickupEntityOperator : AiOperator
|
||||
{
|
||||
// Input variables
|
||||
private readonly IEntity _owner;
|
||||
private readonly IEntity _target;
|
||||
private readonly EntityUid _owner;
|
||||
private readonly EntityUid _target;
|
||||
|
||||
public PickupEntityOperator(IEntity owner, IEntity target)
|
||||
public PickupEntityOperator(EntityUid owner, EntityUid target)
|
||||
{
|
||||
_owner = owner;
|
||||
_target = target;
|
||||
|
||||
@@ -10,10 +10,10 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
/// </summary>
|
||||
public class UseItemInInventoryOperator : AiOperator
|
||||
{
|
||||
private readonly IEntity _owner;
|
||||
private readonly IEntity _target;
|
||||
private readonly EntityUid _owner;
|
||||
private readonly EntityUid _target;
|
||||
|
||||
public UseItemInInventoryOperator(IEntity owner, IEntity target)
|
||||
public UseItemInInventoryOperator(EntityUid owner, EntityUid target)
|
||||
{
|
||||
_owner = owner;
|
||||
_target = target;
|
||||
|
||||
Reference in New Issue
Block a user