* Beginnings of singulo shader * LOTS of changes!! * Minor changes * Singulo stuff * Aesthetic changes to singulo * Combining singulo change * ShaderAura uses IEntities now, not IPlayerSession * Fixes? * Fixes draw order for atmos * using fix * Address reviews * nuget.config whaaa * nuget haha * nuget why are you so dum * happy now * Preparing for omegachange * Merge from seventh level of hell * woork * Ignorecomponents add * mmf * RobustToolbox? * Fixes * Fixes Robust? * adds sprite * Nullables * Crit overlay stuff * Commits Robust
31 lines
803 B
C#
31 lines
803 B
C#
using Content.Server.GameObjects.Components.Singularity;
|
|
using JetBrains.Annotations;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
|
{
|
|
[UsedImplicitly]
|
|
public class SingularitySystem : EntitySystem
|
|
{
|
|
private float _updateInterval = 1.0f;
|
|
private float _accumulator;
|
|
|
|
public override void Update(float frameTime)
|
|
{
|
|
base.Update(frameTime);
|
|
_accumulator += frameTime;
|
|
|
|
while (_accumulator > _updateInterval)
|
|
{
|
|
_accumulator -= _updateInterval;
|
|
|
|
foreach (var singularity in ComponentManager.EntityQuery<ServerSingularityComponent>())
|
|
{
|
|
singularity.Update(1);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|