mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-03 18:47:10 +02:00
* Removed the Interfaces folder. * All objects inside the GameObjects subfolders are now in the GameObjects namespace. * Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces. * Simplified Robust.client.Graphics namespace. * Automated remove redundant using statements.
18 lines
459 B
C#
18 lines
459 B
C#
using System.Linq;
|
|
|
|
namespace Robust.Shared.GameObjects
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
}
|