2020-07-23 01:40:31 +02:00
|
|
|
|
using Content.Shared.GameObjects.Components.Movement;
|
|
|
|
|
|
using JetBrains.Annotations;
|
2020-07-09 17:00:37 +02:00
|
|
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
{
|
2020-07-29 15:49:44 -07:00
|
|
|
|
foreach (var slipperyComp in ComponentManager.EntityQuery<SharedSlipperyComponent>())
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|