ey6es / phantasml

Web-based collaborative "creature lab" for machine learning/AI research and education.
https://www.phantasml.com
MIT License
2 stars 3 forks source link

Find better way to link state and logic #40

Open ey6es opened 5 years ago

ey6es commented 5 years ago

Having the state in generic POJOs and looking up logic by name in various static objects (ComponentPhysics, etc.) seemed to work OK at first, but it's starting to look really awkward. There must be a better way! Ideally something that doesn't require iterating over every component in an entity and that has a more natural class-like syntax for implementing logic.