mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Cleanup prototype instantiation in ExplosionSystem (#38642)
Cleanup prototype instantiation in ExplosionSystem
This commit is contained in:
parent
97f0bab5b8
commit
2f37923db6
2 changed files with 3 additions and 4 deletions
|
|
@ -913,10 +913,10 @@ sealed class Explosion
|
|||
/// <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;
|
||||
|
|
|
|||
|
|
@ -306,10 +306,9 @@ public sealed partial class ExplosionSystem : SharedExplosionSystem
|
|||
return;
|
||||
}
|
||||
|
||||
var boom = new QueuedExplosion()
|
||||
var boom = new QueuedExplosion(type)
|
||||
{
|
||||
Epicenter = epicenter,
|
||||
Proto = type,
|
||||
TotalIntensity = totalIntensity,
|
||||
Slope = slope,
|
||||
MaxTileIntensity = maxTileIntensity,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue