I have an Enum where each element is a type of spell with a different behaviour.
The enum is enough to be passed around ( CastSpell(enum_spelltype) works great ).
The problem is that I have a list of common properties for each Enum_spelltype that I would rappresent like this:
enum_spelltype | Name | Description | Cost | etc…
Atm I just have multiple methods like GetName, GetDescription, GetCost, … which accept an Enum as input, then switch on the enum and return different results.
so instead of having an excel file I do have gigantic switch with hundreds of return value.
Can you suggest a better way to achieve the same results?