Refactor Flammable to be ECS. (#4671)

- Refactor IHotItem into IsHotEvent.
- Refactor IFireAct into TileFireEvent.
This commit is contained in:
Vera Aguilera Puerto
2021-09-22 11:05:33 +02:00
committed by GitHub
parent 9bde39c533
commit 6cea9cb973
21 changed files with 348 additions and 268 deletions

View File

@@ -5,12 +5,12 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Atmos.Components
{
// TODO: Kill this. With fire.
/// <summary>
/// Represents that entity can be exposed to Atmos
/// </summary>
[RegisterComponent]
public class AtmosExposedComponent
: Component
public class AtmosExposedComponent : Component
{
public override string Name => "AtmosExposed";
@@ -20,9 +20,6 @@ namespace Content.Server.Atmos.Components
[ViewVariables]
[ComponentDependency] private readonly BarotraumaComponent? _barotraumaComponent = null;
[ViewVariables]
[ComponentDependency] private readonly FlammableComponent? _flammableComponent = null;
public void Update(GasMixture air, float frameDelta, AtmosphereSystem atmosphereSystem)
{
if (_temperatureComponent != null)
@@ -35,8 +32,6 @@ namespace Content.Server.Atmos.Components
}
_barotraumaComponent?.Update(air.Pressure);
_flammableComponent?.Update(air);
}
}
}