This commit is contained in:
Clyybber
2020-05-23 17:23:25 +02:00
committed by GitHub
parent 05b910d9db
commit 1ad9a10050
40 changed files with 200 additions and 199 deletions

View File

@@ -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)