mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using JetBrains.Annotations;
|
|
using Robust.Server.Physics;
|
|
using Robust.Shared;
|
|
using Robust.Shared.Configuration;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.IoC;
|
|
using Robust.Shared.Map;
|
|
using Robust.Shared.Physics;
|
|
using Robust.Shared.Physics.Components;
|
|
using Robust.Shared.Physics.Systems;
|
|
|
|
namespace Robust.Server.GameObjects
|
|
{
|
|
[UsedImplicitly]
|
|
public sealed class PhysicsSystem : SharedPhysicsSystem
|
|
{
|
|
[Dependency] private readonly IConfigurationManager _configurationManager = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
LoadMetricCVar();
|
|
|
|
Subs.CVar(_configurationManager, CVars.MetricsEnabled, _ => LoadMetricCVar());
|
|
}
|
|
|
|
private void LoadMetricCVar()
|
|
{
|
|
MetricsEnabled = _configurationManager.GetCVar(CVars.MetricsEnabled);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void Update(float frameTime)
|
|
{
|
|
SimulateWorld(frameTime, false);
|
|
}
|
|
}
|
|
}
|