2019-07-19 18:09:33 +10:00
|
|
|
using Content.Server.GameObjects.Components.Movement;
|
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
|
|
2020-08-13 14:40:27 +02:00
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
2019-07-19 18:09:33 +10:00
|
|
|
{
|
|
|
|
|
[UsedImplicitly]
|
2020-08-13 22:17:12 +10:00
|
|
|
internal sealed class PortalSystem : EntitySystem
|
2019-07-19 18:09:33 +10:00
|
|
|
{
|
2020-08-13 22:17:12 +10:00
|
|
|
// TODO: Someone refactor portals
|
2019-07-19 18:09:33 +10:00
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
{
|
2020-08-13 22:17:12 +10:00
|
|
|
foreach (var comp in ComponentManager.EntityQuery<ServerPortalComponent>())
|
2019-07-19 18:09:33 +10:00
|
|
|
{
|
|
|
|
|
comp.OnUpdate();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|