Remove ITemperatureExpose, optimizes atmos.
This commit is contained in:
@@ -1,7 +0,0 @@
|
|||||||
namespace Content.Server.Atmos
|
|
||||||
{
|
|
||||||
public interface ITemperatureExpose
|
|
||||||
{
|
|
||||||
void TemperatureExpose(GasMixture air, float exposedTemperature, float exposedVolume);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -71,16 +71,6 @@ namespace Content.Server.Atmos.Reactions
|
|||||||
if (mixTemperature > Atmospherics.FireMinimumTemperatureToExist)
|
if (mixTemperature > Atmospherics.FireMinimumTemperatureToExist)
|
||||||
{
|
{
|
||||||
atmosphereSystem.HotspotExpose(location.GridIndex, location.GridIndices, mixTemperature, mixture.Volume);
|
atmosphereSystem.HotspotExpose(location.GridIndex, location.GridIndices, mixTemperature, mixture.Volume);
|
||||||
|
|
||||||
foreach (var entity in location.GridIndices.GetEntitiesInTileFast(location.GridIndex))
|
|
||||||
{
|
|
||||||
foreach (var temperatureExpose in entity.GetAllComponents<ITemperatureExpose>())
|
|
||||||
{
|
|
||||||
temperatureExpose.TemperatureExpose(mixture, mixTemperature, mixture.Volume);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO ATMOS: location.TemperatureExpose(mixture, mixTemperature, mixture.Volume);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,16 +64,6 @@ namespace Content.Server.Atmos.Reactions
|
|||||||
if (temperature > Atmospherics.FireMinimumTemperatureToExist)
|
if (temperature > Atmospherics.FireMinimumTemperatureToExist)
|
||||||
{
|
{
|
||||||
atmosphereSystem.HotspotExpose(location.GridIndex, location.GridIndices, temperature, mixture.Volume);
|
atmosphereSystem.HotspotExpose(location.GridIndex, location.GridIndices, temperature, mixture.Volume);
|
||||||
|
|
||||||
foreach (var entity in location.GridIndices.GetEntitiesInTileFast(location.GridIndex))
|
|
||||||
{
|
|
||||||
foreach (var temperatureExpose in entity.GetAllComponents<ITemperatureExpose>())
|
|
||||||
{
|
|
||||||
temperatureExpose.TemperatureExpose(mixture, temperature, mixture.Volume);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO ATMOS: location.TemperatureExpose(mixture, temperature, mixture.Volume);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user