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

@@ -20,7 +20,7 @@ namespace Content.Server.GameObjects.Components.Nutrition
AudioHelpers.WithVariation(0.125f));
}
public void Land(LandEventArgs eventArgs)
void ILand.Land(LandEventArgs eventArgs)
{
PlaySound();

View File

@@ -37,7 +37,7 @@ namespace Content.Server.GameObjects.Components.Nutrition
CreamPied = false;
}
public ReagentUnit ReagentReactTouch(ReagentPrototype reagent, ReagentUnit volume)
ReagentUnit IReagentReaction.ReagentReactTouch(ReagentPrototype reagent, ReagentUnit volume)
{
switch (reagent.ID)
{
@@ -50,7 +50,7 @@ namespace Content.Server.GameObjects.Components.Nutrition
return ReagentUnit.Zero;
}
public void HitBy(ThrowCollideEventArgs eventArgs)
void IThrowCollide.HitBy(ThrowCollideEventArgs eventArgs)
{
if (!eventArgs.Thrown.HasComponent<CreamPieComponent>() || CreamPied) return;

View File

@@ -83,7 +83,7 @@ namespace Content.Server.GameObjects.Components.Nutrition
serializer.DataField(ref _temperature, "temperature", 673.15f);
}
public async Task<bool> InteractUsing(InteractUsingEventArgs eventArgs)
async Task<bool> IInteractUsing.InteractUsing(InteractUsingEventArgs eventArgs)
{
if (eventArgs.Using.TryGetComponent(out IHotItem? lighter)
&& lighter.IsCurrentlyHot()
@@ -104,4 +104,4 @@ namespace Content.Server.GameObjects.Components.Nutrition
return _currentState == SharedBurningStates.Lit;
}
}
}
}