Alexybubble
Alexybubble
CC#
Created by Alexybubble on 5/19/2023 in #help
❔ How to handle a group of variables that need to stay together within a class?
I guess I can see that. Thanks for the help.
20 replies
CC#
Created by Alexybubble on 5/19/2023 in #help
❔ How to handle a group of variables that need to stay together within a class?
I'm working on an RPG project. The object I'm working with represents a playable character. It holds their stats, specific characteristics, level up data, skill up data, and references to all of the assets they use.
20 replies
CC#
Created by Alexybubble on 5/19/2023 in #help
❔ How to handle a group of variables that need to stay together within a class?
Why is it crazy? Then again, I do kind of see your point. I do use structs a couple of times within the object to make things easier to access from other classes. But then I just loop back to preferring to keep the data contained within the main object, since that specific set of data is only ever held by that specific object.
20 replies
CC#
Created by Alexybubble on 5/19/2023 in #help
❔ How to handle a group of variables that need to stay together within a class?
It can be split up, but I don't get why I would. All of the data that's contained within the object needs to be attached to the object at some point or another, and is only used by that object, so I don't see the point in splitting things up when I can just have whichever classes need whatever variables just pull the ones they need from the object, and leave the rest alone.
20 replies
CC#
Created by Alexybubble on 5/19/2023 in #help
❔ How to handle a group of variables that need to stay together within a class?
Is that better? Sorry for the problem.
20 replies
CC#
Created by Alexybubble on 5/19/2023 in #help
❔ How to handle a group of variables that need to stay together within a class?
How would I make this into paragraphs? I don't see a place where I'd be able to split it.
20 replies