2020-08-13 14:40:27 +02:00
|
|
|
|
using Content.Server.GameObjects.Components.Temperature;
|
2020-08-13 22:17:12 +10:00
|
|
|
|
using JetBrains.Annotations;
|
2019-04-15 21:11:38 -06:00
|
|
|
|
using Robust.Shared.GameObjects.Systems;
|
2018-07-26 14:26:19 -07:00
|
|
|
|
|
2020-08-13 14:40:27 +02:00
|
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
2018-07-26 14:26:19 -07:00
|
|
|
|
{
|
2020-08-13 22:17:12 +10:00
|
|
|
|
[UsedImplicitly]
|
|
|
|
|
|
internal sealed class TemperatureSystem : EntitySystem
|
2018-07-26 14:26:19 -07:00
|
|
|
|
{
|
|
|
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
|
{
|
2020-08-13 22:17:12 +10:00
|
|
|
|
foreach (var comp in ComponentManager.EntityQuery<TemperatureComponent>())
|
2018-07-26 14:26:19 -07:00
|
|
|
|
{
|
|
|
|
|
|
comp.OnUpdate(frameTime);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|