0
How to use enum
I am making mods for GTA 5 and i want use enums how can i do it
2 ответов
0
I see you started C# Tutorial a couple of month ago. There is a section for enums.
This is an example from there:
enum Days {Sun, Mon, Tue, Wed, Thu, Fri, Sat};
But of course it depends on your requirements to it.
1) Is it a singular option or is it multiple choice? In second case you would have to flag it and set correspondingly.
2) Are you going to persist it? Then you should assign fixed values also in first case of 1), as you might remove options later, which would lead to changed values for follow up enum codes.