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.
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.