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

remove transient keyword in favour of transient parameter #129

Open
zaucy opened this issue Oct 4, 2023 · 0 comments
Open

remove transient keyword in favour of transient parameter #129

zaucy opened this issue Oct 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@zaucy
Copy link
Member

zaucy commented Oct 4, 2023

-transient MyTransient;
+component MyTransient(transient);

This will remove a bunch of ecsact_runtime functions that are just duplicates and instead we can have a check if a component is a transient instead.

transient will be a boolean so these are all valid and the same

component MyTransient(transient);
component MyTransient(transient: true);

You can be explicit and mark something as non-transient as well if you'd like

component MyComponent(transient: false);
@zaucy zaucy added the enhancement New feature or request label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant