2021-02-27 04:12:09 +01:00
|
|
|
|
#nullable enable
|
|
|
|
|
|
using Content.Shared.GameObjects.Components.Body.Mechanism;
|
2020-11-02 11:37:37 +01:00
|
|
|
|
using JetBrains.Annotations;
|
2021-02-11 01:13:03 -08:00
|
|
|
|
using Robust.Shared.GameObjects;
|
2020-11-02 11:37:37 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.GameObjects.EntitySystems
|
|
|
|
|
|
{
|
|
|
|
|
|
[UsedImplicitly]
|
|
|
|
|
|
public class MechanismSystem : EntitySystem
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
|
{
|
|
|
|
|
|
base.Update(frameTime);
|
|
|
|
|
|
|
2021-02-04 00:20:48 +11:00
|
|
|
|
foreach (var mechanism in ComponentManager.EntityQuery<IMechanism>(true))
|
2020-11-02 11:37:37 +01:00
|
|
|
|
{
|
|
|
|
|
|
mechanism.Update(frameTime);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|