Instanced structs help #2
Unanswered
GamesAndBacon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, so I'm actually doing something similar. I'm trying to create a modular item system using finstancedstruct.
My structure is quite different though and I'm wondering If I'm just being dumb lol.
So, first of all. I have a huge dislike for data tables. My dyslexia makes them and large lists of things a nightmare.
So I use data assets usually.
I'm also still a relatively new and self taught programmer. So I'm always piecing things together and I can't find much info on finstancedstruct.
My inventory structure as it stands is something like so.
Items are uobjects.
Items hold an array of finstancedstructs
Items hold an array of "itemModules" classes
These modules are also uobjects but I only use the CDO. So no spawning.
Instead of spawning a new mutator I instead spawn a copy of the finstancedstruct associated with the item module. And I link them via just making sure they both occupy the same index in their respective arrays.
So if an item has a affix module. I can write my functions into that. And I save it to the items instanced structs list to retrieve when I want to use or change it.
I'm just wondering if finstancedstruct is even worth using in this way?
Do you know if having 5 instanced structs on an item would be any cheaper then 5 uobjects ?
Realistically. I want an inventory system that is really easy to work with and doesn't require many many sub classes or overly complex workflows.
Beta Was this translation helpful? Give feedback.
All reactions