explicit interface go brrrr

This commit is contained in:
Paul
2021-02-04 17:44:49 +01:00
parent 5f6d2d50ba
commit d5cd82de60
148 changed files with 285 additions and 206 deletions

View File

@@ -154,7 +154,7 @@ namespace Content.Server.GameObjects.Components.Construction
TargetNextEdge = Node.GetEdge(TargetPathfinding.Peek().Name);
}
public async Task<bool> InteractUsing(InteractUsingEventArgs eventArgs)
async Task<bool> IInteractUsing.InteractUsing(InteractUsingEventArgs eventArgs)
{
if (_handling)
return true;

View File

@@ -210,7 +210,7 @@ namespace Content.Server.GameObjects.Components.Construction
}
}
public async Task<bool> InteractUsing(InteractUsingEventArgs eventArgs)
async Task<bool> IInteractUsing.InteractUsing(InteractUsingEventArgs eventArgs)
{
if (!HasBoard && eventArgs.Using.TryGetComponent<MachineBoardComponent>(out var machineBoard))
{

View File

@@ -34,7 +34,7 @@ namespace Content.Server.GameObjects.Components.Construction
serializer.DataField(ref _refineTime, "refineTime", 2f);
}
public async Task<bool> InteractUsing(InteractUsingEventArgs eventArgs)
async Task<bool> IInteractUsing.InteractUsing(InteractUsingEventArgs eventArgs)
{
// check if object is welder
if (!eventArgs.Using.TryGetComponent(out ToolComponent? tool))