explicit interface go brrrr
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user