Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MonoGame.Extented.Entities.IComponentMapperService should impliment IEnumerable #823

Open
Shadowblitz16 opened this issue Nov 25, 2023 · 0 comments
Milestone

Comments

@Shadowblitz16
Copy link

Shadowblitz16 commented Nov 25, 2023

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

@AristurtleDev AristurtleDev modified the milestones: v3.9.0, v4.1, v4.0.0 May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants