/// <summary>
/// Data needed to spawn an explosion with <see cref="ExplosionSystem.SpawnExplosion"/>.
/// </summary>
-public sealed class QueuedExplosion
+public sealed class QueuedExplosion(ExplosionPrototype proto)
{
public MapCoordinates Epicenter;
- public ExplosionPrototype Proto = new();
+ public ExplosionPrototype Proto = proto;
public float TotalIntensity, Slope, MaxTileIntensity, TileBreakScale;
public int MaxTileBreak;
public bool CanCreateVacuum;
return;
}
- var boom = new QueuedExplosion()
+ var boom = new QueuedExplosion(type)
{
Epicenter = epicenter,
- Proto = type,
TotalIntensity = totalIntensity,
Slope = slope,
MaxTileIntensity = maxTileIntensity,