Make portals use ICollideBehavior and set collidable.Hard to false (#2186)

This commit is contained in:
DrSmugleaf
2020-10-10 13:32:42 +02:00
committed by GitHub
parent 89f5ec31d2
commit fe39b5fb71
11 changed files with 107 additions and 130 deletions

View File

@@ -1,19 +0,0 @@
using Content.Server.GameObjects.Components.Movement;
using JetBrains.Annotations;
using Robust.Shared.GameObjects.Systems;
namespace Content.Server.GameObjects.EntitySystems
{
[UsedImplicitly]
internal sealed class PortalSystem : EntitySystem
{
// TODO: Someone refactor portals
public override void Update(float frameTime)
{
foreach (var comp in ComponentManager.EntityQuery<ServerPortalComponent>())
{
comp.OnUpdate();
}
}
}
}