MonoGame.Extended icon indicating copy to clipboard operation
MonoGame.Extended copied to clipboard

MonoGame.Extented.Entities.IComponentMapperService should impliment IEnumerable

Open Shadowblitz16 opened this issue 2 years ago • 0 comments

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

Shadowblitz16 avatar Nov 25 '23 00:11 Shadowblitz16