Beispiel #1
0
        public static Il2CppReferenceArray <AreaModel> areas()
        {
            List <AreaModel> newareas = new List <AreaModel>();

            var area0_ = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area0_.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.633f, -115.2764f));
            area0_.Add(new Assets.Scripts.Simulation.SMath.Vector2(146.1904f, -114.1706f));
            area0_.Add(new Assets.Scripts.Simulation.SMath.Vector2(146.6712f, 114.1708f));
            area0_.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.633f, 114.7236f));
            newareas.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(area0_), 0, (AreaType)2));
            var area0 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.8735f, -114.447f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.8735f, -105.0481f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(98.34187f, 89.01438f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(98.34187f, 106.7067f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(140.6601f, 107.2597f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(140.6601f, 74.08656f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(100.7463f, 74.08656f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-138.2557f, -114.447f));
            newareas.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(area0), 10, (AreaType)0));



            return(newareas.ToArray());
        }
        internal static bool Prefix(Panel_ActionsRadial __instance, ref Il2CppSystem.Collections.Generic.List <GearItem> __result)
        {
            __result = new Il2CppSystem.Collections.Generic.List <GearItem>();

            for (int index = 0; index < GameManager.GetInventoryComponent().m_Items.Count; ++index)
            {
                GearItem component = GameManager.GetInventoryComponent().m_Items[index].m_GearItem;
                if (component.m_FoodItem != null && component.m_FoodItem.m_IsDrink)
                {
                    if (component.m_IsInSatchel)
                    {
                        __result.Insert(0, component);
                    }
                    else
                    {
                        __result.Add(component);
                    }
                }

                if (WaterUtils.ContainsPotableWater(component))
                {
                    if (component.m_IsInSatchel)
                    {
                        __result.Insert(0, component);
                    }
                    else
                    {
                        __result.Add(component);
                    }
                }
            }

            return(false);
        }
Beispiel #3
0
        public static Il2CppReferenceArray <AreaModel> areas()
        {
            List <AreaModel> newareas = new List <AreaModel>();

            var area0 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-146.1904f, -113.3414f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(146.1904f, -113.3414f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.1521f, 112.7886f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-146.1904f, 113.3414f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.1521f, -113.8942f));
            newareas.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(area0), 0, (AreaType)2));
            var area1 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(29.81514f, -115.8292f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(36.06671f, -76.57453f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-141.8624f, -72.70423f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-133.6872f, 88.18515f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(71.6525f, 88.73797f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(73.57606f, 98.13703f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(107.7192f, 94.81969f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(121.665f, 114.7236f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.633f, 115.2764f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(127.4357f, 83.20921f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(98.10142f, 74.36297f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(94.7352f, 65.51687f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-71.65251f, 65.51687f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-72.61429f, 56.67077f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-100.5059f, 56.11781f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-113.4899f, -51.14187f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-92.33074f, -50.58891f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-91.84986f, -59.43515f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(70.20984f, -60.54093f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(59.14938f, -114.1706f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(30.29603f, -115.2764f));
            newareas.Add(new AreaModel("lol1", new Assets.Scripts.Simulation.SMath.Polygon(area1), 0, (AreaType)0));
            var area2 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.633f, -115.8292f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-65.40094f, -115.2764f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-58.18761f, -72.70423f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-141.8624f, -72.15141f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-133.6872f, 114.7236f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.633f, 115.2764f));
            newareas.Add(new AreaModel("lol2", new Assets.Scripts.Simulation.SMath.Polygon(area2), 0, (AreaType)1));
            var area3 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-106.7574f, 15.75719f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-78.38496f, 10.78125f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-48.08893f, -50.58891f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-90.88808f, -57.77641f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-91.36897f, -32.34375f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-111.5663f, -31.79093f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-105.3148f, 15.75719f));
            newareas.Add(new AreaModel("lol3", new Assets.Scripts.Simulation.SMath.Polygon(area3), 0, (AreaType)1));



            return(newareas.ToArray());
        }
Beispiel #4
0
        protected override void IntroPrefix(IntroCutscene __instance, ref Il2CppSystem.Collections.Generic.List <PlayerControl> yourTeam)
        {
            var loverTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>();

            loverTeam.Add(PlayerControl.LocalPlayer);
            loverTeam.Add(OtherLover.Player);
            yourTeam = loverTeam;
        }
Beispiel #5
0
        public static Il2CppReferenceArray <AreaModel> areas()
        {
            List <AreaModel> newareas = new List <AreaModel>();
            var area0 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.2222f, -114.787f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(148.3333f, -114.787f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.5926f, 115f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-146.8519f, 115f));
            newareas.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(area0), 10, (AreaType)2));
            var area1 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-146.8519f, 81.9907f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-5.92593f, 80.92591f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-5.370373f, -102.8611f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(148.3333f, -102.2223f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(148.1482f, -81.35183f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(12.40742f, -81.56479f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(12.03704f, 102.4352f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.2222f, 102.8611f));
            newareas.Add(new AreaModel("lol1", new Assets.Scripts.Simulation.SMath.Polygon(area1), 100f, AreaType.unplaceable, 0f, null, null, null, false, false, default));
            var area2 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.2222f, -52.81479f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-31.2963f, -53.2407f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-31.48148f, 52.60197f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.2222f, 52.60197f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-143.5185f, 47.91662f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-143.3333f, -47.91662f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-36.66667f, -48.12958f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-35.92593f, 48.34267f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-143.5185f, 48.34267f));
            newareas.Add(new AreaModel("lol2", new Assets.Scripts.Simulation.SMath.Polygon(area2), 100f, AreaType.unplaceable, 0f, null, null, null, false, false, default));
            var area3 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(36.66668f, -53.02774f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(148.1482f, -52.60183f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.5926f, 52.81479f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(36.11112f, 53.02774f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(46.48149f, 44.29634f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(46.66667f, -46.85183f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.7778f, -45.14817f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.5926f, 46.42591f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(46.29631f, 45.36113f));
            newareas.Add(new AreaModel("lol3", new Assets.Scripts.Simulation.SMath.Polygon(area3), 100f, AreaType.unplaceable, 0f, null, null, null, false, false, default));
            var area4 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-142.963f, -47.91662f));
            area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-36.48149f, -47.91662f));
            area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-36.48149f, 47.49084f));
            area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-142.7778f, 47.27774f));
            newareas.Add(new AreaModel("lol4", new Assets.Scripts.Simulation.SMath.Polygon(area4), 10, (AreaType)1));

            return(newareas.ToArray());
        }
        private static void CreateSongItem(Song song, OptionsMenu optionsMenu)
        {
            var row = new Il2CppSystem.Collections.Generic.List <GameObject>();

            var textBlock = optionsMenu.AddTextBlock(0, song.title + " - " + song.artist + " (mapped by " + song.author + ")");
            var TMP       = textBlock.transform.GetChild(0).GetComponent <TextMeshPro>();

            TMP.fontSizeMax = 32;
            TMP.fontSizeMin = 8;
            optionsMenu.scrollable.AddRow(textBlock.gameObject);

            // Skip button
            bool   destroyOnShot = true;
            Action onHit         = new Action(() => {
                missingSongsIDs.Remove(song.song_id);           // remove from local copy
                SongRequests.missingSongs.Remove(song.song_id); // remove from main list
                AddSongItems(optionsMenu);                      // refresh list
            });

            var skipButton = optionsMenu.AddButton(1,
                                                   "Skip",
                                                   onHit,
                                                   null,
                                                   null);

            skipButton.button.destroyOnShot   = destroyOnShot;
            skipButton.button.doMeshExplosion = destroyOnShot;

            // Download button
            Action onHit2 = new Action(() => {
                StartDownload(song.song_id, song.download_url, TMP);
            });

            var downloadButton = optionsMenu.AddButton(0,
                                                       "Download",
                                                       onHit2,
                                                       null,
                                                       null);

            downloadButton.button.destroyOnShot   = destroyOnShot;
            downloadButton.button.doMeshExplosion = destroyOnShot;

            // Preview button
            var previewButton = optionsMenu.AddButton(0,
                                                      "Preview",
                                                      new Action(() => { MelonCoroutines.Start(SongDownloader.StreamPreviewSong(song.preview_url)); }),
                                                      null,
                                                      null);

            optionsMenu.scrollable.AddRow(previewButton.gameObject);
            row.Add(downloadButton.gameObject);
            row.Add(skipButton.gameObject);

            optionsMenu.scrollable.AddRow(row);
        }
Beispiel #7
0
        public static Il2CppReferenceArray <AreaModel> areas()
        {
            List <AreaModel> newareas = new List <AreaModel>();
            var area0 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.7778f, -114.5741f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.5926f, -114.787f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(146.8519f, 114.787f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.4074f, 114.787f));
            newareas.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(area0), 10, (AreaType)2));
            var area1 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.7778f, -7.66662f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-98.33334f, -8.305493f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-98.14816f, -79.22225f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(94.62963f, -79.64817f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(96.66668f, -18.52775f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(82.96297f, -19.16662f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(81.85185f, -63.25f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-83.70371f, -63.46296f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-83.8889f, 65.16662f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(82.22223f, 64.7407f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(81.66667f, 20.65746f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(96.85186f, 20.23155f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(95.55556f, 80.28704f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-98.14816f, 80.07408f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-98.51853f, 8.731549f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.7778f, 9.370422f));
            newareas.Add(new AreaModel("lol1", new Assets.Scripts.Simulation.SMath.Polygon(area1), 100f, AreaType.unplaceable, 0f, null, null, null, false, false, default));
            var area2 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-75.55556f, 31.94451f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-66.2963f, 32.79634f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-58.51853f, 34.28704f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-51.29631f, 37.26859f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-43.33334f, 41.95366f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-38.14815f, 48.76845f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-34.07408f, 56.43521f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-75.37038f, 56.43521f));
            area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-75.37038f, 31.94451f));
            newareas.Add(new AreaModel("lol2", new Assets.Scripts.Simulation.SMath.Polygon(area2), 10, (AreaType)1));
            var area3 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(72.5926f, -29.17591f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(60.55556f, -30.02775f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(48.33334f, -34.28704f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(42.03705f, -38.12042f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(36.85186f, -42.59253f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(32.5926f, -48.98141f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(30.37037f, -54.30549f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(72.22222f, -54.30549f));
            newareas.Add(new AreaModel("lol3", new Assets.Scripts.Simulation.SMath.Polygon(area3), 10, (AreaType)1));

            return(newareas.ToArray());
        }
Beispiel #8
0
        public static Il2CppReferenceArray <AreaModel> areas()
        {
            List <AreaModel> newareas = new List <AreaModel>();
            var area0 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-148.3333f, -114.787f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.8148f, -114.787f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.2593f, 115f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-148.1482f, 115f));
            newareas.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(area0), 10, (AreaType)2)); var area2 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); var area3 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.7778f, -114.787f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.963f, -114.787f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.963f, -68.78704f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(136.6667f, -72.83324f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(134.0741f, -69.85183f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(116.1111f, -69.85183f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(114.2593f, -71.98141f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(89.07408f, -71.55549f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(87.40742f, -70.06479f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(67.77779f, -69.42591f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(46.85185f, -73.04633f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(19.07409f, -62.61113f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(19.62962f, -60.90746f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-1.666671f, -55.79634f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-2.407408f, -58.13887f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-76.85186f, -29.81479f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-77.03704f, -24.70366f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-78.70371f, -22.57408f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-81.11111f, 24.06479f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-79.25927f, 26.83338f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-80.92594f, 51.32409f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-82.5926f, 54.73155f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-82.40741f, 83.26859f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-81.66667f, 87.7407f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-83.51852f, 112.8704f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-79.25927f, 114.5741f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-52.03704f, 103.5f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-27.77778f, 95.83338f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-4.629627f, 89.87042f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(18.70371f, 83.26859f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(43.7037f, 76.87958f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(46.11111f, 74.32408f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(66.29631f, 72.62042f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(66.66667f, 70.70366f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(135.7408f, 73.47225f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(138.3334f, 70.91676f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.7778f, 74.53704f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.4074f, 115f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.7778f, 115f));
            area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.7778f, -114.787f));
            newareas.Add(new AreaModel("lol3", new Assets.Scripts.Simulation.SMath.Polygon(area3), 100f, AreaType.unplaceable, 0f, null, null, null, false, false, default));

            return(newareas.ToArray());
        }
        private static void AddButtons(OptionsMenu optionsMenu)
        {
            var header = optionsMenu.AddHeader(0, "Marathon Settings");

            optionsMenu.scrollable.AddRow(header);
            string shuffleText = Config.Shuffle ? "<color=\"green\">Shuffle ON" : "<color=\"red\">Shuffle OFF";

            shuffleButton = optionsMenu.AddButton(0, shuffleText, new Action(() =>
            {
                ToggleShuffle();
            }), null, "Shuffles the songs", optionsMenu.buttonPrefab);

            string showScoreText = Config.ShowScores ? "<color=\"green\">Show Score ON" : "<color=\"red\">Show Score OFF";

            showScoreButton = optionsMenu.AddButton(1, showScoreText, new Action(() =>
            {
                ToggleShowScore();
            }), null, "Shows 'Level Complete' at the end of each song", optionsMenu.buttonPrefab);

            string noFailText = Config.NoFail ? "<color=\"green\">NoFail ON" : "<color=\"red\">NoFail OFF";

            noFailButton = optionsMenu.AddButton(0, noFailText, new Action(() =>
            {
                ToggleNoFail();
            }), null, "Play the marathon with NoFail on or off", optionsMenu.buttonPrefab);

            string resetHealthText = Config.ResetHealth ? "<color=\"green\">Reset Health ON" : "<color=\"red\">Reset Health OFF";

            resetHealthButton = optionsMenu.AddButton(1, resetHealthText, new Action(() =>
            {
                ToggleResetHealth();
            }), null, "Reset Health at the end of each song", optionsMenu.buttonPrefab);

            Il2CppSystem.Collections.Generic.List <GameObject> toggles = new Il2CppSystem.Collections.Generic.List <GameObject>();
            toggles.Add(shuffleButton.gameObject);
            toggles.Add(showScoreButton.gameObject);
            optionsMenu.scrollable.AddRow(toggles);
            toggles.Clear();
            toggles.Add(noFailButton.gameObject);
            toggles.Add(resetHealthButton.gameObject);
            optionsMenu.scrollable.AddRow(toggles);
            var divider = optionsMenu.AddHeader(0, "");

            optionsMenu.scrollable.AddRow(divider);
            var start = optionsMenu.AddButton(1, "Start", new Action(() =>
            {
                MelonPreferences.Save();
                PlaylistEndlessManager.StartEndlessSession();
            }), null, "Starts the marathon", optionsMenu.buttonPrefab);

            optionsMenu.scrollable.AddRow(start.gameObject);
        }
Beispiel #10
0
        static TestClass()
        {
            testHashset = new Il2CppSystem.Collections.Hashtable();
            testHashset.Add("key1", "itemOne");
            testHashset.Add("key2", "itemTwo");
            testHashset.Add("key3", "itemThree");

            testList = new Il2CppSystem.Collections.Generic.List <Il2CppSystem.Object>(3);
            testList.Add("One");
            testList.Add("Two");
            testList.Add("Three");
            //testIList = list.TryCast<Il2CppSystem.Collections.IList>();
        }
Beispiel #11
0
        private static void CreateSongItem(Song song, OptionsMenu optionsMenu)
        {
            var row = new Il2CppSystem.Collections.Generic.List <GameObject>();

            var textBlock = optionsMenu.AddTextBlock(0, song.title + " - " + song.artist + " (mapped by " + song.author + ")");
            var TMP       = textBlock.transform.GetChild(0).GetComponent <TextMeshPro>();

            TMP.fontSizeMax = 32;
            TMP.fontSizeMin = 8;
            optionsMenu.scrollable.AddRow(textBlock.gameObject);

            //package data to be used for display
            SongBrowser.SongDisplayPackage songd = new SongBrowser.SongDisplayPackage();

            songd.hasEasy     = song.beginner;
            songd.hasStandard = song.standard;
            songd.hasAdvanced = song.advanced;
            songd.hasExpert   = song.expert;

            //if song data loader is installed look for custom tags
            if (SongBrowser.songDataLoaderInstalled)
            {
                songd = SongBrowser.SongDisplayPackage.FillCustomData(songd, song.song_id);
            }

            songd.customExpertTags   = songd.customExpertTags.Distinct().ToList();
            songd.customStandardTags = songd.customStandardTags.Distinct().ToList();
            songd.customAdvancedTags = songd.customAdvancedTags.Distinct().ToList();
            songd.customEasyTags     = songd.customEasyTags.Distinct().ToList();

            var downloadButton = optionsMenu.AddButton(0,
                                                       "Download" + SongBrowser.GetDifficultyString(songd),
                                                       new Action(() => { MelonCoroutines.Start(SongBrowser.DownloadSong(song.download_url)); TMP.text = "Added song to download queue!"; }),
                                                       null,
                                                       null);

            downloadButton.button.destroyOnShot = true;

            row.Add(downloadButton.gameObject);

            var previewButton = optionsMenu.AddButton(1,
                                                      "Preview",
                                                      new Action(() => { MelonCoroutines.Start(SongBrowser.StreamPreviewSong(song.preview_url)); }),
                                                      null,
                                                      null);

            row.Add(previewButton.gameObject);


            optionsMenu.scrollable.AddRow(row);
        }
Beispiel #12
0
        public static void Prefix(IntroCutscene.CoBegin__d __instance)
        {
            var PlayerTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>();
            var Team       = PlayerControl.LocalPlayer.Extra().Team;

            PlayerTeam.Add(PlayerControl.LocalPlayer);
            foreach (var Player in Team.Players
                     .Where(Player => Player.PlayerId != PlayerControl.LocalPlayer.PlayerId))
            {
                PlayerTeam.Add(Player);
            }

            __instance.yourTeam = PlayerTeam;
        }
Beispiel #13
0
        public Il2CppSystem.Collections.Generic.List <Vector2> GetPoints(float xScale = 1.0f, float yScale = 1.0f)
        {
            var list = new Il2CppSystem.Collections.Generic.List <Vector2>(points.Length);

            foreach (Vector2 point in points)
            {
                list.Add(new Vector2(point.x / xScale, -point.y / yScale));
            }
            if (points.Length > 0 && isClosed)
            {
                list.Add(new Vector2(points[0].x / xScale, -points[0].y / yScale));
            }

            return(list);
        }
Beispiel #14
0
        public static Il2CppReferenceArray <AreaModel> areas()
        {
            List <AreaModel> newareas = new List <AreaModel>();

            var area0 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-154.6297f, -114.787f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.2593f, -114.787f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.8148f, 115f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-154.6297f, 115f));
            newareas.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(area0), 10, (AreaType)2));
            var area1 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-146.6667f, 13.62972f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-53.70371f, 11.92592f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-50.92593f, -50.47225f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-7.592592f, -50.0462f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-7.962961f, 47.27774f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-74.44445f, 49.83338f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-74.25927f, 104.9908f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(99.62965f, 103.287f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(97.77779f, 19.16662f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(42.03705f, 16.82422f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(41.11111f, -11.5f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(106.6667f, -14.26845f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(106.8519f, -112.6575f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(22.03703f, -114.5741f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(22.22223f, -98.38887f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(87.22223f, -95.62042f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(89.07408f, -31.51845f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(23.88888f, -29.17591f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(22.96297f, 34.5f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(80.74074f, 35.56479f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(81.2963f, 85.18521f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-58.51853f, 87.10183f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-57.77778f, 68.14817f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(8.888895f, 66.23154f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(8.888895f, -69.21296f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-67.77779f, -69.85183f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-68.51853f, -6.175915f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.037f, -6.814789f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.4074f, 12.77775f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-51.66667f, 13.41676f));
            newareas.Add(new AreaModel("lol1", new Assets.Scripts.Simulation.SMath.Polygon(area1), 10, (AreaType)0));


            return(newareas.ToArray());
        }
Beispiel #15
0
        public static Il2CppReferenceArray <AreaModel> areas()
        {
            List <AreaModel> newareas = new List <AreaModel>();

            var area0 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.633f, -115.2764f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(146.1904f, -114.1706f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(146.6712f, 114.1708f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.633f, 114.7236f));
            newareas.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(area0), 0, (AreaType)2));
            var area1 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-3.999996f, -25.04437f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(0.444442f, -24.02225f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(5.33334f, -21.97775f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(7.999992f, -19.93338f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(11.55556f, -16.86662f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(12.88889f, -14.31113f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(13.77777f, -9.2f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(13.77777f, -5.622113f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(13.77777f, -2.044507f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(12.44445f, 3.06662f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(10.66666f, 6.644507f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(7.555551f, 10.22225f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(4.88888f, 12.26662f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(0.8888841f, 13.8f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-2.66667f, 14.31113f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-8.000001f, 14.82225f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-12.88889f, 12.26662f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-16f, 10.22225f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-21.33333f, 6.13338f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-22.22222f, 2.044507f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-24f, -2.555493f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-24.44445f, -8.177747f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-23.55555f, -11.24437f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-22.22222f, -15.84437f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-19.11111f, -19.93338f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-16.88889f, -21.97775f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-14.66667f, -24.02225f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-10.22222f, -26.06662f));
            area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-4.888889f, -26.57775f));
            newareas.Add(new AreaModel("lol1", new Assets.Scripts.Simulation.SMath.Polygon(area1), 10, (AreaType)0));



            return(newareas.ToArray());
        }
        private static Il2CppSystem.Collections.Generic.List <GameObject> GetAllScenesGameObjects()
        {
            Scene[] array = new Scene[SceneManager.sceneCount];
            for (int i = 0; i < SceneManager.sceneCount; i++)
            {
                array[i] = SceneManager.GetSceneAt(i);
            }

            var allObjectsList = new Il2CppSystem.Collections.Generic.List <GameObject>();

            foreach (var scene in array)
            {
                var list = new Il2CppSystem.Collections.Generic.List <GameObject>(scene.rootCount);
                GetRootGameObjects_Internal(scene, list.Pointer);
                foreach (var obj in list)
                {
                    allObjectsList.Add(obj);
                }
            }

            #region [DevNote]

            /*
             * The reason these differ are that GetAllScenesObjects doen't get DontDestroyOnLoad objects and it maintains heirarchy so it looks like alot less
             * For example: GetAllScenesObjects() doesn't find this Trainer and the games StageLoadManager object.
             */
            //log.LogMessage("AllScenesObject's Count: " + allObjectsList.Count.ToString());
            //log.LogMessage("FindAll<GameObject>() Count: " + GameObject.FindObjectsOfType<GameObject>().Count.ToString());
            #endregion

            return(allObjectsList);
        }
Beispiel #17
0
        protected override void IntroPrefix(IntroCutscene._CoBegin_d__11 __instance)
        {
            var arsonistTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>();

            arsonistTeam.Add(PlayerControl.LocalPlayer);
            __instance.yourTeam = arsonistTeam;
        }
Beispiel #18
0
        static void Prefix(IntroCutscene._CoBegin_d__11 __instance)
        {
            // Intro solo teams
            if (PlayerControl.LocalPlayer == Jester.jester || PlayerControl.LocalPlayer == Jackal.jackal || PlayerControl.LocalPlayer == Arsonist.arsonist)
            {
                var soloTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>();
                soloTeam.Add(PlayerControl.LocalPlayer);
                __instance.yourTeam = soloTeam;
            }

            // Add the Spy to the Impostor team (for the Impostors)
            if (Spy.spy != null && PlayerControl.LocalPlayer.Data.IsImpostor)
            {
                List <PlayerControl> players = PlayerControl.AllPlayerControls.ToArray().ToList().OrderBy(x => Guid.NewGuid()).ToList();
                var fakeImpostorTeam         = new Il2CppSystem.Collections.Generic.List <PlayerControl>();
                foreach (PlayerControl p in players)
                {
                    if (p == Spy.spy || p.Data.IsImpostor)
                    {
                        fakeImpostorTeam.Add(p);
                    }
                }
                __instance.yourTeam = fakeImpostorTeam;
            }
        }
Beispiel #19
0
 private static bool GetInstalledMods(ref Il2CppSystem.Collections.Generic.List <ModdingAPI.ModInformation> __result)
 {
     Il2CppSystem.Collections.Generic.List <ModdingAPI.ModInformation> info = new Il2CppSystem.Collections.Generic.List <ModdingAPI.ModInformation>();
     Demeo_Module.ModInformation.ForEach(x => info.Add(x));
     __result = info;
     return(false);
 }
Beispiel #20
0
        public static void InjectCustomEnemies(EnemyPopulationDataBlock __instance)
        {
            if (!injected)
            {
                Il2CppSystem.Collections.Generic.List <EnemyRoleData> customRoles = new Il2CppSystem.Collections.Generic.List <EnemyRoleData>();

                customRoles.Add(CreateCustomData(eEnemyRoleDifficulty.MiniBoss, eEnemyRole.Lurker, 6, 35, 2));
                customRoles.Add(CreateCustomData(eEnemyRoleDifficulty.MiniBoss, eEnemyRole.Melee, 10, 39, 1));
                foreach (EnemyRoleData data in __instance.RoleDatas)
                {
                    customRoles.Add(data);
                }
                __instance.RoleDatas = customRoles;
                injected             = true;
            }
        }
Beispiel #21
0
        public override Il2CppSystem.Collections.Generic.List <WinningPlayerData> GetWinners(Dictionary <byte, CustomRole[]> customRoles)
        {
            var list = new Il2CppSystem.Collections.Generic.List <WinningPlayerData>();

            foreach (var playerId in customRoles.Keys)
            {
                if (AmongUsPlugin.customRoles[playerId].Contains(_instance))
                {
                    var jesterPlayer = GameData.Instance.GetPlayerById(playerId);
                    list.Add(new WinningPlayerData
                    {
                        IsYou      = playerId == PlayerControl.LocalPlayer.PlayerId,
                        Name       = jesterPlayer.PlayerName,
                        ColorId    = jesterPlayer.ColorId,
                        SkinId     = jesterPlayer.SkinId,
                        IsImpostor = jesterPlayer.IsImpostor,
                        IsDead     = jesterPlayer.IsDead,
                        PetId      = jesterPlayer.PetId,
                        HatId      = jesterPlayer.HatId,
                    });
                }
            }

            return(list);
        }
Beispiel #22
0
        protected static void SetupOwnIntroTeam(IntroCutscene.CoBegin__d Cutscene)
        {
            var Team = new Il2CppSystem.Collections.Generic.List <PlayerControl>();

            Team.Add(PlayerControl.LocalPlayer);
            Cutscene.yourTeam = Team;
        }
Beispiel #23
0
        public static Il2CppReferenceArray <AreaModel> areas()
        {
            List <AreaModel> newareas = new List <AreaModel>();

            var area0 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>();

            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.633f, -115.2764f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(146.1904f, -114.1706f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(146.6712f, 114.1708f));
            area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.633f, 114.7236f));
            newareas.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(area0), 0, (AreaType)2));



            return(newareas.ToArray());
        }
Beispiel #24
0
        // Intro special teams
        static void Prefix(IntroCutscene.EMGDLDOHGCK __instance)
        {
            if (PlayerControl.LocalPlayer == Jester.jester)
            {
                var jesterTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>();
                jesterTeam.Add(PlayerControl.LocalPlayer);
                __instance.yourTeam = jesterTeam;
            }
            else if (PlayerControl.LocalPlayer == Jackal.jackal)
            {
                var jackalTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>();
                jackalTeam.Add(PlayerControl.LocalPlayer);
                __instance.yourTeam = jackalTeam;
            }

            // Add the Spy to the Impostor team (for the Impostors)
            if (Spy.spy != null && PlayerControl.LocalPlayer.PPMOEEPBHJO.FDNMBJOAPFL)
            {
                List <PlayerControl> players = PlayerControl.AllPlayerControls.ToArray().ToList().OrderBy(x => Guid.NewGuid()).ToList();
                var fakeImpostorTeam         = new Il2CppSystem.Collections.Generic.List <PlayerControl>();
                foreach (PlayerControl p in players)
                {
                    if (p == Spy.spy || p.PPMOEEPBHJO.FDNMBJOAPFL)
                    {
                        fakeImpostorTeam.Add(p);
                    }
                }
                __instance.yourTeam = fakeImpostorTeam;
            }
        }
Beispiel #25
0
 public static void AddUnique <T>(this Il2CppSystem.Collections.Generic.List <T> self, T item) where T : IDisconnectHandler
 {
     if (!self.Contains(item))
     {
         self.Add(item);
     }
 }
 public JintConsoleGui(IntPtr obj0) : base(obj0)
 {
     AntiGcList = new Il2CppSystem.Collections.Generic.List <MonoBehaviour>(1);
     AntiGcList.Add(this);
     windowfunction = ConsoleWindowDisplay;
     myinstance     = PulsarCRepMod.MakeNewJintInstance();
 }
Beispiel #27
0
 public static void Prefix(ref Il2CppSystem.Collections.Generic.List <PlayerControl> KADFCNPGKLO)
 {
     if (customRoles.ContainsKey(PlayerControl.LocalPlayer.PlayerId))
     {
         KADFCNPGKLO.Clear();
         KADFCNPGKLO.Add(PlayerControl.LocalPlayer);
     }
 }
Beispiel #28
0
        public override void SetIntro(IntroCutscene.CoBegin__d instance)
        {
            base.SetIntro(instance);
            var maniacTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>();

            maniacTeam.Add(player);
            instance.yourTeam = maniacTeam;
        }
Beispiel #29
0
        public static Il2CppSystem.Collections.Generic.List <T> ToIl2CppList <T>(this SizedList <T> sizedList)
        {
            Il2CppSystem.Collections.Generic.List <T> il2CppList = new Il2CppSystem.Collections.Generic.List <T>();
            for (int i = 0; i < sizedList.count; i++)
            {
                il2CppList.Add(sizedList[i]);
            }

            return(il2CppList);
        }
Beispiel #30
0
        /// <summary>
        /// Not tested
        /// </summary>
        public static Il2CppSystem.Collections.Generic.List <T> ToIl2CppList <T>(this List <T> list)
        {
            Il2CppSystem.Collections.Generic.List <T> il2CppList = new Il2CppSystem.Collections.Generic.List <T>();
            foreach (T item in list)
            {
                il2CppList.Add(item);
            }

            return(il2CppList);
        }