예제 #1
0
        public static void DefineChatCommands()
        {
            Type[] array = ChatCommandParser.smethod_1(ChatCommandParser.smethod_0());
            while (true)
            {
IL_199:
                uint arg_153_0 = 119212129u;
                while (true)
                {
                    uint num;
                    switch ((num = (arg_153_0 ^ 1007403371u)) % 14u)
                    {
                    case 0u:
                    {
                        int num2;
                        num2++;
                        arg_153_0 = (num * 1657331071u ^ 1067304519u);
                        continue;
                    }

                    case 1u:
                    {
                        ChatCommandAttribute customAttribute;
                        arg_153_0 = (((customAttribute == null) ? 4070733108u : 3064879351u) ^ num * 3658418241u);
                        continue;
                    }

                    case 2u:
                    {
                        int num2 = 0;
                        arg_153_0 = (num * 495928625u ^ 1398255286u);
                        continue;
                    }

                    case 3u:
                        goto IL_199;

                    case 4u:
                    {
                        int num2;
                        arg_153_0 = ((num2 >= array.Length) ? 1429089151u : 1598209142u);
                        continue;
                    }

                    case 5u:
                    {
                        ChatCommandAttribute customAttribute;
                        MethodInfo           methodInfo;
                        ChatCommandParser.ChatCommands[customAttribute.ChatCommand] = (ChatCommandParser.HandleChatCommand)ChatCommandParser.smethod_4(ChatCommandParser.smethod_3(typeof(ChatCommandParser.HandleChatCommand).TypeHandle), methodInfo);
                        arg_153_0 = (num * 1483645737u ^ 228464464u);
                        continue;
                    }

                    case 6u:
                    {
                        int num3;
                        num3++;
                        arg_153_0 = 157078335u;
                        continue;
                    }

                    case 7u:
                    {
                        int          num3;
                        MethodInfo[] array2;
                        MethodInfo   methodInfo = array2[num3];
                        arg_153_0 = 2129732795u;
                        continue;
                    }

                    case 9u:
                        arg_153_0 = (num * 589339086u ^ 1306721079u);
                        continue;

                    case 10u:
                    {
                        MethodInfo           methodInfo;
                        ChatCommandAttribute customAttribute = methodInfo.GetCustomAttribute <ChatCommandAttribute>();
                        arg_153_0 = (num * 1854628135u ^ 2009594928u);
                        continue;
                    }

                    case 11u:
                    {
                        int          num2;
                        MethodInfo[] array2 = ChatCommandParser.smethod_2(array[num2]);
                        arg_153_0 = 1177256068u;
                        continue;
                    }

                    case 12u:
                    {
                        int          num3;
                        MethodInfo[] array2;
                        arg_153_0 = ((num3 >= array2.Length) ? 2047522213u : 1377158200u);
                        continue;
                    }

                    case 13u:
                    {
                        int num3 = 0;
                        arg_153_0 = (num * 1157137936u ^ 3914591183u);
                        continue;
                    }
                    }
                    return;
                }
            }
        }
예제 #2
0
        public static void DefineChatCommands2()
        {
            Type[] array = ChatCommandParser.smethod_1(ChatCommandParser.smethod_0());
            int    num   = 0;

            while (true)
            {
IL_15B:
                uint arg_112_0 = (num < array.Length) ? 341848731u : 817372657u;
                while (true)
                {
                    uint num2;
                    switch ((num2 = (arg_112_0 ^ 654282741u)) % 11u)
                    {
                    case 0u:
                        goto IL_15B;

                    case 1u:
                    {
                        int num3;
                        num3++;
                        arg_112_0 = 1012403200u;
                        continue;
                    }

                    case 2u:
                        num++;
                        arg_112_0 = (num2 * 2111411435u ^ 2583908411u);
                        continue;

                    case 4u:
                    {
                        MethodInfo[] array2 = ChatCommandParser.smethod_2(array[num]);
                        int          num3   = 0;
                        arg_112_0 = 764609352u;
                        continue;
                    }

                    case 5u:
                    {
                        int          num3;
                        MethodInfo[] array2;
                        arg_112_0 = ((num3 >= array2.Length) ? 1096215134u : 710141588u);
                        continue;
                    }

                    case 6u:
                    {
                        ChatCommand2Attribute customAttribute;
                        MethodInfo            methodInfo;
                        ChatCommandParser.ChatCommands2[customAttribute.ChatCommand] = (ChatCommandParser.HandleChatCommand2)ChatCommandParser.smethod_4(ChatCommandParser.smethod_3(typeof(ChatCommandParser.HandleChatCommand2).TypeHandle), methodInfo);
                        arg_112_0 = (num2 * 3328026769u ^ 1273914374u);
                        continue;
                    }

                    case 7u:
                    {
                        int                   num3;
                        MethodInfo[]          array2;
                        MethodInfo            methodInfo      = array2[num3];
                        ChatCommand2Attribute customAttribute = methodInfo.GetCustomAttribute <ChatCommand2Attribute>();
                        arg_112_0 = 1187497071u;
                        continue;
                    }

                    case 8u:
                        arg_112_0 = (num2 * 2651831975u ^ 3574536523u);
                        continue;

                    case 9u:
                        arg_112_0 = 341848731u;
                        continue;

                    case 10u:
                    {
                        ChatCommand2Attribute customAttribute;
                        arg_112_0 = (((customAttribute != null) ? 1045421015u : 2070827812u) ^ num2 * 1521676189u);
                        continue;
                    }
                    }
                    return;
                }
            }
        }