Some work
This commit is contained in:
@@ -45,6 +45,12 @@ namespace Content.Server.Atmos
|
||||
/// </summary>
|
||||
void FixVacuum(MapIndices indices);
|
||||
|
||||
/// <summary>
|
||||
/// Revalidates indices immediately.
|
||||
/// </summary>
|
||||
/// <param name="indices"></param>
|
||||
void Revalidate(MapIndices indices);
|
||||
|
||||
/// <summary>
|
||||
/// Adds an active tile so it becomes processed every update until it becomes inactive.
|
||||
/// Also makes the tile excited.
|
||||
|
||||
@@ -1051,6 +1051,25 @@ namespace Content.Server.Atmos
|
||||
private void ConsiderFirelocks(TileAtmosphere other)
|
||||
{
|
||||
// TODO ATMOS firelocks!
|
||||
var reconsiderAdjacent = false;
|
||||
|
||||
foreach (var entity in GridIndices.GetEntitiesInTile(GridIndex))
|
||||
{
|
||||
if (!entity.TryGetComponent(out FirelockComponent firelock)) continue;
|
||||
reconsiderAdjacent |= firelock.EmergencyPressureStop();
|
||||
}
|
||||
|
||||
foreach (var entity in other.GridIndices.GetEntitiesInTile(other.GridIndex))
|
||||
{
|
||||
if (!entity.TryGetComponent(out FirelockComponent firelock)) continue;
|
||||
reconsiderAdjacent |= firelock.EmergencyPressureStop();
|
||||
}
|
||||
|
||||
if (reconsiderAdjacent)
|
||||
{
|
||||
UpdateAdjacent();
|
||||
other.UpdateAdjacent();
|
||||
}
|
||||
}
|
||||
|
||||
private void React()
|
||||
|
||||
Reference in New Issue
Block a user