mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-22 10:19:30 +00:00
Move source projects into source directory
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace MonoGame.Extended.Entities.Systems
|
||||
{
|
||||
public abstract class EntityProcessingSystem : EntityUpdateSystem
|
||||
{
|
||||
protected EntityProcessingSystem(AspectBuilder aspectBuilder)
|
||||
: base(aspectBuilder)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Update(GameTime gameTime)
|
||||
{
|
||||
Begin();
|
||||
|
||||
foreach (var entityId in ActiveEntities)
|
||||
Process(gameTime, entityId);
|
||||
|
||||
End();
|
||||
}
|
||||
|
||||
public virtual void Begin() { }
|
||||
public abstract void Process(GameTime gameTime, int entityId);
|
||||
public virtual void End() { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user