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:
@@ -28,6 +28,9 @@ namespace Content.Server.Atmos.Components
|
||||
[IncludeDataField(customTypeSerializer:typeof(TileAtmosCollectionSerializer))]
|
||||
public Dictionary<Vector2i, TileAtmosphere> Tiles = new(1000);
|
||||
|
||||
[ViewVariables]
|
||||
public HashSet<TileAtmosphere> MapTiles = new(1000);
|
||||
|
||||
[ViewVariables]
|
||||
public readonly HashSet<TileAtmosphere> ActiveTiles = new(1000);
|
||||
|
||||
@@ -80,7 +83,10 @@ namespace Content.Server.Atmos.Components
|
||||
public readonly HashSet<Vector2i> InvalidatedCoords = new(1000);
|
||||
|
||||
[ViewVariables]
|
||||
public readonly Queue<Vector2i> CurrentRunInvalidatedCoordinates = new();
|
||||
public readonly Queue<TileAtmosphere> CurrentRunInvalidatedTiles = new();
|
||||
|
||||
[ViewVariables]
|
||||
public readonly List<TileAtmosphere> PossiblyDisconnectedTiles = new(100);
|
||||
|
||||
[ViewVariables]
|
||||
public int InvalidatedCoordsCount => InvalidatedCoords.Count;
|
||||
|
||||
Reference in New Issue
Block a user