adic
adic copied to clipboard
Evaluate the use of subcontainers
Consider the following scenario:
- There's a main container with all common bindings;
- There's a secondary container with all gameplay related bindings;
- There's another secondary container with all store related bindings.
To prevent having to recreate all bindings from 1, it should be interesting to have some form of subcontainer in which 2 and 3 would inherit all bindings from 1.
Another idea is to make it easier to remove those subcontainers and all binding references they contain.
I can be useful for games with additive scenes.
A test case would be an always available container (destroyOnLoad = false) having all singletons and other containers using those singletons as injections througout their transient classes.