コード例 #1
0
        private void CraftAmmo()
        {
            this._craftWeaponsMenu.Clear();
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            // ISSUE: method pointer
            List <WeaponGroup> list = ((IEnumerable <WeaponGroup>)((IEnumerable <WeaponGroup>)Enumerable.Where <WeaponGroup>((IEnumerable <M0>)Enum.GetValues(typeof(WeaponGroup)), (Func <M0, bool>)(MapInteraction.\u003C\u003Ec.\u003C\u003E9__15_0 ?? (MapInteraction.\u003C\u003Ec.\u003C\u003E9__15_0 = new Func <WeaponGroup, bool>((object)MapInteraction.\u003C\u003Ec.\u003C\u003E9, __methodptr(\u003CCraftAmmo\u003Eb__15_0)))))).ToArray <WeaponGroup>()).ToList <WeaponGroup>();

            list.Add((WeaponGroup)970310034);
            foreach (uint num in list.ToArray())
            {
                // ISSUE: object of a compiler-generated type is created
                // ISSUE: variable of a compiler-generated type
                MapInteraction.\u003C\u003Ec__DisplayClass15_1 cDisplayClass151 = new MapInteraction.\u003C\u003Ec__DisplayClass15_1();
                // ISSUE: reference to a compiler-generated field
                cDisplayClass151.weaponGroup = (WeaponGroup)(int)num;
                // ISSUE: object of a compiler-generated type is created
                // ISSUE: variable of a compiler-generated type
                MapInteraction.\u003C\u003Ec__DisplayClass15_0 cDisplayClass150 = new MapInteraction.\u003C\u003Ec__DisplayClass15_0();
                // ISSUE: reference to a compiler-generated field
                cDisplayClass150.CS\u0024\u003C\u003E8__locals1 = cDisplayClass151;
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated field
                UIMenuItem uiMenuItem = new UIMenuItem(string.Format("{0}", cDisplayClass150.CS\u0024\u003C\u003E8__locals1.weaponGroup == 970310034 ? (object)"Assult Rifle" : (object)cDisplayClass150.CS\u0024\u003C\u003E8__locals1.weaponGroup.ToString()), string.Format("Craft ammo for {0}", (object)cDisplayClass150.CS\u0024\u003C\u003E8__locals1.weaponGroup));
                uiMenuItem.SetLeftBadge((UIMenuItem.BadgeStyle) 6);
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated field
                cDisplayClass150.required = this.GetRequiredPartsForWeaponGroup(cDisplayClass150.CS\u0024\u003C\u003E8__locals1.weaponGroup);
                // ISSUE: reference to a compiler-generated field
                uiMenuItem.set_Description(string.Format("Required Weapon Parts: ~y~{0}~s~", (object)cDisplayClass150.required));
                this._craftWeaponsMenu.AddItem(uiMenuItem);
                // ISSUE: method pointer
                uiMenuItem.add_Activated(new ItemActivatedEvent((object)cDisplayClass150, __methodptr(\u003CCraftAmmo\u003Eb__1)));
            }
            this._craftWeaponsMenu.set_Visible(!this._craftWeaponsMenu.get_Visible());
        }