Files
MonoGame.Extended/Source/Demos/Demo.Platformer/Entities/Systems/ComponentSystem.cs
T

18 lines
404 B
C#

using System.Collections.Generic;
namespace Demo.Platformer.Entities.Systems
{
public abstract class ComponentSystem
{
protected ComponentSystem()
{
}
internal EntityComponentSystem EntityComponentSystem { get; set; }
protected IEnumerable<T> GetComponents<T>()
{
return EntityComponentSystem.GetComponents<T>();
}
}
}