voxeliq icon indicating copy to clipboard operation
voxeliq copied to clipboard

Fix the engine architecture

Open bonesoul opened this issue 12 years ago • 3 comments

We have major issues in engine architecture.

  • [ ] https://github.com/Delwin9999/voxeliq/issues/3 - Entire architecture is tightly coupled. Decouple it
  • [ ] https://github.com/raistlinthewiz/voxeliq/issues/46 - Engine itself should be free of Camera and Player.
  • [x] #43 - Engine is a singleton without the protections thereof.

bonesoul avatar Jan 15 '13 15:01 bonesoul

I'm exploring the available options; I guess we can give a try to ninject based solution as in;

  • http://blog.nuclex-games.com/tutorials/xna/components-and-services/
  • http://blog.nuclex-games.com/2010/08/to-gamecomponent-or-not-to-gamecomponent/
  • http://steveproxna.blogspot.com/2011/03/xna-and-ioc-container.html
  • http://steveproxna01di.codeplex.com/
  • http://blog.nuclex-games.com/tutorials/dependency-injection/
  • http://www.nuclex.org/articles/architecture/9-using-dependency-injection-in-xna

bonesoul avatar Jan 15 '13 17:01 bonesoul

OK this isn't the way I did dependency injection before but the existence of Ninject makes a lot of things easier. I'll toy with it to see if I can get it working.

Delwin9999 avatar Jan 15 '13 23:01 Delwin9999

Yea and we really don't need to rush for this, better we go for functionality and stability at the first place and then we can go for architectural fixes.

bonesoul avatar Jan 15 '13 23:01 bonesoul