30 lines
1.5 KiB
C#
30 lines
1.5 KiB
C#
using Content.Shared.CCVar;
|
|
|
|
namespace Content.Server.Explosion.EntitySystems;
|
|
|
|
public sealed partial class ExplosionSystem : EntitySystem
|
|
{
|
|
public int MaxIterations { get; private set; }
|
|
public int MaxArea { get; private set; }
|
|
public float MaxProcessingTime { get; private set; }
|
|
public int TilesPerTick { get; private set; }
|
|
public int ThrowLimit { get; private set; }
|
|
public bool SleepNodeSys { get; private set; }
|
|
public bool IncrementalTileBreaking { get; private set; }
|
|
public int SingleTickAreaLimit { get; private set; }
|
|
public bool CanCreateVacuum { get; private set; }
|
|
|
|
private void SubscribeCvars()
|
|
{
|
|
Subs.CVar(_cfg, CCVars.ExplosionTilesPerTick, value => TilesPerTick = value, true);
|
|
Subs.CVar(_cfg, CCVars.ExplosionThrowLimit, value => ThrowLimit = value, true);
|
|
Subs.CVar(_cfg, CCVars.ExplosionSleepNodeSys, value => SleepNodeSys = value, true);
|
|
Subs.CVar(_cfg, CCVars.ExplosionMaxArea, value => MaxArea = value, true);
|
|
Subs.CVar(_cfg, CCVars.ExplosionMaxIterations, value => MaxIterations = value, true);
|
|
Subs.CVar(_cfg, CCVars.ExplosionMaxProcessingTime, value => MaxProcessingTime = value, true);
|
|
Subs.CVar(_cfg, CCVars.ExplosionIncrementalTileBreaking, value => IncrementalTileBreaking = value, true);
|
|
Subs.CVar(_cfg, CCVars.ExplosionSingleTickAreaLimit, value => SingleTickAreaLimit = value, true);
|
|
Subs.CVar(_cfg, CCVars.ExplosionCanCreateVacuum, value => CanCreateVacuum = value, true);
|
|
}
|
|
}
|