Skip to content

remove transient keyword in favour of transient parameter #20

Description

@zaucy
-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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions