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

First pass at purifying the universal model #843

Merged
merged 8 commits into from
May 1, 2023

Conversation

lacasseio
Copy link
Member

The universal model is a great experiment so far. Unfortunately, it started from the software model and evolved toward an ECS design. Because of that, we have a bit of legacy in the code, which makes it harder to evolve and be efficient with it. Those next few PRs in that realm aim to purify the universal model into a layered ECS design. At its core, it should be Gradleless and deal only with entity-component-system. The layers above would introduce observability over component change, helper for building entities, and dynamic class generation. For example, we should consider component values to be fixed or provided (Gradle provider) because of Gradle. However, coding using the universal model should not rely on the provided value in the components. It should strictly be a way to provide a value + implicit dependencies + source.

This first step chips away the component registry from the model node.

Signed-off-by: Daniel Lacasse <daniel@nokee.dev>
Signed-off-by: Daniel Lacasse <daniel@nokee.dev>
Signed-off-by: Daniel Lacasse <daniel@nokee.dev>
Signed-off-by: Daniel Lacasse <daniel@nokee.dev>
Component listening is now handled by component registry.

Signed-off-by: Daniel Lacasse <daniel@nokee.dev>
Signed-off-by: Daniel Lacasse <daniel@nokee.dev>
@lacasseio lacasseio force-pushed the lacasseio/model-core-test-new-entity branch from e4fd935 to 65e3e96 Compare April 21, 2023 10:55
Signed-off-by: Daniel Lacasse <daniel@nokee.dev>
Signed-off-by: Daniel Lacasse <daniel@nokee.dev>
@lacasseio lacasseio merged commit 985612b into master May 1, 2023
@lacasseio lacasseio deleted the lacasseio/model-core-test-new-entity branch May 1, 2023 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant