Cleanup remaining warnings in ExplosionSystem (#37764)
* Change ExplosionGridTileFlood.Grid to Entity<T> * Change ExplosionData.Lookup to Entity<T> * ExplodeSpace * ExplosionData.MapGrid * _currentGrid * _tileUpdateDict * 1 warning in Process * IsEdge
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Content.Server.Explosion.EntitySystems;
|
||||
/// </summary>
|
||||
public sealed class ExplosionGridTileFlood : ExplosionTileFlood
|
||||
{
|
||||
public MapGridComponent Grid;
|
||||
public Entity<MapGridComponent> Grid;
|
||||
private bool _needToTransform = false;
|
||||
|
||||
private Matrix3x2 _matrix = Matrix3x2.Identity;
|
||||
@@ -37,7 +37,7 @@ public sealed class ExplosionGridTileFlood : ExplosionTileFlood
|
||||
private Dictionary<Vector2i, NeighborFlag> _edgeTiles;
|
||||
|
||||
public ExplosionGridTileFlood(
|
||||
MapGridComponent grid,
|
||||
Entity<MapGridComponent> grid,
|
||||
Dictionary<Vector2i, TileData> airtightMap,
|
||||
float maxIntensity,
|
||||
float intensityStepSize,
|
||||
@@ -73,7 +73,7 @@ public sealed class ExplosionGridTileFlood : ExplosionTileFlood
|
||||
|
||||
var transformSystem = entityManager.System<SharedTransformSystem>();
|
||||
var transform = entityManager.GetComponent<TransformComponent>(Grid.Owner);
|
||||
var size = (float)Grid.TileSize;
|
||||
var size = (float)Grid.Comp.TileSize;
|
||||
|
||||
_matrix.M31 = size / 2;
|
||||
_matrix.M32 = size / 2;
|
||||
|
||||
Reference in New Issue
Block a user