Minor device network changes (#2499)
* Device network changes * Update too * Update Content.Server/GameObjects/EntitySystems/DeviceNetworkSystem.cs Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com> Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
This commit is contained in:
@@ -1,27 +1,16 @@
|
||||
using Content.Server.Interfaces;
|
||||
using Content.Server.Interfaces;
|
||||
using Robust.Shared.GameObjects.Systems;
|
||||
using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Server.GameObjects.EntitySystems.DeviceNetwork
|
||||
{
|
||||
public class DeviceNetworkSystem : EntitySystem
|
||||
internal sealed class DeviceNetworkSystem : EntitySystem
|
||||
{
|
||||
private IDeviceNetwork _network;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
_network = IoCManager.Resolve<IDeviceNetwork>();
|
||||
}
|
||||
[Dependency] private readonly IDeviceNetwork _network = default!;
|
||||
|
||||
public override void Update(float frameTime)
|
||||
{
|
||||
base.Update(frameTime);
|
||||
|
||||
if (_network == null)
|
||||
return;
|
||||
//(ノ°Д°)ノ︵ ┻━┻
|
||||
_network.Update();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user