Content update for NetEntities (#18935)
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Content.Client.Administration.UI.SpawnExplosion;
|
||||
[UsedImplicitly]
|
||||
public sealed class SpawnExplosionEui : BaseEui
|
||||
{
|
||||
[Dependency] private readonly EntityManager _entManager = default!;
|
||||
[Dependency] private readonly IOverlayManager _overlayManager = default!;
|
||||
|
||||
private readonly SpawnExplosionWindow _window;
|
||||
@@ -69,7 +70,14 @@ public sealed class SpawnExplosionEui : BaseEui
|
||||
_overlayManager.AddOverlay(_debugOverlay);
|
||||
}
|
||||
|
||||
_debugOverlay.Tiles = data.Explosion.Tiles;
|
||||
var tiles = new Dictionary<EntityUid, Dictionary<int, List<Vector2i>>>();
|
||||
_debugOverlay.Tiles.Clear();
|
||||
|
||||
foreach (var (nent, det) in data.Explosion.Tiles)
|
||||
{
|
||||
tiles[_entManager.GetEntity(nent)] = det;
|
||||
}
|
||||
|
||||
_debugOverlay.SpaceTiles = data.Explosion.SpaceTiles;
|
||||
_debugOverlay.Intensity = data.Explosion.Intensity;
|
||||
_debugOverlay.Slope = data.Slope;
|
||||
|
||||
Reference in New Issue
Block a user