Content update for NetEntities (#18935)
This commit is contained in:
@@ -15,12 +15,18 @@ public sealed partial class ExplosionSystem : EntitySystem
|
||||
|
||||
private void OnGetState(EntityUid uid, ExplosionVisualsComponent component, ref ComponentGetState args)
|
||||
{
|
||||
Dictionary<NetEntity, Dictionary<int, List<Vector2i>>> tileLists = new();
|
||||
foreach (var (grid, data) in component.Tiles)
|
||||
{
|
||||
tileLists.Add(GetNetEntity(grid), data);
|
||||
}
|
||||
|
||||
args.State = new ExplosionVisualsState(
|
||||
component.Epicenter,
|
||||
component.ExplosionType,
|
||||
component.Intensity,
|
||||
component.SpaceTiles,
|
||||
component.Tiles,
|
||||
tileLists,
|
||||
component.SpaceMatrix,
|
||||
component.SpaceTileSize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user