Partial atmos refactor (#22521)
* Reduce atmos component queries * Remove method events * Cache airtight data * Make MolesArchived nullable * Fix airtight cache * only get tile def once * Immutable mixtures * firelock queries * misc * misc cleanup * Trim disconnected tiles * Fix merge issues and bugs * Why does the PR keep increasing in scope * debug overlay * Fix bugs * Fix test, remove unused events * Add setmapatmos command * Fix overlays * Add map check * A * Resolve conflicts with #26102 * Remove some obsolete methods
This commit is contained in:
@@ -97,22 +97,19 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
}
|
||||
}
|
||||
|
||||
private AtmosDebugOverlayData ConvertTileToData(TileAtmosphere? tile)
|
||||
private AtmosDebugOverlayData? ConvertTileToData(TileAtmosphere tile)
|
||||
{
|
||||
if (tile == null)
|
||||
return default;
|
||||
|
||||
return new AtmosDebugOverlayData(
|
||||
tile.GridIndices,
|
||||
tile.Air?.Temperature ?? default,
|
||||
tile.Air?.Moles,
|
||||
tile.PressureDirection,
|
||||
tile.LastPressureDirection,
|
||||
tile.BlockedAirflow,
|
||||
tile.AirtightData.BlockedDirections,
|
||||
tile.ExcitedGroup?.GetHashCode(),
|
||||
tile.Space,
|
||||
false,
|
||||
false);
|
||||
tile.MapAtmosphere,
|
||||
tile.NoGridTile);
|
||||
}
|
||||
|
||||
public override void Update(float frameTime)
|
||||
|
||||
Reference in New Issue
Block a user