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

为什么一个Component实例对应一个System实例? #16

Open
rayyee opened this issue Apr 14, 2016 · 3 comments
Open

为什么一个Component实例对应一个System实例? #16

rayyee opened this issue Apr 14, 2016 · 3 comments

Comments

@rayyee
Copy link

rayyee commented Apr 14, 2016

如题。
按我所理解和参考的ECS架构,system是去迭代拥有指定component的entities。

@ElvisQin
Copy link
Member

Genius-x中的Component实际上只是一个数据结构,不包含任何复杂的逻辑,只有对自身属性的简单处理,所以System的名字主要是区分其功能,作用的的,并不需要严格地和Component对应

@rayyee
Copy link
Author

rayyee commented Apr 25, 2016

谢谢

@rayyee
Copy link
Author

rayyee commented Apr 25, 2016

@ElvisQin
可能我没说明白问题,我意思在实际生产中,system是需要拿到多个component的,比如CollisionSystem, 那么它可能需要PositionComponent和SizeComponent等等。Genius-x的设计是否可以这样?

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