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

API discussion #1

Open
randy408 opened this issue Aug 25, 2020 · 2 comments
Open

API discussion #1

randy408 opened this issue Aug 25, 2020 · 2 comments

Comments

@randy408
Copy link
Collaborator

I have no idea how to approach this yet.

Lua ECS implementations for reference:

entitas-lua
tiny-ecs
ecs-lua (tiny-ecs fork)

@ArnCarveris
Copy link

My old lua API draft for flecs:
https://gist.github.com/ArnCarveris/52c077d32dd1e84ad8bc1a2e89dfdc8d

@randy408
Copy link
Collaborator Author

randy408 commented Aug 29, 2020

Looks like ecs.add() is not aware of type roles and the API for adding them is slightly different, this could probably fixed by checking the arg type and using ecs_add_entity() instead. fixed

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