mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-03 18:47:10 +02:00
19 lines
518 B
C#
19 lines
518 B
C#
using System.Linq;
|
|
using Robust.Shared.GameObjects.Components.Timers;
|
|
|
|
namespace Robust.Shared.GameObjects.Systems
|
|
{
|
|
public class TimerSystem : EntitySystem
|
|
{
|
|
public override void Update(float frameTime)
|
|
{
|
|
base.Update(frameTime);
|
|
// Avoid a collection was modified while enumerating.
|
|
foreach (var timer in ComponentManager.EntityQuery<TimerComponent>(false).ToList())
|
|
{
|
|
timer.Update(frameTime);
|
|
}
|
|
}
|
|
}
|
|
}
|