2020-07-23 01:40:31 +02:00
|
|
|
|
using Content.Shared.GameObjects.Components.Movement;
|
|
|
|
|
|
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-02-04 00:20:48 +11:00
|
|
|
|
foreach (var slipperyComp in ComponentManager.EntityQuery<SharedSlipperyComponent>(true))
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|