I am seeking out the right collection type to achieve this result in C#. I am wanting to create a List of Items, from a couple of enum fields I've pre-specified.
- itemType
- itemMaterial
For every itemType I add, I would like for a new set of items to be created that follows this general pattern, (ripped from Runescape for ease of concept conveyance, don't come after me JaGex):
ItemType enum:
Helmet, Platebody, Platelegs, Boots
ItemMaterial enum:
Bronze, Iron, Steel, Black, White, Mithril, Adamant, Rune, Dragon...
Items List(?):
BronzeHelmet, IronHelmet, SteelHelmet, BlackHelmet, WhiteHelmet, MithrilHelmet, AdamantHelmet, RuneHelmet, DragonHelmet
BronzePlatebody, IronPlatebody, SteelPlatebody, BlackPlatebody, WhitePlatebody, MithrilPlatebody, AdamantPlatebody, RunePlatebody, DragonPlatebody
BronzePlatelegs, IronPlatelegs, SteelPlatelegs, BlackPlatelegs, WhitePlatelegs, MithrilPlatelegs, AdamantPlatelegs, RunePlatelegs, DragonPlatelegs
BronzeBoots, IronBoots, SteelBoots, BlackBoots, WhiteBoots, MithrilBoots, AdamantBoots, RuneBoots, DragonBoots
If anybody knows the best data type to achieve something like this with, or maybe the right methods for it that allow you to iterate the combination of the two, I would appreciate it so much.
enum ItemType
{
FullHelmet,
MediumHelmet,
Platebody,
Chainbody,
Platelegs,
Plateskirt,
Boots,
Shoes,
KiteShield,
SquareShield,
Battleaxe,
WarHammer,
Longsword,
Shortsword,
Dagger,
Longbow,
Shortbow,
Crossbow,
LongStaff,
Staff,
Wand
}
enum ItemQuality
{
Wood,
Bronze,
Iron,
Steel,
Black,
Mithril,
Adamant,
Rune,
Dragon,
Barrows,
GodWars,
Elite
}