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

Broken tutorial #3

Open
akoolenbourke opened this issue Mar 13, 2019 · 1 comment
Open

Broken tutorial #3

akoolenbourke opened this issue Mar 13, 2019 · 1 comment

Comments

@akoolenbourke
Copy link

akoolenbourke commented Mar 13, 2019

Hi guys. The tutorial is broken at the moment, with the most recent release.

When getting to the part to add the AddViewSystem, pasting the code in gives an error in this function

protected override Collector<GameEntity> GetTrigger(IContext<GameEntity> context)
    {
        return _context.CreateCollector(GameMatcher.Sprite);
    }

The return type for GetTrigger is wrong and following that CreateCollector is erroring because of it. Changing The return type to ICollector from Collector stops errors.

Additionally, the go.Link call has an error "No Overload for Link takes 2 parameters". Removing the second parameter, _context fixes the errors

@FNGgames
Copy link
Owner

FNGgames commented Mar 13, 2019

Thanks, yes these errors reflect changes in the Entitias API that were introduced after the tutorial was posted. I'll make some changes now.

NOTE I'm not maintaining the repo, just the readme. Consider the code in the repo out of date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants