MonoGame.Extended
MonoGame.Extended copied to clipboard
MonoGame.Extented.Entities.IComponentMapperService should impliment IEnumerable
I am trying to write a wrapper around monogame.extended.entities and I need to loop over the service maps
public abstract class Script
{
private EntitySystem _entitySystem;
private sealed class ScriptImplimentation : EntitySystem
{
public ScriptImplimentation(params Type[] components) : base(Aspect.All(components))
{
}
public override void Initialize(IComponentMapperService mapperService)
{
foreach (var map in mapperService)
{
}
}
}
Please make MonoGame.Extented.Entities.IComponentMapperService implement IEnumerable T with whatever T would be