2022-04-01 15:39:26 +13:00
|
|
|
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; }
|
|
|
|
|
|
|
|
|
|
private void SubscribeCvars()
|
|
|
|
|
{
|
2024-02-13 22:48:39 +01:00
|
|
|
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);
|
2022-04-01 15:39:26 +13:00
|
|
|
}
|
|
|
|
|
}
|