Just be clear you can do everything without them, they just make it nicer.
Just be clear you can do everything without them, they just make it nicer.
I think they tremendously improve readability of a lot of things.
State = Hero.WALKING
That’s all it does :) and does it well.
I think they tremendously improve readability of a lot of things.
State = Hero.WALKING
That’s all it does :) and does it well.
I’m sticking with the editor for now but I might switch to C# and vscode or rider (JetBrains)
I’m sticking with the editor for now but I might switch to C# and vscode or rider (JetBrains)
Ie. you have character and you want that character to have one state at a given time, ENUM is the obvious choice. Hero.WALKING, Hero.ATTACKING etc.
Majority of the time if you are iterating enum is not the right option.
Ie. you have character and you want that character to have one state at a given time, ENUM is the obvious choice. Hero.WALKING, Hero.ATTACKING etc.
Majority of the time if you are iterating enum is not the right option.