Add the ability to declare scene traits directly in editor using a GTraitsContainernode
This change requires lot of internal breaking changes:
GTraits needs to be an autoload to automatically declare registered traits. Since there is no need to invoke it through code, its initializer is not run, and traits are not found at runtime. Using an autoload fix the issue.
The container should be responsible for initializing the trait through the _initialize method. So the trait builder will only create trait traits (and inject dep in the _init method)
Need to separate trait build and dep injection: since it's now needed in both trait build and trait container
Add the ability to declare scene traits directly in editor using a
GTraitsContainer
nodeThis change requires lot of internal breaking changes:
GTraits
needs to be an autoload to automatically declare registered traits. Since there is no need to invoke it through code, its initializer is not run, and traits are not found at runtime. Using an autoload fix the issue._initialize
method. So the trait builder will only create trait traits (and inject dep in the_init
method)