2020-07-17 10:43:10 +02:00
|
|
|
|
using Content.Server.GameObjects.Components.Buckle;
|
2020-07-08 15:30:48 +02:00
|
|
|
|
using Content.Server.GameObjects.EntitySystems.Click;
|
2020-07-24 14:22:28 +02:00
|
|
|
|
using JetBrains.Annotations;
|
2020-07-08 15:30:48 +02:00
|
|
|
|
using Robust.Server.GameObjects.EntitySystems;
|
|
|
|
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
|
|
|
|
|
{
|
2020-07-24 14:22:28 +02:00
|
|
|
|
[UsedImplicitly]
|
2020-08-13 22:17:12 +10:00
|
|
|
|
internal sealed class BuckleSystem : EntitySystem
|
2020-07-08 15:30:48 +02:00
|
|
|
|
{
|
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.Initialize();
|
|
|
|
|
|
|
|
|
|
|
|
UpdatesAfter.Add(typeof(InteractionSystem));
|
|
|
|
|
|
UpdatesAfter.Add(typeof(InputSystem));
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
|
{
|
2020-08-13 22:17:12 +10:00
|
|
|
|
foreach (var buckle in ComponentManager.EntityQuery<BuckleComponent>())
|
2020-07-08 15:30:48 +02:00
|
|
|
|
{
|
|
|
|
|
|
buckle.Update();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|