- Joined
- Feb 21, 2016
- Messages
- 60
- Thread Author
- #1
How does one get a reference of the embeddable UI or the bot root class in the leaf nodes without passing it down in the whole tree?
The problem is, I've had a static container but I didn't think of multiple instances, so the static container ain't allowed on the bot store. kind of stupid of me because due to the nature of statics of how they work, one cannot use multiple instances with that. Each bot instance requires its own set of variables.
So now instead of using a static class, I am going to need a reference of the bot root class or the embeddable UI in my leaf nodes.
I am just not sure how to do that other than passing it down the whole tree... but that is quite the process which I kind of want to avoid if possible.
Are there any idea's?
The problem is, I've had a static container but I didn't think of multiple instances, so the static container ain't allowed on the bot store. kind of stupid of me because due to the nature of statics of how they work, one cannot use multiple instances with that. Each bot instance requires its own set of variables.
So now instead of using a static class, I am going to need a reference of the bot root class or the embeddable UI in my leaf nodes.
I am just not sure how to do that other than passing it down the whole tree... but that is quite the process which I kind of want to avoid if possible.
Are there any idea's?
Last edited: