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

(cherry picked from commit 18a35e7e83)
This commit is contained in:
Leon Friedrich
2024-03-24 00:14:24 +01:00
committed by NullWanderer
parent 4357118040
commit 239fd1d654
43 changed files with 922 additions and 666 deletions
@@ -493,7 +493,7 @@ public sealed partial class ExplosionSystem
if (_tileDefinitionManager[tileRef.Tile.TypeId] is not ContentTileDefinition tileDef)
return;
if (tileDef.IsSpace)
if (tileDef.MapAtmosphere)
canCreateVacuum = true; // is already a vacuum.
int tileBreakages = 0;
@@ -509,7 +509,7 @@ public sealed partial class ExplosionSystem
if (_tileDefinitionManager[tileDef.BaseTurf] is not ContentTileDefinition newDef)
break;
if (newDef.IsSpace && !canCreateVacuum)
if (newDef.MapAtmosphere && !canCreateVacuum)
break;
tileDef = newDef;