|
Post by Uptown on Mar 1, 2021 0:22:32 GMT
Hey anyone know how I would get the game container within the Minion (not the view)? I'm trying to get the gameviewsystem as in other code but can't use mono...thoughts?...I need it to get the match Thanks! Up
|
|
|
Post by Admin on Mar 1, 2021 16:15:19 GMT
The current architecture is that a Minion is just a simple model - in other words, it is just a collection of data. It is not intended to "know" about anything else, such as the system or match, so there are no ways to do what you've asked. It is more likely that what you want to do should be accomplished from a system, such as the "MinionSystem" which will be observing actions like when a Minion has been summoned. You could then have a reference to a Minion, as well as a way to get the Match. I hope that helps!
|
|
|
Post by Up on Mar 1, 2021 16:47:18 GMT
var summon = new SummonMinionAction(container,minion);
figured something out - added this and created another override in minion to take that - im sure there was another way to work it but this seems to have done it
|
|
|
Post by Up on Mar 1, 2021 16:48:49 GMT
Yup thanks - didn't see your note till after i posted - you are correct, I basically did the above in Cardsystem
|
|