Can't we inject the same type object in the command ?

27 views
Skip to first unread message

krishna...@juegostudio.net

unread,
Nov 20, 2018, 5:21:59 AM11/20/18
to StrangeIoC
Hi,

I have signal with 2 params with same type and different data value. so commands are not allowing to inject same type of object multiple times, is there anyway to make injection possible?

public class Vectiorsignal<Vector3, Vector3> {}

public class TestCommand : Command
{
     [inject] Vector vector1;
     [inject] Vector vector2;
}


something like this?

wco...@gmail.com

unread,
Nov 21, 2018, 12:47:58 AM11/21/18
to krishna...@juegostudio.net, StrangeIoC
On vacation so can't send a proper response. Just use a vo as your injection. Cheers!

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "StrangeIoC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strangeioc+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages