I have a parent class, that has an exported enum called type
. I have some child classes that implement specific behaviours like CREATURE
or SPELL
each of which have around 100 children themselfs.
I recently wanted to add TRAP
to the enum, but that broke everything, even though i took care not to change the older numbers assigned to the ENUM.
enum TYPE{
NONE = 0 ,
CREATURE = 1,
SPELL = 2,
BUILDING = 3,
FIELD = 4}
goes to
enum TYPE{
NONE = 0 ,
CREATURE = 1,
SPELL = 2,
BUILDING = 3,
FIELD = 4,
TRAP = 5}
Now every single child seems to be broken. While the editor shows the correct type, ingame every single scene is set to zero. I can confirm this with screenshots from the editor and the remote view of the scene in question. How do i fix this? Also how do i correctly update an ENUM without breaking already existing children?

