private static void AddPageButtons(OptionsMenu optionsMenu) { var row = new Il2CppSystem.Collections.Generic.List <GameObject>(); var previousPage = optionsMenu.AddButton(0, "Previous Page", new Action(() => { SongDownloader.PreviousPage(); SongDownloader.StartNewPageSearch(); optionsMenu.scrollable.SnapTo(0); }), null, null); row.Add(previousPage.gameObject); var nextPage = optionsMenu.AddButton(1, "Next Page", new Action(() => { SongDownloader.NextPage(); SongDownloader.StartNewPageSearch(); optionsMenu.scrollable.SnapTo(0); }), null, null); row.Add(nextPage.gameObject); optionsMenu.scrollable.AddRow(row); }
public static void Postfix(GameSettingMenu __instance) { var mapNameTransform = __instance.AllItems.FirstOrDefault(x => x.gameObject.activeSelf && x.name.Equals("MapName", StringComparison.OrdinalIgnoreCase)); if (mapNameTransform == null) { return; } var options = new Il2CppSystem.Collections.Generic.List <Il2CppSystem.Collections.Generic.KeyValuePair <string, int> >(); for (int i = 0; i < GameOptionsData.MapNames.Length; i++) { var kvp = new Il2CppSystem.Collections.Generic.KeyValuePair <string, int>(); kvp.key = GameOptionsData.MapNames[i]; kvp.value = i; options.Add(kvp); } mapNameTransform.GetComponent <KeyValueOption>().Values = options; }
public static Il2CppSystem.Collections.Generic.List <WinningPlayerData> GetWinners( Dictionary <byte, bool> customRoles) { var jesterId = customRoles.FirstOrDefault(x => x.Value).Key; var jesterPlayer = GameData.Instance.GetPlayerById(jesterId); var list = new Il2CppSystem.Collections.Generic.List <WinningPlayerData>(1); list.Add(new WinningPlayerData { IsYou = jesterId == PlayerControl.LocalPlayer.PlayerId, Name = jesterPlayer.LNFMCJAPLBH, ColorId = jesterPlayer.ACBLKMFEPKC, IsImpostor = false, SkinId = jesterPlayer.FHNDEEGICJP, PetId = jesterPlayer.HIJJGKGBKOJ, HatId = jesterPlayer.KCILOGLJODF, IsDead = true }); return(list); }
// Intro special teams static void Prefix(IntroCutscene.CoBegin__d __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 == Shifter.shifter) { var shifterTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); shifterTeam.Add(PlayerControl.LocalPlayer); __instance.yourTeam = shifterTeam; } else if (PlayerControl.LocalPlayer == Jackal.jackal) { var jackalTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); jackalTeam.Add(PlayerControl.LocalPlayer); __instance.yourTeam = jackalTeam; } }
internal static void RenderElement(this UiVRCList uivrclist, Il2CppSystem.Collections.Generic.List <ApiAvatar> AvatarList) { if (!uivrclist.gameObject.activeInHierarchy || !uivrclist.isActiveAndEnabled || uivrclist.isOffScreen || !uivrclist.enabled) { return; } if (CustomAvatarFavorites.renderElementMethod == null) { CustomAvatarFavorites.renderElementMethod = typeof(UiVRCList).GetMethods().FirstOrDefault((MethodInfo a) => a.Name.Contains("Method_Protected_Void_List_1_T_Int32_Boolean")).MakeGenericMethod(new Type[] { typeof(ApiAvatar) }); } MethodBase methodBase = CustomAvatarFavorites.renderElementMethod; object[] array = new object[4]; array[0] = AvatarList; array[1] = 0; array[2] = true; methodBase.Invoke(uivrclist, array); }
public static void setupIntroTeamIcons(IntroCutscene __instance, ref Il2CppSystem.Collections.Generic.List <PlayerControl> yourTeam) { // Intro solo teams if (PlayerControl.LocalPlayer.isNeutral() || PlayerControl.LocalPlayer == GM.gm) { var soloTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); soloTeam.Add(PlayerControl.LocalPlayer); yourTeam = soloTeam; } // Don't show the GM if (!PlayerControl.LocalPlayer.isGM()) { var newTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); foreach (PlayerControl p in yourTeam) { if (p != GM.gm) { newTeam.Add(p); } } yourTeam = newTeam; } // Add the Spy to the Impostor team (for the Impostors) if (Spy.spy != null && PlayerControl.LocalPlayer.Data.Role.IsImpostor) { List <PlayerControl> players = PlayerControl.AllPlayerControls.ToArray().ToList().OrderBy(x => Guid.NewGuid()).ToList(); var fakeImpostorTeam = new Il2CppSystem.Collections.Generic.List <PlayerControl>(); // The local player always has to be the first one in the list (to be displayed in the center) fakeImpostorTeam.Add(PlayerControl.LocalPlayer); foreach (PlayerControl p in players) { if (PlayerControl.LocalPlayer != p && (p == Spy.spy || p.Data.Role.IsImpostor)) { fakeImpostorTeam.Add(p); } } yourTeam = fakeImpostorTeam; } }
internal static void RaycastUI(Vector2 mousePos) { var ped = new PointerEventData(null) { position = mousePos }; #if MONO var list = new List <RaycastResult>(); #else var list = new Il2CppSystem.Collections.Generic.List <RaycastResult>(); #endif foreach (var gr in m_gCasters) { gr.Raycast(ped, list); if (list.Count > 0) { foreach (var hit in list) { if (hit.gameObject) { var obj = hit.gameObject; OnHitGameObject(obj); break; } } } else { if (s_lastHit) { ClearHitData(); } } } }
public static GameObject[] GetRootGameObjects(int handle) { if (handle == -1) { return(new GameObject[0]); } int count = GetRootCount(handle); if (count < 1) { return(new GameObject[0]); } var list = new Il2CppSystem.Collections.Generic.List <GameObject>(count); var iCall = ICallManager.GetICall <d_GetRootGameObjects>("UnityEngine.SceneManagement.Scene::GetRootGameObjectsInternal"); iCall.Invoke(handle, list.Pointer); return(list.ToArray()); }
static PlayerControl setTarget(bool onlyCrewmates = false, bool targetPlayersInVents = false, List <PlayerControl> untargetablePlayers = null) { PlayerControl result = null; float num = GameOptionsData.DCAJHEGBLDD[Mathf.Clamp(PlayerControl.GameOptions.OCPGKHJJAHL, 0, 2)]; if (!ShipStatus.Instance) { return(result); } Vector2 truePosition = PlayerControl.LocalPlayer.GetTruePosition(); Il2CppSystem.Collections.Generic.List <GameData.LGBOMGHJELL> allPlayers = GameData.Instance.AllPlayers; for (int i = 0; i < allPlayers.Count; i++) { GameData.LGBOMGHJELL LGBOMGHJELL = allPlayers[i]; if (!LGBOMGHJELL.MFFAGDHDHLO && LGBOMGHJELL.FNPNJHNKEBK != PlayerControl.LocalPlayer.PlayerId && !LGBOMGHJELL.IAGJEKLJCCI && (!onlyCrewmates || !LGBOMGHJELL.FDNMBJOAPFL)) { PlayerControl @object = LGBOMGHJELL.GJPBCGFPMOD; if (untargetablePlayers != null && untargetablePlayers.Any(x => x == @object)) { // if that player is not targetable: skip check continue; } if (@object && ([email protected] || targetPlayersInVents)) { Vector2 vector = @object.GetTruePosition() - truePosition; float magnitude = vector.magnitude; if (magnitude <= num && !PhysicsHelpers.HLIEDNLNBBH(truePosition, vector.normalized, magnitude, Constants.LEOCDMEJGPA)) { result = @object; num = magnitude; } } } } return(result); }
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(-120.7032f, -115.553f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-121.665f, -90.12016f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-129.8401f, -85.69704f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.633f, -86.25f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.633f, -71.875f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-120.7032f, -70.76908f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-113.009f, -74.63938f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-109.6428f, -96.7547f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-109.6428f, -115f)); 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(55.78316f, 64.6875f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(72.61429f, 35.9375f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(83.67474f, 33.17312f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(95.21609f, 53.07688f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(90.88808f, 75.19234f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(80.7894f, 82.37984f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(55.78316f, 80.16828f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(54.3405f, 66.89906f)); newareas.Add(new AreaModel("lol2", new Assets.Scripts.Simulation.SMath.Polygon(area2), 0, (AreaType)1)); return(newareas.ToArray()); }
static PlayerControl setTarget(bool onlyCrewmates = false, bool targetPlayersInVents = false, List <PlayerControl> untargetablePlayers = null) { PlayerControl result = null; float num = GameOptionsData.FECFGOOCIJL[Mathf.Clamp(PlayerControl.GameOptions.MLLMFMOMIAC, 0, 2)]; if (!ShipStatus.Instance) { return(result); } Vector2 truePosition = PlayerControl.LocalPlayer.GetTruePosition(); Il2CppSystem.Collections.Generic.List <GameData.OFKOJOKOOAK> allPlayers = GameData.Instance.AllPlayers; for (int i = 0; i < allPlayers.Count; i++) { GameData.OFKOJOKOOAK OFKOJOKOOAK = allPlayers[i]; if (!OFKOJOKOOAK.GBPMEHJFECK && OFKOJOKOOAK.GMBAIPNOKLP != PlayerControl.LocalPlayer.PlayerId && !OFKOJOKOOAK.FGNJJFABIHJ && (!onlyCrewmates || !OFKOJOKOOAK.CIDDOFDJHJH)) { PlayerControl @object = OFKOJOKOOAK.GPBBCHGPABL; if (untargetablePlayers != null && untargetablePlayers.Any(x => x == @object)) { // if that player is not targetable: skip check continue; } if (@object && ([email protected] || targetPlayersInVents)) { Vector2 vector = @object.GetTruePosition() - truePosition; float magnitude = vector.magnitude; if (magnitude <= num && !PhysicsHelpers.HKFKKEKGLHF(truePosition, vector.normalized, magnitude, Constants.DHLPLBPJNBA)) { result = @object; num = magnitude; } } } } return(result); }
static PlayerControl setTarget(bool onlyCrewmates = false, bool targetPlayersInVents = false, List <PlayerControl> untargetablePlayers = null) { PlayerControl result = null; float num = GameOptionsData.KillDistances[Mathf.Clamp(PlayerControl.GameOptions.KillDistance, 0, 2)]; if (!ShipStatus.Instance) { return(result); } Vector2 truePosition = PlayerControl.LocalPlayer.GetTruePosition(); Il2CppSystem.Collections.Generic.List <GameData.PlayerInfo> allPlayers = GameData.Instance.AllPlayers; for (int i = 0; i < allPlayers.Count; i++) { GameData.PlayerInfo playerInfo = allPlayers[i]; if (!playerInfo.Disconnected && playerInfo.PlayerId != PlayerControl.LocalPlayer.PlayerId && !playerInfo.IsDead && (!onlyCrewmates || !playerInfo.IsImpostor)) { PlayerControl @object = playerInfo.Object; if (untargetablePlayers != null && untargetablePlayers.Any(x => x == @object)) { // if that player is not targetable: skip check continue; } if (@object && ([email protected] || targetPlayersInVents)) { Vector2 vector = @object.GetTruePosition() - truePosition; float magnitude = vector.magnitude; if (magnitude <= num && !PhysicsHelpers.AnyNonTriggersBetween(truePosition, vector.normalized, magnitude, Constants.ShipAndObjectsMask)) { result = @object; num = magnitude; } } } } return(result); }
public static void Prefix(EndGameManager __instance) { { if (DidCultistsWin) { Il2CppSystem.Collections.Generic.List <WinningPlayerData> newWinners = new Il2CppSystem.Collections.Generic.List <WinningPlayerData>(); for (int i = 0; i < GameData.Instance.PlayerCount; i++) { GameData.PlayerInfo playerInfo = GameData.Instance.AllPlayers[i]; if (IsCultist(playerInfo.PlayerId)) { newWinners.Add(new WinningPlayerData(playerInfo)); } } TempData.winners = newWinners; } if (TempData.DidHumansWin(TempData.EndReason) && !DidCultistsWin) { var toRemove = new List <WinningPlayerData>(); foreach (var winner in TempData.winners) { if (IsCultist(winner.Name)) { toRemove.Add(winner); } } foreach (var winnerToRemove in toRemove) { TempData.winners.Remove(winnerToRemove); } } } }
public override Il2CppSystem.Collections.Generic.List <WinningPlayerData> GetWinners(Dictionary <byte, CustomRole[]> customRoles) { var list = new Il2CppSystem.Collections.Generic.List <WinningPlayerData>(); foreach (var player in GameData.Instance.AllPlayers) { if (!player.IsImpostor) { list.Add(new WinningPlayerData { IsYou = player.PlayerId == PlayerControl.LocalPlayer.PlayerId, Name = player.PlayerName, ColorId = player.ColorId, SkinId = player.SkinId, IsImpostor = player.IsImpostor, IsDead = player.IsDead, PetId = player.PetId, HatId = player.HatId, }); } } return(list); }
public static void AddDropdownListItem(this ICustomLayoutedMenu list, string description, Type values, Action <int> on_change, int initial_state) { var obj = list.AddCustomButton(DropdownListItem); obj.OnInstanceCreated += (GameObject obj) => { /* Add description text */ obj.transform.GetChild(0).GetComponent <TMP_Text>().text = description; /* Configure Enum Dropdown */ var dropdown = obj.transform.GetChild(1).GetComponent <TMP_Dropdown>(); var options = new Il2CppSystem.Collections.Generic.List <string> { }; foreach (var name in Enum.GetNames(values)) { options.Add(name); } dropdown.ClearOptions(); dropdown.AddOptions(options); dropdown.value = initial_state; dropdown.onValueChanged.AddListener(on_change); }; }
private static void Postfix(SongSelect __instance, ref bool extras, ref Il2CppSystem.Collections.Generic.List <string> __result) { if (FilterPanel.filteringFavorites) { extras = true; if (FilterPanel.favorites != null) { __result.Clear(); for (int i = 0; i < FilterPanel.favorites.songIDs.Count; i++) { __result.Add(FilterPanel.favorites.songIDs[i]); } } __instance.scroller.SnapTo(0, true); } if (SongBrowser.deletedSongs.Count > 0) { foreach (var deletedSong in SongBrowser.deletedSongs) { __result.Remove(deletedSong); } } }
protected override void ProcessText(object[] parameters = null) { if (RoomManager.field_Internal_Static_ApiWorldInstance_0 != null) { if (hasCheckedInstance) { ChangeEntry("instancecreator", lastUserDisplayName); return; } Il2CppSystem.Collections.Generic.List <ApiWorldInstance.InstanceTag> tags = RoomManager.field_Internal_Static_ApiWorldInstance_0.ParseTags(RoomManager.field_Internal_Static_ApiWorldInstance_0.idWithTags); foreach (ApiWorldInstance.InstanceTag tag in tags) { if (tag.name == "private" || tag.name == "friend" || tag.name == "hidden") { foreach (Player player in PlayerManager.prop_PlayerManager_0.field_Private_List_1_Player_0) { if (player.field_Private_APIUser_0.id == tag.data) { ChangeEntry("instancecreator", player.field_Private_APIUser_0.displayName); lastUserDisplayName = player.field_Private_APIUser_0.displayName; hasCheckedInstance = true; return; } } APIUser.FetchUser(tag.data, new Action <APIUser>(OnIdReceived), null); ChangeEntry("instancecreator", "Loading..."); hasCheckedInstance = true; return; } } } lastUserDisplayName = "No Instance Creator"; ChangeEntry("instancecreator", "No Instance Creator"); hasCheckedInstance = true; }
private static void SetWinners() { Il2CppSystem.Collections.Generic.List <WinningPlayerData> winners = new Il2CppSystem.Collections.Generic.List <WinningPlayerData>(); List <PlayerControl> allPlayers = Utilities.PlayerControls; switch (WinnerType) { case WinnerTypes.Crewmates: for (int i = 0; i < allPlayers.Count; i++) { if (!RoleInfo.IsRole(allPlayers[i], Roles.Jester) && !allPlayers[i].Data.IsImpostor) { winners.Add(new WinningPlayerData(allPlayers[i].Data)); } } break; case WinnerTypes.Impostors: for (int i = 0; i < allPlayers.Count; i++) { if (allPlayers[i].Data.IsImpostor) { winners.Add(new WinningPlayerData(allPlayers[i].Data)); } } break; case WinnerTypes.Jester: System.Console.WriteLine("0"); winners.Add(new WinningPlayerData(RoleInfo.GetControlForRole(Roles.Jester, allPlayers).Data)); System.Console.WriteLine("1"); break; } TempData.winners = winners; }
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(150.9259f, -114.787f)); area0_.Add(new Assets.Scripts.Simulation.SMath.Vector2(150.3704f, 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.track)); var area0 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-34.22223f, 16.35549f)); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-18.66666f, 16.86662f)); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-13.77777f, 24.53338f)); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-15.11111f, 29.13338f)); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-25.33333f, 31.68887f)); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-38.22222f, 32.71112f)); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-49.33334f, 28.62225f)); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-49.33334f, 20.95549f)); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(-42.22223f, 18.40014f)); 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(-97.33334f, -3.577746f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-85.77778f, -5.622113f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-79.11111f, -2.044507f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-76.88889f, 3.06662f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-81.77778f, 6.13338f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-93.33333f, 6.13338f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-97.77779f, -3.06662f)); newareas.Add(new AreaModel("lol1", new Assets.Scripts.Simulation.SMath.Polygon(area1), 10, (AreaType)2)); var area2 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-109.3333f, 26.06662f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-90.66666f, 34.75563f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-80.44444f, 40.37775f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-76f, 47.02225f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-74.66666f, 51.62225f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-88.88889f, 55.2f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-101.7778f, 57.24451f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-118.2222f, 59.28887f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-118.2222f, 39.35563f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-110.2222f, 27.6f)); newareas.Add(new AreaModel("lol2", new Assets.Scripts.Simulation.SMath.Polygon(area2), 10, (AreaType)2)); var area3 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(33.77777f, 16.86662f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(60.44444f, 14.31113f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(66.66666f, 20.95549f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(67.55555f, 26.57775f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(40f, 31.17775f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(33.77777f, 27.08887f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(32f, 18.40014f)); newareas.Add(new AreaModel("lol3", new Assets.Scripts.Simulation.SMath.Polygon(area3), 10, (AreaType)2)); var area4 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-61.77777f, 72.06662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-29.33334f, 61.84451f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-16.88889f, 61.84451f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-16f, 69.51112f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-28f, 72.06662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-32f, 82.8f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-40.88889f, 85.86662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-63.11111f, 82.8f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-63.55556f, 76.66662f)); newareas.Add(new AreaModel("lol4", new Assets.Scripts.Simulation.SMath.Polygon(area4), 10, (AreaType)2)); var area5 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-32.88889f, 86.37775f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-28f, 82.8f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-19.55556f, 83.31113f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-17.33334f, 89.4445f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-21.77778f, 93.02225f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-32.88889f, 92f)); newareas.Add(new AreaModel("lol5", new Assets.Scripts.Simulation.SMath.Polygon(area5), 10, (AreaType)2)); var area6 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(37.77777f, 94.0445f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(48.00001f, 95.06662f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(50.66666f, 102.2223f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(45.33334f, 105.8f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(35.11112f, 102.7334f)); newareas.Add(new AreaModel("lol6", new Assets.Scripts.Simulation.SMath.Polygon(area6), 10, (AreaType)2)); var area7 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area7.Add(new Assets.Scripts.Simulation.SMath.Vector2(51.11112f, 84.33338f)); area7.Add(new Assets.Scripts.Simulation.SMath.Vector2(76.88889f, 81.77775f)); area7.Add(new Assets.Scripts.Simulation.SMath.Vector2(84.44445f, 88.93338f)); area7.Add(new Assets.Scripts.Simulation.SMath.Vector2(83.99999f, 96.08887f)); area7.Add(new Assets.Scripts.Simulation.SMath.Vector2(54.66668f, 98.64451f)); area7.Add(new Assets.Scripts.Simulation.SMath.Vector2(48.44445f, 91.48887f)); newareas.Add(new AreaModel("lol7", new Assets.Scripts.Simulation.SMath.Polygon(area7), 10, (AreaType)2)); var area8 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area8.Add(new Assets.Scripts.Simulation.SMath.Vector2(33.77777f, 72.57774f)); area8.Add(new Assets.Scripts.Simulation.SMath.Vector2(46.22222f, 72.06662f)); area8.Add(new Assets.Scripts.Simulation.SMath.Vector2(53.77777f, 78.20014f)); area8.Add(new Assets.Scripts.Simulation.SMath.Vector2(52.88889f, 83.82225f)); area8.Add(new Assets.Scripts.Simulation.SMath.Vector2(35.55556f, 83.31113f)); area8.Add(new Assets.Scripts.Simulation.SMath.Vector2(31.55556f, 77.17774f)); newareas.Add(new AreaModel("lol8", new Assets.Scripts.Simulation.SMath.Polygon(area8), 10, (AreaType)2)); var area9 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area9.Add(new Assets.Scripts.Simulation.SMath.Vector2(89.33333f, -4.088873f)); area9.Add(new Assets.Scripts.Simulation.SMath.Vector2(103.1111f, -6.13324f)); area9.Add(new Assets.Scripts.Simulation.SMath.Vector2(110.2222f, 0.5111267f)); area9.Add(new Assets.Scripts.Simulation.SMath.Vector2(108.8889f, 6.644507f)); area9.Add(new Assets.Scripts.Simulation.SMath.Vector2(94.66667f, 6.644507f)); area9.Add(new Assets.Scripts.Simulation.SMath.Vector2(88.44445f, 1.53338f)); newareas.Add(new AreaModel("lol9", new Assets.Scripts.Simulation.SMath.Polygon(area9), 10, (AreaType)2)); var area10 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area10.Add(new Assets.Scripts.Simulation.SMath.Vector2(88.00001f, 51.62225f)); area10.Add(new Assets.Scripts.Simulation.SMath.Vector2(118.2222f, 30.66662f)); area10.Add(new Assets.Scripts.Simulation.SMath.Vector2(127.1111f, 30.15563f)); area10.Add(new Assets.Scripts.Simulation.SMath.Vector2(132.4444f, 37.31113f)); area10.Add(new Assets.Scripts.Simulation.SMath.Vector2(135.1111f, 47.02225f)); area10.Add(new Assets.Scripts.Simulation.SMath.Vector2(136.4444f, 60.82225f)); area10.Add(new Assets.Scripts.Simulation.SMath.Vector2(134.6667f, 66.4445f)); area10.Add(new Assets.Scripts.Simulation.SMath.Vector2(119.5555f, 66.4445f)); area10.Add(new Assets.Scripts.Simulation.SMath.Vector2(107.1111f, 64.4f)); area10.Add(new Assets.Scripts.Simulation.SMath.Vector2(92.44444f, 60.31113f)); newareas.Add(new AreaModel("lol10", new Assets.Scripts.Simulation.SMath.Polygon(area10), 10, (AreaType)2)); return(newareas.ToArray()); }
// Token: 0x06000056 RID: 86 RVA: 0x00017A40 File Offset: 0x00015C40 public static Il2CppReferenceArray <AreaModel> areas() { System.Collections.Generic.List <AreaModel> list = new System.Collections.Generic.List <AreaModel>(); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list2 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-16.66667f, -57.5f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(22.22223f, -57.18049f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(23.88888f, -65.48598f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(25.27778f, -74.75f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(23.33334f, -79.86098f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(22.22223f, -85.29162f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(16.38889f, -86.5695f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(13.33333f, -85.61112f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(9.444451f, -87.20824f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(3.333342f, -85.93049f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-3.88889f, -82.73612f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-8.333338f, -82.41662f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-11.38889f, -77.625f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-12.77778f, -70.91662f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-14.72223f, -69f)); list2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-16.66667f, -57.5f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list2), 2f, AreaType.water, 0f, null, null, null, false, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list3 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-69.99999f, -114.6805f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-71.11111f, -71.23612f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-126.6667f, -70.27775f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-127.7778f, 96.15275f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-19.44444f, 99.02775f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-19.16666f, 2.236127f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(52.5f, 1.597253f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(54.16668f, 96.79176f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(148.8889f, 96.47225f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(148.8889f, 71.55549f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(79.16667f, 71.55549f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(78.33334f, 1.277887f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(135.8333f, -6.70838f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(135.2778f, -92f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(54.44444f, -91.68063f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(53.05556f, -27.79162f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-44.44445f, -26.19437f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-46.38889f, 70.59725f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-101.3889f, 70.59725f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-100.8333f, -38.97225f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-45.27778f, -44.40274f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-45.27778f, -114.6805f)); list3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-68.33334f, -114.3611f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list3), 2f, AreaType.track, 0f, null, null, null, false, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list4 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list4.Add(new Assets.Scripts.Simulation.SMath.Vector2(79.44444f, -64.20838f)); list4.Add(new Assets.Scripts.Simulation.SMath.Vector2(78.61111f, -28.11113f)); list4.Add(new Assets.Scripts.Simulation.SMath.Vector2(110f, -28.75f)); list4.Add(new Assets.Scripts.Simulation.SMath.Vector2(110f, -64.84725f)); list4.Add(new Assets.Scripts.Simulation.SMath.Vector2(79.16667f, -64.20838f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list4), 2f, AreaType.land, 0f, null, null, null, false, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list5 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-149.4444f, 92f)); list5.Add(new Assets.Scripts.Simulation.SMath.Vector2(1.666671f, 92.63902f)); list5.Add(new Assets.Scripts.Simulation.SMath.Vector2(1.944441f, -11.5f)); list5.Add(new Assets.Scripts.Simulation.SMath.Vector2(15.27777f, -12.13887f)); list5.Add(new Assets.Scripts.Simulation.SMath.Vector2(23.88888f, 1.277887f)); list5.Add(new Assets.Scripts.Simulation.SMath.Vector2(23.61111f, 91.68063f)); list5.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.4444f, 91.68063f)); list5.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.4444f, 114.0418f)); list5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-150.2778f, 114.6805f)); list5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-149.7222f, 92.3195f)); list5.Add(new Assets.Scripts.Simulation.SMath.Vector2(1.111114f, 92.3195f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list5), 100f, AreaType.unplaceable, 0f, null, null, null, true, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list6 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-150.2778f, -114.6805f)); list6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-150.5556f, 91.68063f)); list6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-126.1111f, 91.36112f)); list6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-125.8333f, -68.68049f)); list6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-69.99999f, -70.27775f)); list6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-69.44445f, -114.6805f)); list6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-150f, -114.6805f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list6), 2f, AreaType.land, 0f, null, null, null, false, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list7 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list7.Add(new Assets.Scripts.Simulation.SMath.Vector2(-94.16667f, -40.25f)); list7.Add(new Assets.Scripts.Simulation.SMath.Vector2(-100.5555f, -40.25f)); list7.Add(new Assets.Scripts.Simulation.SMath.Vector2(-101.1111f, 70.91676f)); list7.Add(new Assets.Scripts.Simulation.SMath.Vector2(-45.83334f, 69.95838f)); list7.Add(new Assets.Scripts.Simulation.SMath.Vector2(-44.44445f, -25.875f)); list7.Add(new Assets.Scripts.Simulation.SMath.Vector2(-70.55555f, -25.875f)); list7.Add(new Assets.Scripts.Simulation.SMath.Vector2(-71.38889f, 68.36112f)); list7.Add(new Assets.Scripts.Simulation.SMath.Vector2(-93.88889f, 68.68049f)); list7.Add(new Assets.Scripts.Simulation.SMath.Vector2(-93.61111f, -39.93049f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list7), 2f, AreaType.land, 0f, null, null, null, false, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list8 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list8.Add(new Assets.Scripts.Simulation.SMath.Vector2(-71.38889f, 68.04176f)); list8.Add(new Assets.Scripts.Simulation.SMath.Vector2(-79.72223f, 67.72225f)); list8.Add(new Assets.Scripts.Simulation.SMath.Vector2(-93.61111f, 67.72225f)); list8.Add(new Assets.Scripts.Simulation.SMath.Vector2(-93.61111f, -57.18049f)); list8.Add(new Assets.Scripts.Simulation.SMath.Vector2(53.61112f, -57.8195f)); list8.Add(new Assets.Scripts.Simulation.SMath.Vector2(53.61112f, -43.125f)); list8.Add(new Assets.Scripts.Simulation.SMath.Vector2(53.61112f, -28.11113f)); list8.Add(new Assets.Scripts.Simulation.SMath.Vector2(-71.66666f, -27.47211f)); list8.Add(new Assets.Scripts.Simulation.SMath.Vector2(-72.77778f, 67.40275f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list8), 100f, AreaType.unplaceable, 0f, null, null, null, true, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list9 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(53.05556f, -57.18049f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(27.22222f, -56.86113f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(30.00001f, -66.125f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(30.00001f, -76.02775f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(27.22222f, -88.16662f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(17.77777f, -91.68063f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(10.55555f, -91.36112f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(-1.944441f, -89.4445f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(-11.38889f, -83.375f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(-19.44444f, -73.15275f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(-22.22222f, -63.56937f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(-24.16667f, -56.54162f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(-37.5f, -56.54162f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(-44.16667f, -53.66662f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(-44.44445f, -102.2223f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(-39.72222f, -94.875f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(53.88889f, -93.59725f)); list9.Add(new Assets.Scripts.Simulation.SMath.Vector2(53.33333f, -57.5f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list9), 2f, AreaType.land, 0f, null, null, null, false, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list10 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(-16.38889f, -58.13887f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(-14.44445f, -68.68049f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(-11.11111f, -77.30563f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(-2.777776f, -83.375f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(7.499993f, -86.88887f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(17.77777f, -87.20824f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(24.44444f, -78.26387f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(24.99999f, -64.52775f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(24.16667f, -60.6945f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(21.94444f, -57.8195f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(28.05555f, -57.18049f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(27.49999f, -61.65274f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(32.5f, -69.31937f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(29.44445f, -76.02775f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(26.94445f, -87.52775f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(11.94445f, -91.68063f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(0.8333266f, -91.04162f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(-5.555552f, -89.125f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(-13.33333f, -80.18049f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(-20f, -71.875f)); list10.Add(new Assets.Scripts.Simulation.SMath.Vector2(-22.77777f, -57.8195f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list10), 2f, AreaType.unplaceable, 0f, null, null, null, false, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list11 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list11.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.7222f, -14.69451f)); list11.Add(new Assets.Scripts.Simulation.SMath.Vector2(70.83333f, -14.69451f)); list11.Add(new Assets.Scripts.Simulation.SMath.Vector2(70.83333f, -1.277747f)); list11.Add(new Assets.Scripts.Simulation.SMath.Vector2(79.16667f, 15.33338f)); list11.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.1667f, 15.01387f)); list11.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.1667f, -0.3195068f)); list11.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.7222f, -14.69451f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list11), 100f, AreaType.unplaceable, 0f, null, null, null, true, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list12 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list12.Add(new Assets.Scripts.Simulation.SMath.Vector2(-19.44444f, 1.91662f)); list12.Add(new Assets.Scripts.Simulation.SMath.Vector2(1.111114f, 1.277887f)); list12.Add(new Assets.Scripts.Simulation.SMath.Vector2(1.388884f, 91.36112f)); list12.Add(new Assets.Scripts.Simulation.SMath.Vector2(-19.44444f, 91.68063f)); list12.Add(new Assets.Scripts.Simulation.SMath.Vector2(-18.88889f, 2.555493f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list12), 2f, AreaType.land, 0f, null, null, null, false, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list13 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list13.Add(new Assets.Scripts.Simulation.SMath.Vector2(23.33334f, 1.597253f)); list13.Add(new Assets.Scripts.Simulation.SMath.Vector2(23.61111f, 91.36112f)); list13.Add(new Assets.Scripts.Simulation.SMath.Vector2(53.33333f, 91.36112f)); list13.Add(new Assets.Scripts.Simulation.SMath.Vector2(53.05556f, 1.91662f)); list13.Add(new Assets.Scripts.Simulation.SMath.Vector2(23.33334f, 1.91662f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list13), 2f, AreaType.land, 0f, null, null, null, false, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list14 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list14.Add(new Assets.Scripts.Simulation.SMath.Vector2(78.88888f, 15.65289f)); list14.Add(new Assets.Scripts.Simulation.SMath.Vector2(79.16667f, 72.1945f)); list14.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.1667f, 70.59725f)); list14.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.1667f, 15.01387f)); list14.Add(new Assets.Scripts.Simulation.SMath.Vector2(79.16667f, 15.01387f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list14), 2f, AreaType.land, 0f, null, null, null, false, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list15 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list15.Add(new Assets.Scripts.Simulation.SMath.Vector2(135.5556f, -15.33324f)); list15.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.1667f, -15.65275f)); list15.Add(new Assets.Scripts.Simulation.SMath.Vector2(148.8889f, -93.27775f)); list15.Add(new Assets.Scripts.Simulation.SMath.Vector2(135.2778f, -93.27775f)); list15.Add(new Assets.Scripts.Simulation.SMath.Vector2(135.2778f, -15.65275f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list15), 2f, AreaType.land, 0f, null, null, null, false, false, default)); Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2> list16 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); list16.Add(new Assets.Scripts.Simulation.SMath.Vector2(149.1667f, -94.55549f)); list16.Add(new Assets.Scripts.Simulation.SMath.Vector2(-39.44444f, -94.55549f)); list16.Add(new Assets.Scripts.Simulation.SMath.Vector2(-47.22222f, -109.25f)); list16.Add(new Assets.Scripts.Simulation.SMath.Vector2(-47.22222f, -114.6805f)); list16.Add(new Assets.Scripts.Simulation.SMath.Vector2(150f, -114.6805f)); list16.Add(new Assets.Scripts.Simulation.SMath.Vector2(148.8889f, -94.23598f)); list.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(list16), 100f, AreaType.unplaceable, 0f, null, null, null, true, false, default)); return(list.ToArray()); }
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.787f)); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.963f, -114.787f)); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.037f, 115f)); 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(43.8889f, -114.1482f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(45.1852f, 85.61112f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(36.48148f, 100.9445f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(23.88888f, 107.7593f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(21.11111f, 112.8704f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(8.333338f, 111.3796f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-6.296299f, 111.1668f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-24.25926f, 110.7407f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-34.81482f, 108.6111f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-45.00001f, 96.47225f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-49.81482f, 87.7407f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-49.62963f, -114.5741f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-37.03704f, -114.787f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-38.14815f, 85.61112f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-35.37037f, 87.31479f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-26.11111f, 95.83338f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-10f, 98.81493f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(11.48148f, 99.66676f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(22.59259f, 98.60183f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(32.03704f, 86.67591f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(32.40742f, -114.3611f)); 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.4074f, -41.31479f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(99.07409f, -39.18521f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(111.8519f, -22.57408f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(114.6296f, -5.749859f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(115.1852f, 7.240704f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(111.4815f, 26.62042f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(105.3704f, 41.31493f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(93.33334f, 45.57409f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(88.70372f, 47.49084f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-146.1111f, 51.75f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.4074f, 39.18521f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(90.1852f, 34.5f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(101.1111f, 26.83338f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(104.8148f, 12.56493f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(105.1852f, 1.277887f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(100.1852f, -13.41662f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(93.70371f, -24.06479f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(77.5926f, -27.47211f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.7778f, -27.68521f)); 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(-106.2963f, 66.01859f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-94.07408f, 63.03704f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-91.85186f, 63.67591f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-86.48149f, 58.56479f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-70.92593f, 66.01859f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-69.25927f, 84.12042f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-80.74075f, 90.50929f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-80.37038f, 96.47225f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-97.96297f, 96.89817f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-105.5556f, 84.12042f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-105.9259f, 66.4445f)); newareas.Add(new AreaModel("lol3", new Assets.Scripts.Simulation.SMath.Polygon(area3), 10, (AreaType)1)); var area4 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(54.62963f, -61.5462f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(55.37038f, -77.73141f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(63.51852f, -89.87042f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(79.25927f, -89.87042f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(80.74074f, -84.75929f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(91.66669f, -79.86098f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(90.37037f, -62.18521f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(74.81483f, -53.66662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(68.8889f, -58.13887f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(66.48149f, -55.79634f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(54.62963f, -61.33324f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(56.11112f, -77.30563f)); newareas.Add(new AreaModel("lol4", new Assets.Scripts.Simulation.SMath.Polygon(area4), 10, (AreaType)1)); return(newareas.ToArray()); }
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.5926f, -114.787f)); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.7778f, -114.787f)); area0.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.7778f, 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 area1 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.5926f, -67.72225f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-90.55557f, -67.93521f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-88.8889f, -27.47211f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-67.40742f, -28.32408f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-67.59261f, -91.14803f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-117.037f, -92.85183f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-116.6667f, -105.8425f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-15.55555f, -106.6944f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-16.11111f, -91.78704f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-53.70371f, -90.72225f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-54.44445f, -67.93521f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-46.48149f, -68.14817f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-44.44445f, -54.09253f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-54.81482f, -54.51845f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-55.55556f, -19.80549f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-115.5556f, -17.88887f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-115.7408f, -18.52775f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-115.5556f, -18.31479f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-114.2593f, 97.32408f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-100.3704f, 95.83338f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-100.1852f, 7.879578f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-56.66667f, 7.879578f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-54.81482f, 27.68521f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-44.44445f, 27.47225f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-43.14816f, -26.19437f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-10.74075f, -26.62028f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-10.37037f, 68.57408f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-44.81482f, 70.4907f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-45.37038f, 93.91662f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(5.370373f, 94.34254f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(5.555553f, 44.72225f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(36.11112f, 46.21296f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(38.88889f, 65.16662f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(54.62963f, 64.7407f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(55.74074f, 22.78704f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(22.96297f, 21.08338f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(22.77779f, -27.04634f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(70.92593f, -27.89817f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(70.55557f, -57.71296f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(5.555553f, -58.35183f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(5.370373f, -108.1852f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(126.8519f, -106.6944f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(128.1482f, 114.787f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(115.3704f, 114.5741f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(115f, -91.57408f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(16.11112f, -90.50929f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(16.11112f, -68.36112f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(82.59261f, -70.70366f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(83.14815f, -20.01845f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(32.22222f, -18.95366f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(32.96296f, 12.9907f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(92.96297f, 14.05549f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(91.66669f, 107.7593f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(51.29631f, 108.1852f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(51.48148f, 94.98154f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(81.2963f, 93.27775f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(80.37038f, 93.91662f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(82.59261f, 21.93521f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(65.55556f, 21.50929f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(64.81482f, 72.40746f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(25.55555f, 71.76859f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(26.11111f, 70.91676f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(25.55555f, 50.47225f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(14.62963f, 49.83338f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(14.07407f, 107.5463f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-53.33334f, 107.3334f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-53.70371f, 61.97225f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-23.14816f, 61.33338f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-23.14816f, -17.88887f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-33.88889f, -17.46296f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-34.44445f, 39.18521f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-67.40742f, 39.39817f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-66.85186f, 16.82422f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-88.70372f, 17.46296f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-90.37038f, 107.1204f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-125.9259f, 106.9075f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-125.9259f, -28.32408f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-101.6667f, -29.81479f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-101.2963f, -59.62958f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-148.5185f, -60.48141f)); 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(-8.333338f, -2.129578f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-7.037035f, -8.944366f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-2.962965f, -13.84254f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(2.777785f, -16.39817f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(8.703697f, -17.03704f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(15f, -14.05549f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(19.62962f, -8.731549f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(20.92594f, -0.851831f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(18.70371f, 6.175915f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(14.25927f, 9.58338f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(7.407404f, 11.28704f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-0.3703684f, 10.43521f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-7.777781f, 2.342676f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-8.518517f, -4.685211f)); newareas.Add(new AreaModel("lol2", new Assets.Scripts.Simulation.SMath.Polygon(area2), 10, (AreaType)1)); return(newareas.ToArray()); }
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(-48.56982f, -113.6178f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-50.97427f, -46.71875f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.1521f, -45.61297f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.633f, -114.1706f)); 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(49.53159f, -113.6178f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(48.08893f, -46.16593f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(146.6712f, -46.16593f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.1521f, -113.0648f)); newareas.Add(new AreaModel("lol2", new Assets.Scripts.Simulation.SMath.Polygon(area2), 0, (AreaType)0)); var area3 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(82.71295f, 114.7236f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(81.27029f, 101.4544f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(89.92629f, 93.71405f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(89.44542f, 74.36297f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(92.81164f, 66.62265f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(113.9708f, 56.11781f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(128.8783f, 35.10813f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(146.1904f, 32.89671f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.1521f, 114.1708f)); newareas.Add(new AreaModel("lol3", new Assets.Scripts.Simulation.SMath.Polygon(area3), 0, (AreaType)1)); var area4 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-146.6712f, 48.93031f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-125.993f, 47.82453f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-102.9103f, 62.75249f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-94.2543f, 72.70437f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-83.19385f, 83.20921f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-71.17162f, 89.29079f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-63.47739f, 99.24281f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-62.03472f, 114.1708f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.633f, 114.1708f)); newareas.Add(new AreaModel("lol4", new Assets.Scripts.Simulation.SMath.Polygon(area4), 0, (AreaType)1)); var area5 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-117.8179f, 36.76687f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-118.2988f, 14.09859f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-60.11116f, 11.33407f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-60.59206f, -4.69953f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-118.2988f, -4.14657f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-117.337f, -26.81485f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-56.74494f, -26.26203f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-48.08893f, -44.50719f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-36.54759f, -55.56485f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-30.29602f, -61.09375f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-29.81514f, -113.6178f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-14.42668f, -113.6178f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-13.94579f, -69.38703f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-2.885337f, -72.15141f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-1.923558f, -114.1706f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(15.86934f, -114.1706f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(16.35023f, -68.83407f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(28.37247f, -62.75235f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(36.54758f, -56.11781f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(44.24181f, -47.82453f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(50.49338f, -37.87251f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(54.3405f, -29.57923f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(115.4134f, -25.70907f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(116.8561f, -6.91095f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(61.55384f, -6.91095f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(61.55384f, 5.80531f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(117.8179f, 8.01687f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(119.2606f, 26.81485f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(55.30227f, 30.68515f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(48.08893f, 43.40141f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(40.87559f, 53.35343f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(25.00624f, 63.85813f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(29.33425f, 114.1708f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(11.06045f, 115.2764f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(9.617789f, 68.83407f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-3.847116f, 70.49281f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-3.847116f, 114.1708f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-22.6018f, 114.7236f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-20.19735f, 66.06969f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-33.18136f, 59.43515f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-41.83737f, 50.58905f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-51.45515f, 37.31969f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-116.8561f, 38.97843f)); newareas.Add(new AreaModel("lol5", new Assets.Scripts.Simulation.SMath.Polygon(area5), 0, (AreaType)0)); return(newareas.ToArray()); }
static TestClass() { for (int i = 0; i < BigList.Capacity; i++) { BigList.Add(i.ToString()); } #if CPP IL2CPP_Dict = new Il2CppSystem.Collections.Generic.Dictionary <string, string>(); IL2CPP_Dict.Add("key1", "value1"); IL2CPP_Dict.Add("key2", "value2"); IL2CPP_Dict.Add("key3", "value3"); IL2CPP_HashTable = new Il2CppSystem.Collections.Hashtable(); IL2CPP_HashTable.Add("key1", "value1"); IL2CPP_HashTable.Add("key2", "value2"); IL2CPP_HashTable.Add("key3", "value3"); var dict2 = new Il2CppSystem.Collections.Generic.Dictionary <string, string>(); dict2.Add("key1", "value1"); IL2CPP_IDict = dict2.TryCast <Il2CppSystem.Collections.IDictionary>(); var list = new Il2CppSystem.Collections.Generic.List <Il2CppSystem.Object>(5); list.Add("one"); list.Add("two"); IL2CPP_IList = list.TryCast <Il2CppSystem.Collections.IList>(); IL2CPP_ListString = new Il2CppSystem.Collections.Generic.List <string>(); IL2CPP_ListString.Add("hello,"); IL2CPP_ListString.Add("world!"); IL2CPP_HashSet = new Il2CppSystem.Collections.Generic.HashSet <string>(); IL2CPP_HashSet.Add("one"); IL2CPP_HashSet.Add("two"); CppBoxedDict = new Dictionary <Il2CppSystem.String, Il2CppSystem.Object>(); CppBoxedDict.Add("1", new Il2CppSystem.Int32 { m_value = 1 }.BoxIl2CppObject()); CppBoxedDict.Add("2", new Il2CppSystem.Int32 { m_value = 2 }.BoxIl2CppObject()); CppBoxedDict.Add("3", new Il2CppSystem.Int32 { m_value = 3 }.BoxIl2CppObject()); CppBoxedDict.Add("4", new Il2CppSystem.Int32 { m_value = 4 }.BoxIl2CppObject()); cppDecimal = new Il2CppSystem.Decimal(1f); cppDecimalBoxed = new Il2CppSystem.Decimal(1f).BoxIl2CppObject(); cppVector3Boxed = Vector3.down.BoxIl2CppObject(); IL2CPP_listOfBoxedObjects = new List <Il2CppSystem.Object>(); IL2CPP_listOfBoxedObjects.Add((Il2CppSystem.String) "boxedString"); IL2CPP_listOfBoxedObjects.Add(new Il2CppSystem.Int32 { m_value = 5 }.BoxIl2CppObject()); IL2CPP_listOfBoxedObjects.Add(Color.red.BoxIl2CppObject()); try { var cppType = Il2CppType.Of <CameraClearFlags>(); if (cppType != null) { var boxedEnum = Il2CppSystem.Enum.Parse(cppType, "Color"); IL2CPP_listOfBoxedObjects.Add(boxedEnum); } var structBox = Vector3.one.BoxIl2CppObject(); IL2CPP_listOfBoxedObjects.Add(structBox); } catch (Exception ex) { ExplorerCore.LogWarning($"Test fail: {ex}"); } IL2CPP_structArray = new UnhollowerBaseLib.Il2CppStructArray <int>(5); IL2CPP_structArray[0] = 0; IL2CPP_structArray[1] = 1; IL2CPP_structArray[2] = 2; IL2CPP_structArray[3] = 3; IL2CPP_structArray[4] = 4; IL2CPP_stringArray = new UnhollowerBaseLib.Il2CppStringArray(2); IL2CPP_stringArray[0] = "hello, "; IL2CPP_stringArray[1] = "world!"; IL2CPP_ReferenceArray = new UnhollowerBaseLib.Il2CppReferenceArray <Il2CppSystem.Object>(3); IL2CPP_ReferenceArray[0] = new Il2CppSystem.Int32 { m_value = 5 }.BoxIl2CppObject(); IL2CPP_ReferenceArray[1] = null; IL2CPP_ReferenceArray[2] = (Il2CppSystem.String) "whats up"; cppBoxedInt = new Il2CppSystem.Int32() { m_value = 5 }.BoxIl2CppObject(); cppInt = new Il2CppSystem.Int32 { m_value = 420 }; cppHashset = new Il2CppSystem.Collections.Hashtable(); cppHashset.Add("key1", "itemOne"); cppHashset.Add("key2", "itemTwo"); cppHashset.Add("key3", "itemThree"); #endif }
/// <summary> /// Get the TowerToSimulation for this specific Tower /// </summary> public static TowerToSimulation GetTowerSim(this Tower tower) { Il2CppSystem.Collections.Generic.List <TowerToSimulation> towerSims = InGame.instance?.bridge?.GetAllTowers(); return(towerSims.FirstOrDefault(sim => sim.tower == tower)); }
private static void CleanAvatar(VRCAvatarManager avatarManager, GameObject go) { if (!AdvancedSafetySettings.AvatarFilteringEnabled) { return; } if (AdvancedSafetySettings.AvatarFilteringOnlyInPublic && RoomManager.field_Internal_Static_ApiWorldInstance_0?.InstanceType != ApiWorldInstance.AccessType.Public) { return; } var vrcPlayer = avatarManager.field_Private_VRCPlayer_0; if (vrcPlayer == null) { return; } var userId = vrcPlayer.prop_Player_0?.prop_APIUser_0?.id ?? ""; if (!AdvancedSafetySettings.IncludeFriends && APIUser.IsFriendsWith(userId)) { return; } if (AdvancedSafetySettings.AbideByShowAvatar && IsAvatarExplicitlyShown(userId)) { return; } var start = Stopwatch.StartNew(); var scannedObjects = 0; var destroyedObjects = 0; var seenTransforms = 0; var seenPolys = 0; var seenMaterials = 0; var seenAudioSources = 0; var seenConstraints = 0; var seenClothVertices = 0; var seenColliders = 0; var seenRigidbodies = 0; var seenAnimators = 0; var seenLights = 0; var seenComponents = 0; var seenParticles = 0; var seenMeshParticleVertices = 0; var animator = go.GetComponent <Animator>(); var componentList = new Il2CppSystem.Collections.Generic.List <Component>(); var audioSourcesList = new List <AudioSource>(); var skinnedRendererListList = new List <SkinnedMeshRenderer>(); void Bfs(GameObjectWithPriorityData objWithPriority) { var obj = objWithPriority.GameObject; if (obj == null) { return; } scannedObjects++; if (animator?.IsBoneTransform(obj.transform) != true && seenTransforms++ >= AdvancedSafetySettings.MaxTransforms) { Object.DestroyImmediate(obj, true); destroyedObjects++; return; } if (objWithPriority.Depth >= AdvancedSafetySettings.MaxDepth) { Object.DestroyImmediate(obj, true); destroyedObjects++; return; } if (!AdvancedSafetySettings.AllowUiLayer && (obj.layer == 12 || obj.layer == 5)) { obj.layer = 9; } obj.GetComponents(componentList); foreach (var component in componentList) { if (component == null) { continue; } component.TryCast <AudioSource>()?.VisitAudioSource(ref scannedObjects, ref destroyedObjects, ref seenAudioSources, obj, audioSourcesList, objWithPriority.IsActiveInHierarchy); component.TryCast <IConstraint>()?.VisitConstraint(ref scannedObjects, ref destroyedObjects, ref seenConstraints, obj); component.TryCast <Cloth>()?.VisitCloth(ref scannedObjects, ref destroyedObjects, ref seenClothVertices, obj); component.TryCast <Rigidbody>()?.VisitGeneric(ref scannedObjects, ref destroyedObjects, ref seenRigidbodies, AdvancedSafetySettings.MaxRigidBodies); component.TryCast <Collider>()?.VisitCollider(ref scannedObjects, ref destroyedObjects, ref seenColliders, obj); component.TryCast <Animator>()?.VisitGeneric(ref scannedObjects, ref destroyedObjects, ref seenAnimators, AdvancedSafetySettings.MaxAnimators); component.TryCast <Light>()?.VisitGeneric(ref scannedObjects, ref destroyedObjects, ref seenLights, AdvancedSafetySettings.MaxLights); component.TryCast <Renderer>()?.VisitRenderer(ref scannedObjects, ref destroyedObjects, ref seenPolys, ref seenMaterials, obj, skinnedRendererListList); component.TryCast <ParticleSystem>()?.VisitParticleSystem(component.GetComponent <ParticleSystemRenderer>(), ref scannedObjects, ref destroyedObjects, ref seenParticles, ref seenMeshParticleVertices, obj); if (ReferenceEquals(component.TryCast <Transform>(), null)) { component.VisitGeneric(ref scannedObjects, ref destroyedObjects, ref seenComponents, AdvancedSafetySettings.MaxComponents); } } foreach (var child in obj.transform) { ourBfsQueue.Enqueue(new GameObjectWithPriorityData(child.Cast <Transform>().gameObject, objWithPriority.Depth + 1, objWithPriority.IsActiveInHierarchy)); } } Bfs(new GameObjectWithPriorityData(go, 0, true, true)); while (ourBfsQueue.Count > 0) { Bfs(ourBfsQueue.Dequeue()); } ComponentAdjustment.PostprocessSkinnedRenderers(skinnedRendererListList); if (!AdvancedSafetySettings.AllowSpawnSounds) { MelonCoroutines.Start(CheckSpawnSounds(go, audioSourcesList)); } if (MelonDebug.IsEnabled() || destroyedObjects > 100) { MelonLogger.Msg($"Cleaned avatar ({avatarManager.prop_ApiAvatar_0?.name}) used by \"{vrcPlayer.prop_VRCPlayerApi_0?.displayName}\" in {start.ElapsedMilliseconds}ms, scanned {scannedObjects} things, destroyed {destroyedObjects} things"); } }
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(151.2963f, 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(-12.5926f, -105.4166f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-46.66667f, -102.2223f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-69.62963f, -106.6944f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-70.74075f, -99.45366f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-76.85186f, -99.45366f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-81.11111f, -102.4351f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-114.4445f, -96.47225f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-129.4445f, -80.5f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-148.5185f, -3.194507f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-148.3333f, 20.23155f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-141.4815f, 61.12042f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-129.2593f, 101.7963f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-89.07408f, 115f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-13.14815f, 115f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-12.96297f, 87.31479f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-25.37037f, 88.59267f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-37.59259f, 82.41676f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-39.81482f, 76.87958f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-73.88889f, 75.81479f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-89.44446f, 86.88887f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-107.7778f, 87.95366f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-126.4815f, 71.34254f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-130.7408f, 58.9907f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-130.7408f, 42.37972f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-125.5556f, 30.2407f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-120f, 19.37958f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-117.037f, -21.93521f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-125.3704f, -34.07409f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-127.963f, -45.14817f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-128.7037f, -60.6945f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-122.963f, -74.75f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-113.7037f, -86.25f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-105.5556f, -90.72225f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-92.03704f, -92.21296f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-86.11111f, -90.50929f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-74.62964f, -82.41662f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-55.55556f, -84.97211f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-30.37037f, -87.52775f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-9.444444f, -88.59254f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-12.5926f, -104.5648f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-46.48149f, -102.4351f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-69.81483f, -106.4814f)); newareas.Add(new AreaModel("lol1", new Assets.Scripts.Simulation.SMath.Polygon(area1), 10, (AreaType)1)); var area2 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(53.33334f, -109.463f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(70.74075f, -106.4814f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(102.5926f, -85.61112f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(124.2593f, -49.83338f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(128.3333f, 15.7593f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(120f, 66.65746f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(114.6296f, 72.1945f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(112.7778f, 90.50929f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(95.74075f, 115f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(32.03704f, 115f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(30.37037f, 86.03704f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(39.81482f, 88.16662f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(52.22222f, 83.05549f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(58.70371f, 76.45366f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(72.03704f, 84.12042f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(90.55557f, 85.18521f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(98.88889f, 79.22225f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(108.3333f, 68.36112f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(112.7778f, 56.43521f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(113.3333f, 41.52774f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(110.5556f, 29.38887f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(102.0371f, 18.31479f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(102.5926f, 12.35183f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(110f, 7.453802f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(117.4074f, -1.703662f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(122.5926f, -16.61113f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(121.4815f, -29.60183f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(115.9259f, -44.5093f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(110.3704f, -52.60183f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(98.70371f, -58.56479f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(84.81482f, -60.26845f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(78.88889f, -63.88887f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(68.51852f, -73.04633f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(64.07408f, -77.09254f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(65.55556f, -81.35183f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(61.11112f, -95.40733f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(56.66668f, -102.4351f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(54.62963f, -109.037f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(72.03704f, -107.1204f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(103.1482f, -84.97211f)); newareas.Add(new AreaModel("lol2", new Assets.Scripts.Simulation.SMath.Polygon(area2), 10, (AreaType)1)); var area4 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-0.3703684f, -114.787f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(3.333342f, -97.96296f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(11.48148f, -111.8055f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(22.96297f, -114.787f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(41.2963f, -114.787f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(51.85186f, -111.8055f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(56.48148f, -106.2684f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(63.14815f, -95.40733f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(66.66667f, -80.71296f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(65.37038f, -75.17591f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(79.25927f, -64.7407f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(80.92594f, -62.82408f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(93.33334f, -63.25f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(111.1111f, -53.45366f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(116.1111f, -45.14817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(122.0371f, -30.66662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(121.6667f, -15.7593f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(117.4074f, -2.768451f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(109.4445f, 6.814789f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(102.5926f, 13.41676f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(102.5926f, 16.61113f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(111.4815f, 28.32408f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(114.0741f, 40.88887f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(115f, 54.51859f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(109.4445f, 71.55549f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(100.5556f, 81.9907f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(90.55557f, 87.10183f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(79.25927f, 87.7407f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(69.07407f, 85.39817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(59.25927f, 79.86112f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(58.14815f, 76.24084f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(52.22222f, 83.6945f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(40.74074f, 88.59267f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(31.11111f, 85.61112f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(30.74075f, 115f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(21.11111f, 115f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(20.55556f, 81.56479f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(21.66667f, 70.4907f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(31.2963f, 67.29633f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(43.33334f, 63.46296f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(49.62963f, 55.37042f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(61.48149f, 54.30549f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(67.40741f, 54.51859f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(72.96297f, 60.6945f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(79.25927f, 63.46296f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(90.1852f, 62.39817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(94.44445f, 56.86113f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(96.11112f, 47.49084f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(94.07409f, 38.7593f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(87.77779f, 33.64817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(85.37038f, 27.68521f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(85.00002f, 17.67591f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(85.55556f, 5.324084f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(87.40742f, -2.981409f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(92.96297f, -8.092535f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(100.9259f, -14.90746f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(104.8148f, -25.98155f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(102.2222f, -33.86113f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(96.11112f, -37.48155f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(87.03705f, -39.18521f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(77.40742f, -39.61113f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(45.92593f, -66.65733f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(45.92593f, -71.34254f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(46.29631f, -83.05549f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(45.1852f, -87.31479f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(42.59259f, -89.87042f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(39.81482f, -94.55549f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(31.2963f, -97.32408f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(22.40741f, -92.63887f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(18.88889f, -83.90733f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(15.55556f, -72.62028f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-79.07409f, -61.12042f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-87.03705f, -68.78704f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-93.33334f, -70.70366f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-101.4815f, -69f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-109.6296f, -63.25f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-111.1111f, -52.81479f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-105.7408f, -44.08324f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-102.0371f, -37.05549f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-104.4445f, 30.66662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-111.2963f, 38.12042f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-114.2593f, 47.06479f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-113.1482f, 59.62971f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-108.7037f, 63.67591f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-101.2963f, 67.93521f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-90.37038f, 68.57408f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-82.03705f, 63.03704f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-80.18519f, 57.28704f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-32.03704f, 56.22225f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-27.22223f, 63.03704f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-24.07408f, 65.16662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-16.85186f, 67.29633f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-6.481478f, 68.36112f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-4.629627f, 69.42591f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-3.703702f, 74.32408f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-3.888891f, 85.39817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-2.962965f, 101.1575f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-2.592597f, 113.9352f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-2.222219f, 115f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-13.51852f, 115f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-13.14815f, 86.88887f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-25.00001f, 88.37971f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-35.55556f, 81.9907f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-40f, 76.45366f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-62.96297f, 76.66662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-73.33334f, 76.66662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-79.81483f, 83.90746f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-90.92593f, 88.80549f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-101.4815f, 89.4445f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-111.1111f, 88.59267f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-116.6667f, 85.39817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-124.0741f, 79.86112f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-132.4074f, 71.12971f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-134.6296f, 63.46296f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-133.7037f, 57.07408f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-132.2222f, 45.36113f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-131.2963f, 40.46296f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-128.7037f, 30.66662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-125.3704f, 25.12958f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-119.8148f, 17.88887f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-116.2963f, -22.14817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-119.0741f, -23.85183f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-122.2222f, -26.40732f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-125f, -33.64803f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-127.2222f, -40.25f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-128.8889f, -50.2593f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-130f, -56.86113f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-128.7037f, -67.72225f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-124.0741f, -73.25929f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-117.7778f, -83.26845f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-109.8148f, -92f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-105.3704f, -91.78704f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-92.5926f, -93.27775f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-86.11111f, -91.36112f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-79.25927f, -88.80563f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-74.62964f, -85.18521f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-67.59261f, -84.54633f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-51.85185f, -84.75929f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-47.59259f, -85.39817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-44.07408f, -86.46296f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-30.55556f, -87.10183f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-21.66667f, -86.67591f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-10f, -87.95366f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-5.000005f, -89.01845f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-11.85185f, -114.787f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-1.296294f, -114.787f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(6.481487f, -83.69437f)); newareas.Add(new AreaModel("lol4", new Assets.Scripts.Simulation.SMath.Polygon(area4), 10, (AreaType)0)); var area5 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-2.592597f, 81.9907f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(2.592588f, 77.73154f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(15.74074f, 76.87958f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(20.92594f, 81.9907f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(20.92594f, 72.40746f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(18.33333f, 68.36112f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(2.037031f, 68.78704f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-2.407408f, 73.25929f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(-2.03704f, 81.35197f)); area5.Add(new Assets.Scripts.Simulation.SMath.Vector2(2.592588f, 77.73154f)); newareas.Add(new AreaModel("lol5", new Assets.Scripts.Simulation.SMath.Polygon(area5), 10, (AreaType)0)); var area6 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-85.00001f, -36.20366f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-80.74075f, -43.87028f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(19.81482f, -56.22211f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(34.07407f, -53.87958f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(67.40741f, -24.70366f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(72.40742f, -1.703662f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(72.96297f, 28.11113f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(63.51852f, 38.12042f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-81.2963f, 41.31493f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-89.62964f, 30.66662f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-85.92593f, -35.56479f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-80f, -33.43521f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-77.40742f, -37.69437f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(20.18518f, -50.0462f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(30.18519f, -48.34253f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(63.51852f, -19.59254f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(66.48149f, -11.28704f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(67.03705f, 26.19451f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(61.11112f, 31.30549f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-78.33334f, 34.92591f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-83.70371f, 27.68521f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-80f, -32.58324f)); area6.Add(new Assets.Scripts.Simulation.SMath.Vector2(-77.03704f, -37.69437f)); newareas.Add(new AreaModel("lol6", new Assets.Scripts.Simulation.SMath.Polygon(area6), 10, (AreaType)0)); return(newareas.ToArray()); }
public static Il2CppReferenceArray <AreaModel> areas() { List <AreaModel> newareas = new List <AreaModel>(); var area0 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); newareas.Add(new AreaModel("lol0", new Assets.Scripts.Simulation.SMath.Polygon(area0), 10, (AreaType)0)); var area1 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.963f, -97.53704f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.5926f, -95.83338f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.037f, 93.4907f)); area1.Add(new Assets.Scripts.Simulation.SMath.Vector2(-148.3333f, 94.55563f)); newareas.Add(new AreaModel("lol1", new Assets.Scripts.Simulation.SMath.Polygon(area1), 10, (AreaType)2)); var area2 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.7778f, -114.787f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.7778f, -97.75f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.4074f, -96.25916f)); area2.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.2222f, -114.787f)); 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(-147.7778f, 94.55563f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(-147.4074f, 115f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.037f, 115f)); area3.Add(new Assets.Scripts.Simulation.SMath.Vector2(147.7778f, 95.40746f)); newareas.Add(new AreaModel("lol3", new Assets.Scripts.Simulation.SMath.Polygon(area3), 10, (AreaType)1)); var area4 = new Il2CppSystem.Collections.Generic.List <Assets.Scripts.Simulation.SMath.Vector2>(); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-154.6297f, -25.34254f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-136.4815f, -26.19437f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-135.7408f, -62.82408f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-97.22224f, -61.97225f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-96.11112f, -26.19437f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-70.37038f, -26.19437f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-69.81483f, -60.90746f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-30.92593f, -59.41662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-30f, -25.55549f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-3.148145f, -24.06479f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-1.851851f, -60.6945f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(36.2963f, -58.56479f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(37.03704f, -25.55549f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(61.85185f, -25.34254f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(62.40741f, -63.03704f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(100.9259f, -60.90746f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(102.963f, -27.25929f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(133.7037f, -24.06479f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(138.1481f, 17.67591f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(102.2222f, 18.95366f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(102.5926f, 54.73155f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(63.7037f, 55.58338f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(64.07408f, 21.08338f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(36.48148f, 20.23155f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(37.03704f, 55.79634f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-3.148145f, 56.64817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-2.407408f, 20.87042f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-29.25926f, 19.37958f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-31.85185f, 57.07408f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-69.62963f, 57.71296f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-69.44446f, 21.50929f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-93.14816f, 22.14817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-97.03705f, 57.92591f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-135.9259f, 59.41662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-135.5556f, 24.06479f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-154.6297f, 21.72225f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-154.6297f, 8.092535f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-129.4445f, 10.86113f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-128.3333f, 47.27774f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-103.1482f, 45.78704f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-105f, 10.22225f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-62.5926f, 9.796338f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-62.77779f, 47.27774f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-37.59259f, 46.85183f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-37.22223f, 7.66662f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(4.999996f, 9.370422f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(3.703702f, 44.93521f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(28.7037f, 46.63887f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(27.77778f, 8.731549f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(70.00002f, 10.64817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(69.62963f, 45.14817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(91.48148f, 46.42591f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(91.48148f, 8.944507f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(127.963f, 10.64817f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(126.8519f, -12.77775f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(96.11112f, -14.05549f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(95.92594f, -49.62042f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(71.85186f, -50.47225f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(71.2963f, -14.48141f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(29.25926f, -15.12028f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(29.44445f, -51.75f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(5.92593f, -50.68521f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(4.814816f, -16.61113f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-37.22223f, -15.12028f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-37.40741f, -53.2407f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-61.29631f, -52.81479f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-63.14816f, -16.82408f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-103.7037f, -14.90746f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-104.6296f, -51.32409f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-126.2963f, -51.32409f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-127.2222f, -16.18507f)); area4.Add(new Assets.Scripts.Simulation.SMath.Vector2(-154.6297f, -15.12028f)); newareas.Add(new AreaModel("lol4", new Assets.Scripts.Simulation.SMath.Polygon(area4), 10, (AreaType)0)); return(newareas.ToArray()); }
private static void GetRandomSong() { songSelect = GameObject.FindObjectOfType <SongSelect>(); songs = songSelect.songSelectItems.mItems; int maxLength = songs.Count - 1; if (!availableSongListsSetup) { availableSongListsSetup = true; for (int i = 0; i < mainSongCount; i++) { availableMainSongs.Add(i); } for (int i = mainSongCount; i < maxLength; i++) { availableExtrasSongs.Add(i); } for (int i = 0; i < maxLength; i++) { availableSongs.Add(i); } } SongSelect.Filter filter = songSelect.GetListFilter(); var rand = new System.Random(); int index; if (filter == SongSelect.Filter.All) { index = availableSongs[rand.Next(0, availableSongs.Count - 1)]; } else if (filter == SongSelect.Filter.Main) { index = availableMainSongs[rand.Next(0, availableMainSongs.Count - 1)]; if (availableMainSongs.Count > 0) { availableMainSongs.Remove(index); } } else { index = availableExtrasSongs[rand.Next(0, availableExtrasSongs.Count - 1)]; if (availableExtrasSongs.Count > 0) { availableExtrasSongs.Remove(index); } } songs[index].OnSelect(); lastPickedSongs.Add(index); if (availableSongs.Count > 0) { availableSongs.Remove(index); } if (lastPickedSongs.Count > randomSongBagSize) { int oldestIndex = lastPickedSongs[0]; lastPickedSongs.Remove(oldestIndex); availableSongs.Add(oldestIndex); if (oldestIndex < 33) { availableMainSongs.Add(index); } else { availableExtrasSongs.Add(index); } } }
private static void AddButtons(OptionsMenu optionsMenu) { /*var header = optionsMenu.AddHeader(0, "Playlists"); * optionsMenu.scrollable.AddRow(header);*/ OptionsMenuButton entry = null; foreach (string playlist in PlaylistManager.playlists.Keys) { var name = optionsMenu.AddTextBlock(0, playlist); var tmp = name.transform.GetChild(0).GetComponent <TextMeshPro>(); tmp.fontSizeMax = 32; tmp.fontSizeMin = 8; optionsMenu.scrollable.AddRow(name.gameObject); OptionsMenuButton edit = null; if (PlaylistManager.state == PlaylistManager.PlaylistState.Selecting) { edit = optionsMenu.AddButton(0, "Edit", new Action(() => { PlaylistManager.state = PlaylistManager.PlaylistState.Editing; PlaylistManager.SetPlaylistToEdit(playlist); OptionsMenu.I.ShowPage(OptionsMenu.Page.Misc); SelectPlaylistButton.UpdatePlaylistButton(); }), null, "Edit this playlist", optionsMenu.buttonPrefab); } string txt = PlaylistManager.state == PlaylistManager.PlaylistState.Selecting ? "Select" : "Add"; entry = optionsMenu.AddButton(1, txt, new Action(() => { if (PlaylistManager.state == PlaylistManager.PlaylistState.Selecting) { PlaylistManager.SelectPlaylist(playlist); } else { PlaylistManager.AddSongToPlaylist(playlist, AddPlaylistButton.songToAdd); MenuState.I.GoToLaunchPage(); return; } PlaylistManager.state = PlaylistManager.PlaylistState.None; FilterPanel.ResetFilterState(); MenuState.I.GoToSongPage(); SelectPlaylistButton.UpdatePlaylistButton(); }), null, "Select this playlist", optionsMenu.buttonPrefab); Il2CppSystem.Collections.Generic.List <GameObject> row = new Il2CppSystem.Collections.Generic.List <GameObject>(); //row.Add(name.gameObject); if (PlaylistManager.state == PlaylistManager.PlaylistState.Selecting) { row.Add(edit.gameObject); } row.Add(entry.gameObject); optionsMenu.scrollable.AddRow(row); } var header = optionsMenu.AddHeader(0, "Create"); optionsMenu.scrollable.AddRow(header); entry = optionsMenu.AddButton(0, "Create new Playlist", new Action(() => { MelonLoader.MelonLogger.Msg("Create button shot"); PlaylistManager.state = PlaylistManager.PlaylistState.Creating; OptionsMenu.I.ShowPage(OptionsMenu.Page.Misc); MenuState.I.GoToSettingsPage(); SelectPlaylistButton.UpdatePlaylistButton(); }), null, "Create a new playlist", optionsMenu.buttonPrefab); optionsMenu.scrollable.AddRow(entry.gameObject); }