@@ -26,7 +26,7 @@ using Robust.Shared.Utility;
|
||||
namespace Content.Server.GameObjects.Components.Construction
|
||||
{
|
||||
[RegisterComponent]
|
||||
public class ConstructionComponent : Component, IAttackBy
|
||||
public class ConstructionComponent : Component, IInteractUsing
|
||||
{
|
||||
public override string Name => "Construction";
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace Content.Server.GameObjects.Components.Construction
|
||||
Transform = Owner.GetComponent<ITransformComponent>();
|
||||
}
|
||||
|
||||
public bool AttackBy(AttackByEventArgs eventArgs)
|
||||
public bool InteractUsing(InteractUsingEventArgs eventArgs)
|
||||
{
|
||||
// default interaction check for AttackBy allows inside blockers, so we will check if its blocked if
|
||||
// we're not allowed to build on impassable stuff
|
||||
@@ -64,7 +64,7 @@ namespace Content.Server.GameObjects.Components.Construction
|
||||
|
||||
var stage = Prototype.Stages[Stage];
|
||||
|
||||
if (TryProcessStep(stage.Forward, eventArgs.AttackWith))
|
||||
if (TryProcessStep(stage.Forward, eventArgs.Using))
|
||||
{
|
||||
Stage++;
|
||||
if (Stage == Prototype.Stages.Count - 1)
|
||||
@@ -84,7 +84,7 @@ namespace Content.Server.GameObjects.Components.Construction
|
||||
}
|
||||
}
|
||||
|
||||
else if (TryProcessStep(stage.Backward, eventArgs.AttackWith))
|
||||
else if (TryProcessStep(stage.Backward, eventArgs.Using))
|
||||
{
|
||||
Stage--;
|
||||
if (Stage == 0)
|
||||
|
||||
Reference in New Issue
Block a user