Replace old Overflow algorithm (#6280)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
14
Content.Server/Fluids/Components/FluidSpreaderComponent.cs
Normal file
14
Content.Server/Fluids/Components/FluidSpreaderComponent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Content.Server.Fluids.EntitySystems;
|
||||
using Content.Shared.Chemistry.Components;
|
||||
|
||||
namespace Content.Server.Fluids.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(FluidSpreaderSystem))]
|
||||
public sealed class FluidSpreaderComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
public Solution OverflownSolution = default!;
|
||||
|
||||
public bool Enabled { get; set; }
|
||||
}
|
||||
@@ -48,11 +48,6 @@ namespace Content.Server.Fluids.Components
|
||||
[DataField("spillSound")]
|
||||
public SoundSpecifier SpillSound = new SoundPathSpecifier("/Audio/Effects/Fluids/splat.ogg");
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not this puddle is currently overflowing onto its neighbors
|
||||
/// </summary>
|
||||
public bool Overflown;
|
||||
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
public FixedPoint2 CurrentVolume => EntitySystem.Get<PuddleSystem>().CurrentVolume(Owner);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user