I’m building an EquipmentController, where I use a map to link the available slots to equipped items. The keys are S_EquipmentSlot structures
The values are Object references.
When I set the enum values to the default values (EquipmentSlot = Weapon_HandRight, EquipmentType=Weapon), it resets them after compiling. As seen below:
I guess an easy workaround would be to add a default value ‘None’ to both enums, but I wanted to check if I wasn’t just missing something obvious first (adding the value doesn’t feel like ‘the clean way’ to do it, or is it good practice to have a default enum value such as ‘None’?).
Thanks a lot for any help