0

How to use enum

I am making mods for GTA 5 and i want use enums how can i do it

10th May 2020, 8:44 AM
Flick Explainer
Flick Explainer - avatar
2 Réponses
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.
10th May 2020, 9:26 AM
Manu_1-9-8-5
Manu_1-9-8-5 - avatar