Adam's Lair Forum

game development and casual madness
It is currently 2018/11/19, 08:00

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2018/07/13, 23:08 
Newbie
Newbie

Joined: 2017/01/10, 14:06
Posts: 8
Role: Hobbyist
I have written a IOC container that can also be used in duality. It can be found here.

The plugin has been uploaded to nuget and can be installed through the duality package manager.

I also written a bit of documentation already which can be found here. Since most of you guys want to know how to use this in duality I also made some documentation about that here

Why not reuse a existing container?
There where 2 things that I wanted in a dependency container:
- High performance, games don't have the time to spend precious microseconds on dependency injection. My container does its work in nanoseconds.
- Support for method injection. To be fair I really wanted to use constructor injection everywhere but this is not possible in duality as duality calls these constructors already. Method injection is the next best thing in this case. Alot of existing containers do not support this unfortunately.

And also I was interested in how one would write such a container.

Known issues:
-Injection in components is done AFTER initialization. Without some changes to duality I cannot fix this. This is also why this plugin will stay at v0 until this is fixed. Its currently not clear in what timeframe I can fix this but I know it will be done somewhere in duality v3.

_________________
Projects:
https://github.com/Barsonax/Pathfindax
https://github.com/Barsonax/Singularity


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group