adic icon indicating copy to clipboard operation
adic copied to clipboard

Evaluate the use of subcontainers

Open intentor opened this issue 8 years ago • 2 comments

Consider the following scenario:

  1. There's a main container with all common bindings;
  2. There's a secondary container with all gameplay related bindings;
  3. 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.

intentor avatar Feb 25 '16 19:02 intentor

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.

intentor avatar Sep 26 '16 13:09 intentor

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.

intentor avatar Feb 02 '17 20:02 intentor