Using Lists

I want to use the list class since it can contain generic informations…
Such as referring the character stas base on their names, types, etc…

Question is, what and how many value can i put in the dictionary?
Is it possible for me to associate integers and strings to it, so i can have each character their own set of conversations and assorted by their level?

Or must i elaborate each of them in separate classes? Thank you.

List or Dictionary?

There’s no real limit except maybe the size of memory used.

1 Like

You can add any value into a Dictionary<> or List<>. It works by using their hash, which every object implements.

You can set up one like this:

Dictionary<CharacterName, CharacterStats> nameToStats;

Through this, you can link names(an enum) to their stats(a struct or class) pretty easily.

1 Like

Thank you, this is pretty elaborate so i need to test it myself first!
Regards!