Class holding integers vs a List of integers

I have a class called character. This class holds the name, id, attributes, mentalities, and psyche of the character. Should I make seperate classes that hold integers for attributes, mentalities, and pysche. Or put lists inside the Character class. If there is a totally different way I could implement this, I’m willing to learn.

can you show how you have it now ? What attributes will you have or mentalities ? little bit more context. :slight_smile:

Essentially, for attributes it’s 4 integer values, mentalities 4 integer values, and psyche 4 integer values each in there own class. Now that I think of it, this may be a bit of memory hog and not be efficient. Instead of lists I could use an array of integers. Not sure though.

If you have a fix size you can use Arrays instead.

Is there any advantages to using classes? Or even lists? I know it will be a fixed size but if I use a class won’t I be able to reference the object later.

Edit: No matter what kind I use it needs to be contained within the base class Character, as it will be a holder for the character’s stats.

Something like that?

public class Character {
    public string name;
    public int id;
    public int[] attributes = new int[4];
    public int[] mentalities = new int[4];
    public int[] psyche = new int[4];
}

Wow! That’s way simpler. And it works way better. Thanks!