Skip to content

remove transient keyword in favour of transient parameter #129

@zaucy

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

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