Powernet Recalculation simplification (#1427)
Co-authored-by: py01 <pyronetics01@gmail.com>
This commit is contained in:
19
Content.Server/GameObjects/EntitySystems/PowerNetSystem.cs
Normal file
19
Content.Server/GameObjects/EntitySystems/PowerNetSystem.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Content.Server.GameObjects.Components.Power.PowerNetComponents;
|
||||
using Robust.Shared.GameObjects.Systems;
|
||||
using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Server.GameObjects.EntitySystems
|
||||
{
|
||||
public class PowerNetSystem : EntitySystem
|
||||
{
|
||||
#pragma warning disable 649
|
||||
[Dependency] private readonly IPowerNetManager _powerNetManager;
|
||||
#pragma warning restore 649
|
||||
|
||||
public override void Update(float frameTime)
|
||||
{
|
||||
base.Update(frameTime);
|
||||
_powerNetManager.Update(frameTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user