working on an entity component system

This commit is contained in:
Dylan Wilson
2016-08-18 23:21:37 +10:00
parent d1a9f7652b
commit fe02308254
16 changed files with 275 additions and 156 deletions
@@ -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);
}
}
}