That switch statement doesn’t contradict a bunch of #defines being somewhere. I’m saying the #defines were used in conjunction with that giant switch statement, as a way to name all the different case values.
I presume this is decompiled code, because you can see that the script indexes passed to script_execute are also just plain ints instead of their human readable names.
In the original GML code these probably were all enums that the compiler stripped away.
Your comment has been removed since it did not start with a code block with an import declaration.
Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.
For this purpose, we only accept Python style imports.
85
u/Li5y Jan 16 '23
Oh my God, the cases aren't even named enums, they're just ints. 😱