mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 20:12:23 +00:00
18 lines
552 B
C#
18 lines
552 B
C#
using Microsoft.Xna.Framework;
|
|
using MonoGame.Extended.Entities.Components;
|
|
using MonoGame.Extended.Particles;
|
|
|
|
namespace MonoGame.Extended.Entities.Systems
|
|
{
|
|
public class ParticleEmitterSystem : ComponentSystem
|
|
{
|
|
public override void Update(GameTime gameTime)
|
|
{
|
|
var deltaTime = gameTime.GetElapsedSeconds();
|
|
var components = GetComponents<TransformableComponent<ParticleEmitter>>();
|
|
|
|
foreach (var component in components)
|
|
component.Target.Update(deltaTime);
|
|
}
|
|
}
|
|
} |