For example, SelectableComponent is currently a node.
Each new BaseEntity with SelectableComponent would need to create a new SelectableComponent for each.
The resource is cached in memory, so it won't need to load the component for every entity.
I think it's a good idea to tackle this early, and still not have a lot of dependence on components.
To be clear, I may have misunderstood how Godot loads nodes.
I would like to get feedback on the idea.
Also, please correct me, if I got something wrong
Godot Engine 4.3 - Tutorials Resources
Godot Engine 4.3 - Class Resources
p.s:
I can't add labels and types for the issue.
I wanted to add this as a suggestion.
For example,
SelectableComponentis currently a node.Each new
BaseEntitywithSelectableComponentwould need to create a newSelectableComponentfor each.The resource is cached in memory, so it won't need to load the component for every entity.
I think it's a good idea to tackle this early, and still not have a lot of dependence on components.
To be clear, I may have misunderstood how Godot loads nodes.
I would like to get feedback on the idea.
Also, please correct me, if I got something wrong
Godot Engine 4.3 - Tutorials Resources
Godot Engine 4.3 - Class Resources
p.s:
I can't add labels and types for the issue.
I wanted to add this as a suggestion.