3 ms·
The local variable names look like the code was decompiled with ILSpy. All the magic numbers probably (hopefully?) were constants in the original code. The craz
by ynik 7y ago
The local variable names look like the code was decompiled with ILSpy.
All the magic numbers probably (hopefully?) were constants in the original code.
The crazy indentation looks like the decompiler just doesn't use "else if".
The goto's were just old ILSpy versions being bad at control flow reconstruction.
But neither the C# compiler nor the ILSpy decompiler moves code to different methods/classes (only the JIT does stuff like inlining), so yes it's really a single enormous class handling every possible item in the game via cascading if statements.