mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-26 00:45:20 +00:00
working on an entity component system
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Demo.Platformer.Entities.Components;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace Demo.Platformer.Entities.Systems
|
||||
{
|
||||
public class SpriteAnimatorComponentSystem : UpdatableComponentSystem
|
||||
{
|
||||
public SpriteAnimatorComponentSystem()
|
||||
{
|
||||
}
|
||||
|
||||
public override void Update(GameTime gameTime)
|
||||
{
|
||||
var components = GetComponents<SpriteAnimatorComponent>();
|
||||
|
||||
foreach (var component in components)
|
||||
component.Animator.Update(gameTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user