2021-02-27 04:12:09 +01:00
|
|
|
|
#nullable enable
|
2021-03-26 12:02:41 +01:00
|
|
|
|
using System.Linq;
|
2021-02-27 04:12:09 +01:00
|
|
|
|
using Content.Shared.GameObjects.Components.Movement;
|
2020-07-23 01:40:31 +02:00
|
|
|
|
using JetBrains.Annotations;
|
2021-02-11 01:13:03 -08:00
|
|
|
|
using Robust.Shared.GameObjects;
|
2020-07-09 17:00:37 +02:00
|
|
|
|
|
2020-07-23 01:40:31 +02:00
|
|
|
|
namespace Content.Shared.GameObjects.EntitySystems
|
2020-07-09 17:00:37 +02:00
|
|
|
|
{
|
2020-07-23 01:40:31 +02:00
|
|
|
|
[UsedImplicitly]
|
2020-07-09 17:00:37 +02:00
|
|
|
|
public class SlipperySystem : EntitySystem
|
|
|
|
|
|
{
|
2020-07-29 15:49:44 -07:00
|
|
|
|
/// <inheritdoc />
|
2020-07-09 17:00:37 +02:00
|
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
|
{
|
2021-03-26 12:02:41 +01:00
|
|
|
|
foreach (var slipperyComp in ComponentManager.EntityQuery<SlipperyComponent>().ToArray())
|
2020-07-09 17:00:37 +02:00
|
|
|
|
{
|
2020-07-29 15:49:44 -07:00
|
|
|
|
slipperyComp.Update();
|
2020-07-09 17:00:37 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|