Files
tbd-station-14/Content.Server/Explosion/EntitySystems/ExplosionSystem.CVars.cs
beck-thompson 490de1de4e Explosion resistance is now predicted! (#30654)
* First commit

* Added Network and access
2024-08-05 13:15:07 +10:00

30 lines
1.5 KiB
C#

using Content.Shared.CCVar;
using Content.Shared.Explosion.EntitySystems;
namespace Content.Server.Explosion.EntitySystems;
public sealed partial class ExplosionSystem : SharedExplosionSystem
{
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);
}
}