* Change EntityQuery to not retrieve paused by default * GetAllComponents Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
24 lines
693 B
C#
24 lines
693 B
C#
using Content.Shared.GameObjects.Components.Disposal;
|
|
using JetBrains.Annotations;
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
namespace Content.Shared.GameObjects.EntitySystems
|
|
{
|
|
[UsedImplicitly]
|
|
public sealed class SharedDisposalUnitSystem : EntitySystem
|
|
{
|
|
public override void Update(float frameTime)
|
|
{
|
|
foreach (var comp in ComponentManager.EntityQuery<SharedDisposalUnitComponent>(true))
|
|
{
|
|
comp.Update(frameTime);
|
|
}
|
|
|
|
foreach (var comp in ComponentManager.EntityQuery<SharedDisposalMailingUnitComponent>(true))
|
|
{
|
|
comp.Update(frameTime);
|
|
}
|
|
}
|
|
}
|
|
}
|