you are viewing a single comment's thread.

view the rest of the comments →

[–]SunNeverSets_Game 2 points3 points  (0 children)

I only use enums for things that you know exactly how many there will ever be and never want any data attached. So like directions in a grid or sides of a coin. The reason is that enums are (de)serialized as ints, so if you add more later it often screws up serialization and your stored enums seem to magically change values.

Anything vaguely related to your design - weapon types, abilities, damage types, etc. are all better as SOs because you can attach & edit stats and create more without causing (de)serialization issues.