2273 lines
68 KiB
C#
2273 lines
68 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000041 RID: 65
|
|
public class DiscGolfGizmoManager : MonoBehaviour
|
|
{
|
|
// Token: 0x06000D80 RID: 3456 RVA: 0x00046BDC File Offset: 0x00044DDC
|
|
private bool LLEGNGGLNID(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return true;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 1074f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 1112f);
|
|
BPDEOKABNDA = this.HJDCOLHKMLK(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06000D81 RID: 3457 RVA: 0x00046C80 File Offset: 0x00044E80
|
|
public void HDCAMLJLKHC()
|
|
{
|
|
for (int i = 1; i < this.NKBDEFEFFKA.Length; i += 0)
|
|
{
|
|
this.NKBDEFEFFKA[i].BOIIFGPAHMC(true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D82 RID: 3458 RVA: 0x00046CB4 File Offset: 0x00044EB4
|
|
public void FDBHMLOEHCE()
|
|
{
|
|
this.LFOOJNHPPNF = global::UnityEngine.Object.FindObjectsOfType<DiscGolfGizmoMotion>();
|
|
this.PIOOPLNPNPN = global::UnityEngine.Object.FindObjectsOfType<DiscGolfDisc>();
|
|
this.CDJHHDOLNGE();
|
|
}
|
|
|
|
// Token: 0x06000D83 RID: 3459 RVA: 0x00046CD4 File Offset: 0x00044ED4
|
|
public void DHAEEPCMCMI()
|
|
{
|
|
this.LFOOJNHPPNF = global::UnityEngine.Object.FindObjectsOfType<DiscGolfGizmoMotion>();
|
|
this.PIOOPLNPNPN = global::UnityEngine.Object.FindObjectsOfType<DiscGolfDisc>();
|
|
this.KFGLMPBJCPC();
|
|
}
|
|
|
|
// Token: 0x06000D84 RID: 3460 RVA: 0x00046CF4 File Offset: 0x00044EF4
|
|
private int MKGIHFLIFDG(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 0 || EKJMHDGEIHJ < 0 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000D85 RID: 3461 RVA: 0x00046D28 File Offset: 0x00044F28
|
|
private void BEHNBBLPHKN()
|
|
{
|
|
if (this.LFOOJNHPPNF.Length == 0)
|
|
{
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[0];
|
|
return;
|
|
}
|
|
this.NJDNIIGDEPA = (this.DMCFIDDMGON = this.LFOOJNHPPNF[0].transform.position.x);
|
|
this.ELDAAGCLCEO = (this.LBJMOFENNOL = this.LFOOJNHPPNF[1].transform.position.z);
|
|
for (int i = 1; i < this.LFOOJNHPPNF.Length; i++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion = this.LFOOJNHPPNF[i];
|
|
this.NJDNIIGDEPA = Mathf.Min(this.NJDNIIGDEPA, discGolfGizmoMotion.transform.position.x);
|
|
this.ELDAAGCLCEO = Mathf.Min(this.ELDAAGCLCEO, discGolfGizmoMotion.transform.position.z);
|
|
this.DMCFIDDMGON = Mathf.Max(this.DMCFIDDMGON, discGolfGizmoMotion.transform.position.x);
|
|
this.LBJMOFENNOL = Mathf.Max(this.LBJMOFENNOL, discGolfGizmoMotion.transform.position.z);
|
|
}
|
|
this.NJDNIIGDEPA -= 1021f;
|
|
this.ELDAAGCLCEO -= 452f;
|
|
this.DMCFIDDMGON += 1618f;
|
|
this.LBJMOFENNOL += 1391f;
|
|
this.HEDJMCGJLLN = Mathf.CeilToInt((this.DMCFIDDMGON - this.NJDNIIGDEPA) / 1503f);
|
|
this.GDKGGLCIEBI = Mathf.CeilToInt((this.LBJMOFENNOL - this.ELDAAGCLCEO) / 1377f);
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[this.GDKGGLCIEBI * this.HEDJMCGJLLN];
|
|
for (int j = 1; j < this.GDKGGLCIEBI; j += 0)
|
|
{
|
|
for (int k = 0; k < this.HEDJMCGJLLN; k++)
|
|
{
|
|
int num = this.GBOPNODGODE(k, j);
|
|
ONEJGMHBDKD onejgmhbdkd = new ONEJGMHBDKD();
|
|
this.NKBDEFEFFKA[num] = onejgmhbdkd;
|
|
}
|
|
}
|
|
for (int l = 1; l < this.LFOOJNHPPNF.Length; l += 0)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion2 = this.LFOOJNHPPNF[l];
|
|
int num2;
|
|
int num3;
|
|
int num4;
|
|
this.FDKLDEBHMMJ(discGolfGizmoMotion2.transform.position, out num2, out num3, out num4);
|
|
this.NKBDEFEFFKA[num2].CHEEDPGECJF(discGolfGizmoMotion2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D86 RID: 3462 RVA: 0x00046FA0 File Offset: 0x000451A0
|
|
public void FLIBGBGHKCG()
|
|
{
|
|
for (int i = 1; i < this.NKBDEFEFFKA.Length; i++)
|
|
{
|
|
this.NKBDEFEFFKA[i].HPLDFPIBOMK(true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D87 RID: 3463 RVA: 0x00046FD4 File Offset: 0x000451D4
|
|
public void GMDBGNMCONK()
|
|
{
|
|
this.LFOOJNHPPNF = global::UnityEngine.Object.FindObjectsOfType<DiscGolfGizmoMotion>();
|
|
this.PIOOPLNPNPN = global::UnityEngine.Object.FindObjectsOfType<DiscGolfDisc>();
|
|
this.IHPIMJCCPFE();
|
|
}
|
|
|
|
// Token: 0x06000D88 RID: 3464 RVA: 0x00046FF4 File Offset: 0x000451F4
|
|
public void CAMGAFPKAMM()
|
|
{
|
|
for (int i = 1; i < this.NKBDEFEFFKA.Length; i++)
|
|
{
|
|
this.NKBDEFEFFKA[i].CNGBNIGAMFD(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D89 RID: 3465 RVA: 0x00047028 File Offset: 0x00045228
|
|
private int CGFOOHEJFNJ(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 1 || EKJMHDGEIHJ < 0 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000D8A RID: 3466 RVA: 0x0004705C File Offset: 0x0004525C
|
|
public void ODEGJOENAGN()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 1; i < this.PIOOPLNPNPN.Length; i++)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.BKDFLNGCINH.BOLBONELAEF.CCCMCPEFAAC() && this.IGOBBJIKCPM(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.PFIJMDPNCBP(num2 - 1, num3 + 1);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.NEOMHIFIIJP(num2, num3 + 1);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.JFEHPMENKBI(num2 + 1, num3 + 1);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.CGFOOHEJFNJ(num2 - 0, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.CGFOOHEJFNJ(num2 + 0, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.CGFOOHEJFNJ(num2 - 0, num3 - 1);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.FPBHBMNDINP(num2, num3 - 1);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.NBCOIFPAOPM(num2 + 0, num3 - 0);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].HPLDFPIBOMK(true);
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].HPLDFPIBOMK(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D8B RID: 3467 RVA: 0x000472E8 File Offset: 0x000454E8
|
|
private void PDDALHFKNGJ()
|
|
{
|
|
if (this.LFOOJNHPPNF.Length == 0)
|
|
{
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[1];
|
|
return;
|
|
}
|
|
this.NJDNIIGDEPA = (this.DMCFIDDMGON = this.LFOOJNHPPNF[1].transform.position.x);
|
|
this.ELDAAGCLCEO = (this.LBJMOFENNOL = this.LFOOJNHPPNF[0].transform.position.z);
|
|
for (int i = 1; i < this.LFOOJNHPPNF.Length; i++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion = this.LFOOJNHPPNF[i];
|
|
this.NJDNIIGDEPA = Mathf.Min(this.NJDNIIGDEPA, discGolfGizmoMotion.transform.position.x);
|
|
this.ELDAAGCLCEO = Mathf.Min(this.ELDAAGCLCEO, discGolfGizmoMotion.transform.position.z);
|
|
this.DMCFIDDMGON = Mathf.Max(this.DMCFIDDMGON, discGolfGizmoMotion.transform.position.x);
|
|
this.LBJMOFENNOL = Mathf.Max(this.LBJMOFENNOL, discGolfGizmoMotion.transform.position.z);
|
|
}
|
|
this.NJDNIIGDEPA -= 1428f;
|
|
this.ELDAAGCLCEO -= 1163f;
|
|
this.DMCFIDDMGON += 460f;
|
|
this.LBJMOFENNOL += 391f;
|
|
this.HEDJMCGJLLN = Mathf.CeilToInt((this.DMCFIDDMGON - this.NJDNIIGDEPA) / 1768f);
|
|
this.GDKGGLCIEBI = Mathf.CeilToInt((this.LBJMOFENNOL - this.ELDAAGCLCEO) / 688f);
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[this.GDKGGLCIEBI * this.HEDJMCGJLLN];
|
|
for (int j = 0; j < this.GDKGGLCIEBI; j++)
|
|
{
|
|
for (int k = 1; k < this.HEDJMCGJLLN; k += 0)
|
|
{
|
|
int num = this.KDCAIEAAKEB(k, j);
|
|
ONEJGMHBDKD onejgmhbdkd = new ONEJGMHBDKD();
|
|
this.NKBDEFEFFKA[num] = onejgmhbdkd;
|
|
}
|
|
}
|
|
for (int l = 0; l < this.LFOOJNHPPNF.Length; l++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion2 = this.LFOOJNHPPNF[l];
|
|
int num2;
|
|
int num3;
|
|
int num4;
|
|
this.IGOBBJIKCPM(discGolfGizmoMotion2.transform.position, out num2, out num3, out num4);
|
|
this.NKBDEFEFFKA[num2].MFBGJGBHABJ(discGolfGizmoMotion2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D8C RID: 3468 RVA: 0x00047560 File Offset: 0x00045760
|
|
private int HJDCOLHKMLK(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 1 || EKJMHDGEIHJ < 1 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000D8D RID: 3469 RVA: 0x00047594 File Offset: 0x00045794
|
|
public void KOAENLLIKMP()
|
|
{
|
|
for (int i = 1; i < this.NKBDEFEFFKA.Length; i++)
|
|
{
|
|
this.NKBDEFEFFKA[i].ACBKNECAIAN = false;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D8E RID: 3470 RVA: 0x000475C8 File Offset: 0x000457C8
|
|
private bool IGOBBJIKCPM(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return false;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 759f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 353f);
|
|
BPDEOKABNDA = this.PFIJMDPNCBP(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06000D8F RID: 3471 RVA: 0x0004766C File Offset: 0x0004586C
|
|
private int LJDGAJBHCKI(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 0 || EKJMHDGEIHJ < 0 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000D90 RID: 3472 RVA: 0x000476A0 File Offset: 0x000458A0
|
|
public void KOKOKCHBFPP()
|
|
{
|
|
for (int i = 1; i < this.NKBDEFEFFKA.Length; i++)
|
|
{
|
|
this.NKBDEFEFFKA[i].FKCENCALCKG(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D91 RID: 3473 RVA: 0x000476D4 File Offset: 0x000458D4
|
|
public void Awake()
|
|
{
|
|
this.LFOOJNHPPNF = global::UnityEngine.Object.FindObjectsOfType<DiscGolfGizmoMotion>();
|
|
this.PIOOPLNPNPN = global::UnityEngine.Object.FindObjectsOfType<DiscGolfDisc>();
|
|
this.IHPIMJCCPFE();
|
|
}
|
|
|
|
// Token: 0x06000D92 RID: 3474 RVA: 0x000476F4 File Offset: 0x000458F4
|
|
public void Update()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 0; i < this.PIOOPLNPNPN.Length; i++)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.BKDFLNGCINH.BOLBONELAEF.IsSleeping() && this.IFGODHIELGO(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.MKGIHFLIFDG(num2 - 1, num3 + 1);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.MKGIHFLIFDG(num2, num3 + 1);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.MKGIHFLIFDG(num2 + 1, num3 + 1);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.MKGIHFLIFDG(num2 - 1, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.MKGIHFLIFDG(num2 + 1, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.MKGIHFLIFDG(num2 - 1, num3 - 1);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.MKGIHFLIFDG(num2, num3 - 1);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.MKGIHFLIFDG(num2 + 1, num3 - 1);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].ACBKNECAIAN = false;
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].ACBKNECAIAN = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D93 RID: 3475 RVA: 0x00047980 File Offset: 0x00045B80
|
|
public void MNONJPCDMPB()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 0; i < this.PIOOPLNPNPN.Length; i += 0)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.JLGBKELAENA().BOLBONELAEF.CCCMCPEFAAC() && this.JMBPDOCGBMN(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.JFEHPMENKBI(num2 - 0, num3 + 1);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.HJDCOLHKMLK(num2, num3 + 1);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.NBCOIFPAOPM(num2 + 1, num3 + 0);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.DAMLAHODPKP(num2 - 1, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.CGFOOHEJFNJ(num2 + 0, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.DAMLAHODPKP(num2 - 0, num3 - 1);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.HJDCOLHKMLK(num2, num3 - 1);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.OFIFDOJJKAG(num2 + 0, num3 - 0);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].ADLENBPOBGC(false);
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].FKCENCALCKG(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D94 RID: 3476 RVA: 0x00047C0C File Offset: 0x00045E0C
|
|
public void ACNKPEFNLFO()
|
|
{
|
|
for (int i = 0; i < this.NKBDEFEFFKA.Length; i += 0)
|
|
{
|
|
this.NKBDEFEFFKA[i].FKCENCALCKG(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D95 RID: 3477 RVA: 0x00047C40 File Offset: 0x00045E40
|
|
public void JGEPNJDKKKI()
|
|
{
|
|
for (int i = 1; i < this.NKBDEFEFFKA.Length; i++)
|
|
{
|
|
this.NKBDEFEFFKA[i].CNGBNIGAMFD(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D96 RID: 3478 RVA: 0x00047C74 File Offset: 0x00045E74
|
|
public void DKDGOJGKHDM()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 1; i < this.PIOOPLNPNPN.Length; i++)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.BKDFLNGCINH.BOLBONELAEF.IsSleeping() && this.IGOBBJIKCPM(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.MKGIHFLIFDG(num2 - 1, num3 + 1);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.KDCAIEAAKEB(num2, num3 + 0);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.OFIFDOJJKAG(num2 + 1, num3 + 1);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.MKGIHFLIFDG(num2 - 0, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.NEOMHIFIIJP(num2 + 0, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.IPHMAFIHKDO(num2 - 0, num3 - 0);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.HJDCOLHKMLK(num2, num3 - 1);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.PFIJMDPNCBP(num2 + 1, num3 - 1);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].NLDIEFFIJLO(true);
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].NAHINAJJHDL(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D97 RID: 3479 RVA: 0x00047F00 File Offset: 0x00046100
|
|
private void IHPIMJCCPFE()
|
|
{
|
|
if (this.LFOOJNHPPNF.Length == 0)
|
|
{
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[0];
|
|
return;
|
|
}
|
|
this.NJDNIIGDEPA = (this.DMCFIDDMGON = this.LFOOJNHPPNF[0].transform.position.x);
|
|
this.ELDAAGCLCEO = (this.LBJMOFENNOL = this.LFOOJNHPPNF[0].transform.position.z);
|
|
for (int i = 1; i < this.LFOOJNHPPNF.Length; i++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion = this.LFOOJNHPPNF[i];
|
|
this.NJDNIIGDEPA = Mathf.Min(this.NJDNIIGDEPA, discGolfGizmoMotion.transform.position.x);
|
|
this.ELDAAGCLCEO = Mathf.Min(this.ELDAAGCLCEO, discGolfGizmoMotion.transform.position.z);
|
|
this.DMCFIDDMGON = Mathf.Max(this.DMCFIDDMGON, discGolfGizmoMotion.transform.position.x);
|
|
this.LBJMOFENNOL = Mathf.Max(this.LBJMOFENNOL, discGolfGizmoMotion.transform.position.z);
|
|
}
|
|
this.NJDNIIGDEPA -= 10f;
|
|
this.ELDAAGCLCEO -= 10f;
|
|
this.DMCFIDDMGON += 10f;
|
|
this.LBJMOFENNOL += 10f;
|
|
this.HEDJMCGJLLN = Mathf.CeilToInt((this.DMCFIDDMGON - this.NJDNIIGDEPA) / 10f);
|
|
this.GDKGGLCIEBI = Mathf.CeilToInt((this.LBJMOFENNOL - this.ELDAAGCLCEO) / 10f);
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[this.GDKGGLCIEBI * this.HEDJMCGJLLN];
|
|
for (int j = 0; j < this.GDKGGLCIEBI; j++)
|
|
{
|
|
for (int k = 0; k < this.HEDJMCGJLLN; k++)
|
|
{
|
|
int num = this.MKGIHFLIFDG(k, j);
|
|
ONEJGMHBDKD onejgmhbdkd = new ONEJGMHBDKD();
|
|
this.NKBDEFEFFKA[num] = onejgmhbdkd;
|
|
}
|
|
}
|
|
for (int l = 0; l < this.LFOOJNHPPNF.Length; l++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion2 = this.LFOOJNHPPNF[l];
|
|
int num2;
|
|
int num3;
|
|
int num4;
|
|
this.IFGODHIELGO(discGolfGizmoMotion2.transform.position, out num2, out num3, out num4);
|
|
this.NKBDEFEFFKA[num2].LMAKLEFHLGE(discGolfGizmoMotion2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D98 RID: 3480 RVA: 0x00048178 File Offset: 0x00046378
|
|
public void MELFNMPLBAK()
|
|
{
|
|
this.LFOOJNHPPNF = global::UnityEngine.Object.FindObjectsOfType<DiscGolfGizmoMotion>();
|
|
this.PIOOPLNPNPN = global::UnityEngine.Object.FindObjectsOfType<DiscGolfDisc>();
|
|
this.LKEBBLIEAIJ();
|
|
}
|
|
|
|
// Token: 0x06000D99 RID: 3481 RVA: 0x00048198 File Offset: 0x00046398
|
|
public void PEILEFHDJDO()
|
|
{
|
|
for (int i = 1; i < this.NKBDEFEFFKA.Length; i++)
|
|
{
|
|
this.NKBDEFEFFKA[i].AHANMIACGMO(true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D9A RID: 3482 RVA: 0x000481CC File Offset: 0x000463CC
|
|
private bool FDKLDEBHMMJ(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return false;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 1553f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 1679f);
|
|
BPDEOKABNDA = this.CGFOOHEJFNJ(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06000D9B RID: 3483 RVA: 0x00048270 File Offset: 0x00046470
|
|
private void LKEBBLIEAIJ()
|
|
{
|
|
if (this.LFOOJNHPPNF.Length == 0)
|
|
{
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[0];
|
|
return;
|
|
}
|
|
this.NJDNIIGDEPA = (this.DMCFIDDMGON = this.LFOOJNHPPNF[0].transform.position.x);
|
|
this.ELDAAGCLCEO = (this.LBJMOFENNOL = this.LFOOJNHPPNF[0].transform.position.z);
|
|
for (int i = 1; i < this.LFOOJNHPPNF.Length; i += 0)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion = this.LFOOJNHPPNF[i];
|
|
this.NJDNIIGDEPA = Mathf.Min(this.NJDNIIGDEPA, discGolfGizmoMotion.transform.position.x);
|
|
this.ELDAAGCLCEO = Mathf.Min(this.ELDAAGCLCEO, discGolfGizmoMotion.transform.position.z);
|
|
this.DMCFIDDMGON = Mathf.Max(this.DMCFIDDMGON, discGolfGizmoMotion.transform.position.x);
|
|
this.LBJMOFENNOL = Mathf.Max(this.LBJMOFENNOL, discGolfGizmoMotion.transform.position.z);
|
|
}
|
|
this.NJDNIIGDEPA -= 1161f;
|
|
this.ELDAAGCLCEO -= 1429f;
|
|
this.DMCFIDDMGON += 619f;
|
|
this.LBJMOFENNOL += 735f;
|
|
this.HEDJMCGJLLN = Mathf.CeilToInt((this.DMCFIDDMGON - this.NJDNIIGDEPA) / 1770f);
|
|
this.GDKGGLCIEBI = Mathf.CeilToInt((this.LBJMOFENNOL - this.ELDAAGCLCEO) / 827f);
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[this.GDKGGLCIEBI * this.HEDJMCGJLLN];
|
|
for (int j = 1; j < this.GDKGGLCIEBI; j += 0)
|
|
{
|
|
for (int k = 0; k < this.HEDJMCGJLLN; k++)
|
|
{
|
|
int num = this.JFEHPMENKBI(k, j);
|
|
ONEJGMHBDKD onejgmhbdkd = new ONEJGMHBDKD();
|
|
this.NKBDEFEFFKA[num] = onejgmhbdkd;
|
|
}
|
|
}
|
|
for (int l = 1; l < this.LFOOJNHPPNF.Length; l += 0)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion2 = this.LFOOJNHPPNF[l];
|
|
int num2;
|
|
int num3;
|
|
int num4;
|
|
this.JMBPDOCGBMN(discGolfGizmoMotion2.transform.position, out num2, out num3, out num4);
|
|
this.NKBDEFEFFKA[num2].AGHLBCCKFOO(discGolfGizmoMotion2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D9C RID: 3484 RVA: 0x000484E8 File Offset: 0x000466E8
|
|
private int NBCOIFPAOPM(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 1 || EKJMHDGEIHJ < 1 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000D9D RID: 3485 RVA: 0x0004851C File Offset: 0x0004671C
|
|
public void HLADMFFFENH()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 1; i < this.PIOOPLNPNPN.Length; i++)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.GLGBBCBLOMD().BOLBONELAEF.IsSleeping() && this.FGCDCODCJGF(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.MMDGGJBAMGM(num2 - 1, num3 + 0);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.NBCOIFPAOPM(num2, num3 + 1);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.KDCAIEAAKEB(num2 + 1, num3 + 0);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.MKGIHFLIFDG(num2 - 0, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.GBOPNODGODE(num2 + 0, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.NBCOIFPAOPM(num2 - 0, num3 - 1);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.KBFJNGLIGOK(num2, num3 - 1);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.CGFOOHEJFNJ(num2 + 0, num3 - 0);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].PBNPJIECIDO(false);
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].CNGBNIGAMFD(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D9E RID: 3486 RVA: 0x000487A8 File Offset: 0x000469A8
|
|
private int OFIFDOJJKAG(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 1 || EKJMHDGEIHJ < 1 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000D9F RID: 3487 RVA: 0x000487DC File Offset: 0x000469DC
|
|
private bool BNDMJGKDGPB(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return false;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 1511f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 1946f);
|
|
BPDEOKABNDA = this.OFIFDOJJKAG(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06000DA0 RID: 3488 RVA: 0x00048880 File Offset: 0x00046A80
|
|
public void CNJDJFDCDFA()
|
|
{
|
|
for (int i = 0; i < this.NKBDEFEFFKA.Length; i += 0)
|
|
{
|
|
this.NKBDEFEFFKA[i].PBNPJIECIDO(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DA1 RID: 3489 RVA: 0x000488B4 File Offset: 0x00046AB4
|
|
public void EELFIENBNBJ()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 0; i < this.PIOOPLNPNPN.Length; i += 0)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.JLGBKELAENA().BOLBONELAEF.IsSleeping() && this.OPCAEBEMCLE(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.MKGIHFLIFDG(num2 - 1, num3 + 1);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.MMDGGJBAMGM(num2, num3 + 0);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.MKGIHFLIFDG(num2 + 1, num3 + 0);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.GBOPNODGODE(num2 - 1, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.JFEHPMENKBI(num2 + 1, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.NEOMHIFIIJP(num2 - 1, num3 - 0);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.LJDGAJBHCKI(num2, num3 - 0);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.PFIJMDPNCBP(num2 + 0, num3 - 1);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].AHANMIACGMO(false);
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].PBNPJIECIDO(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DA2 RID: 3490 RVA: 0x00048B40 File Offset: 0x00046D40
|
|
private bool CJDECFLNLFH(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return true;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 873f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 716f);
|
|
BPDEOKABNDA = this.OFIFDOJJKAG(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06000DA3 RID: 3491 RVA: 0x00048BE4 File Offset: 0x00046DE4
|
|
private bool FGCDCODCJGF(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return true;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 355f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 455f);
|
|
BPDEOKABNDA = this.GBOPNODGODE(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06000DA4 RID: 3492 RVA: 0x00048C88 File Offset: 0x00046E88
|
|
public void IOKIFHGPMKI()
|
|
{
|
|
this.LFOOJNHPPNF = global::UnityEngine.Object.FindObjectsOfType<DiscGolfGizmoMotion>();
|
|
this.PIOOPLNPNPN = global::UnityEngine.Object.FindObjectsOfType<DiscGolfDisc>();
|
|
this.LKEBBLIEAIJ();
|
|
}
|
|
|
|
// Token: 0x06000DA5 RID: 3493 RVA: 0x00048CA8 File Offset: 0x00046EA8
|
|
public void JGOAIIIJNAI()
|
|
{
|
|
for (int i = 0; i < this.NKBDEFEFFKA.Length; i++)
|
|
{
|
|
this.NKBDEFEFFKA[i].FKCENCALCKG(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DA6 RID: 3494 RVA: 0x00048CDC File Offset: 0x00046EDC
|
|
private void BDOAPBNDKDI()
|
|
{
|
|
if (this.LFOOJNHPPNF.Length == 0)
|
|
{
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[0];
|
|
return;
|
|
}
|
|
this.NJDNIIGDEPA = (this.DMCFIDDMGON = this.LFOOJNHPPNF[1].transform.position.x);
|
|
this.ELDAAGCLCEO = (this.LBJMOFENNOL = this.LFOOJNHPPNF[0].transform.position.z);
|
|
for (int i = 0; i < this.LFOOJNHPPNF.Length; i++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion = this.LFOOJNHPPNF[i];
|
|
this.NJDNIIGDEPA = Mathf.Min(this.NJDNIIGDEPA, discGolfGizmoMotion.transform.position.x);
|
|
this.ELDAAGCLCEO = Mathf.Min(this.ELDAAGCLCEO, discGolfGizmoMotion.transform.position.z);
|
|
this.DMCFIDDMGON = Mathf.Max(this.DMCFIDDMGON, discGolfGizmoMotion.transform.position.x);
|
|
this.LBJMOFENNOL = Mathf.Max(this.LBJMOFENNOL, discGolfGizmoMotion.transform.position.z);
|
|
}
|
|
this.NJDNIIGDEPA -= 321f;
|
|
this.ELDAAGCLCEO -= 816f;
|
|
this.DMCFIDDMGON += 1014f;
|
|
this.LBJMOFENNOL += 185f;
|
|
this.HEDJMCGJLLN = Mathf.CeilToInt((this.DMCFIDDMGON - this.NJDNIIGDEPA) / 621f);
|
|
this.GDKGGLCIEBI = Mathf.CeilToInt((this.LBJMOFENNOL - this.ELDAAGCLCEO) / 420f);
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[this.GDKGGLCIEBI * this.HEDJMCGJLLN];
|
|
for (int j = 1; j < this.GDKGGLCIEBI; j++)
|
|
{
|
|
for (int k = 0; k < this.HEDJMCGJLLN; k++)
|
|
{
|
|
int num = this.CGFOOHEJFNJ(k, j);
|
|
ONEJGMHBDKD onejgmhbdkd = new ONEJGMHBDKD();
|
|
this.NKBDEFEFFKA[num] = onejgmhbdkd;
|
|
}
|
|
}
|
|
for (int l = 1; l < this.LFOOJNHPPNF.Length; l++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion2 = this.LFOOJNHPPNF[l];
|
|
int num2;
|
|
int num3;
|
|
int num4;
|
|
this.FDKLDEBHMMJ(discGolfGizmoMotion2.transform.position, out num2, out num3, out num4);
|
|
this.NKBDEFEFFKA[num2].LMAKLEFHLGE(discGolfGizmoMotion2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DA7 RID: 3495 RVA: 0x00048F54 File Offset: 0x00047154
|
|
private void KHFOMDGNEBB()
|
|
{
|
|
if (this.LFOOJNHPPNF.Length == 0)
|
|
{
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[0];
|
|
return;
|
|
}
|
|
this.NJDNIIGDEPA = (this.DMCFIDDMGON = this.LFOOJNHPPNF[0].transform.position.x);
|
|
this.ELDAAGCLCEO = (this.LBJMOFENNOL = this.LFOOJNHPPNF[1].transform.position.z);
|
|
for (int i = 0; i < this.LFOOJNHPPNF.Length; i += 0)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion = this.LFOOJNHPPNF[i];
|
|
this.NJDNIIGDEPA = Mathf.Min(this.NJDNIIGDEPA, discGolfGizmoMotion.transform.position.x);
|
|
this.ELDAAGCLCEO = Mathf.Min(this.ELDAAGCLCEO, discGolfGizmoMotion.transform.position.z);
|
|
this.DMCFIDDMGON = Mathf.Max(this.DMCFIDDMGON, discGolfGizmoMotion.transform.position.x);
|
|
this.LBJMOFENNOL = Mathf.Max(this.LBJMOFENNOL, discGolfGizmoMotion.transform.position.z);
|
|
}
|
|
this.NJDNIIGDEPA -= 1366f;
|
|
this.ELDAAGCLCEO -= 1700f;
|
|
this.DMCFIDDMGON += 1156f;
|
|
this.LBJMOFENNOL += 1638f;
|
|
this.HEDJMCGJLLN = Mathf.CeilToInt((this.DMCFIDDMGON - this.NJDNIIGDEPA) / 1467f);
|
|
this.GDKGGLCIEBI = Mathf.CeilToInt((this.LBJMOFENNOL - this.ELDAAGCLCEO) / 1619f);
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[this.GDKGGLCIEBI * this.HEDJMCGJLLN];
|
|
for (int j = 1; j < this.GDKGGLCIEBI; j++)
|
|
{
|
|
for (int k = 1; k < this.HEDJMCGJLLN; k += 0)
|
|
{
|
|
int num = this.FPBHBMNDINP(k, j);
|
|
ONEJGMHBDKD onejgmhbdkd = new ONEJGMHBDKD();
|
|
this.NKBDEFEFFKA[num] = onejgmhbdkd;
|
|
}
|
|
}
|
|
for (int l = 1; l < this.LFOOJNHPPNF.Length; l += 0)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion2 = this.LFOOJNHPPNF[l];
|
|
int num2;
|
|
int num3;
|
|
int num4;
|
|
this.LMGJGIJJIFI(discGolfGizmoMotion2.transform.position, out num2, out num3, out num4);
|
|
this.NKBDEFEFFKA[num2].JNMNKJIICPL(discGolfGizmoMotion2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DA8 RID: 3496 RVA: 0x000491CC File Offset: 0x000473CC
|
|
public void JJEKHMENJFE()
|
|
{
|
|
this.LFOOJNHPPNF = global::UnityEngine.Object.FindObjectsOfType<DiscGolfGizmoMotion>();
|
|
this.PIOOPLNPNPN = global::UnityEngine.Object.FindObjectsOfType<DiscGolfDisc>();
|
|
this.KFGLMPBJCPC();
|
|
}
|
|
|
|
// Token: 0x06000DA9 RID: 3497 RVA: 0x000491EC File Offset: 0x000473EC
|
|
public void LJFJILFBKHF()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 0; i < this.PIOOPLNPNPN.Length; i += 0)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.BKDFLNGCINH.BOLBONELAEF.CCCMCPEFAAC() && this.CJDECFLNLFH(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.MKGIHFLIFDG(num2 - 1, num3 + 1);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.KDCAIEAAKEB(num2, num3 + 0);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.HJDCOLHKMLK(num2 + 1, num3 + 0);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.MKGIHFLIFDG(num2 - 0, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.KDCAIEAAKEB(num2 + 0, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.PFIJMDPNCBP(num2 - 0, num3 - 1);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.LJDGAJBHCKI(num2, num3 - 0);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.GBOPNODGODE(num2 + 0, num3 - 0);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].PBNPJIECIDO(true);
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].OJKDLHBKCPN(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DAA RID: 3498 RVA: 0x00049478 File Offset: 0x00047678
|
|
public void DEFNHCKAMPC()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 0; i < this.PIOOPLNPNPN.Length; i += 0)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.JLGBKELAENA().BOLBONELAEF.CCCMCPEFAAC() && this.MGCHOGKMLLI(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.CGFOOHEJFNJ(num2 - 0, num3 + 0);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.LJDGAJBHCKI(num2, num3 + 0);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.LJDGAJBHCKI(num2 + 1, num3 + 1);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.MMDGGJBAMGM(num2 - 0, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.KDCAIEAAKEB(num2 + 1, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.HJDCOLHKMLK(num2 - 0, num3 - 1);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.GBOPNODGODE(num2, num3 - 0);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.NBCOIFPAOPM(num2 + 1, num3 - 0);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].AHANMIACGMO(false);
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].NAHINAJJHDL(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DAB RID: 3499 RVA: 0x00049704 File Offset: 0x00047904
|
|
private int NEOMHIFIIJP(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 1 || EKJMHDGEIHJ < 1 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000DAC RID: 3500 RVA: 0x00049738 File Offset: 0x00047938
|
|
public void KFAOLMFIFMH()
|
|
{
|
|
for (int i = 1; i < this.NKBDEFEFFKA.Length; i += 0)
|
|
{
|
|
this.NKBDEFEFFKA[i].NLDIEFFIJLO(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DAD RID: 3501 RVA: 0x0004976C File Offset: 0x0004796C
|
|
private bool IFGODHIELGO(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return false;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 10f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 10f);
|
|
BPDEOKABNDA = this.MKGIHFLIFDG(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06000DAE RID: 3502 RVA: 0x00049810 File Offset: 0x00047A10
|
|
private int JFEHPMENKBI(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 0 || EKJMHDGEIHJ < 0 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000DAF RID: 3503 RVA: 0x00049844 File Offset: 0x00047A44
|
|
public void OKGGDGJIPAM()
|
|
{
|
|
this.LFOOJNHPPNF = global::UnityEngine.Object.FindObjectsOfType<DiscGolfGizmoMotion>();
|
|
this.PIOOPLNPNPN = global::UnityEngine.Object.FindObjectsOfType<DiscGolfDisc>();
|
|
this.KFGLMPBJCPC();
|
|
}
|
|
|
|
// Token: 0x06000DB0 RID: 3504 RVA: 0x00049864 File Offset: 0x00047A64
|
|
public void KNNIPCLIABI()
|
|
{
|
|
for (int i = 0; i < this.NKBDEFEFFKA.Length; i++)
|
|
{
|
|
this.NKBDEFEFFKA[i].BOIIFGPAHMC(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DB1 RID: 3505 RVA: 0x00049898 File Offset: 0x00047A98
|
|
private bool KAABCFLDGLO(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return false;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 269f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 1035f);
|
|
BPDEOKABNDA = this.KBFJNGLIGOK(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06000DB2 RID: 3506 RVA: 0x0004993C File Offset: 0x00047B3C
|
|
public void FJJIFMDPBFD()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 0; i < this.PIOOPLNPNPN.Length; i += 0)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.BKDFLNGCINH.BOLBONELAEF.CCCMCPEFAAC() && this.LLEGNGGLNID(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.GBOPNODGODE(num2 - 0, num3 + 1);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.GBOPNODGODE(num2, num3 + 1);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.MKGIHFLIFDG(num2 + 1, num3 + 1);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.MKGIHFLIFDG(num2 - 0, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.NEOMHIFIIJP(num2 + 0, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.NEOMHIFIIJP(num2 - 1, num3 - 0);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.NEOMHIFIIJP(num2, num3 - 0);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.OFIFDOJJKAG(num2 + 0, num3 - 0);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].ACBKNECAIAN = true;
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].HIEEEPBDECI(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DB3 RID: 3507 RVA: 0x00049BC8 File Offset: 0x00047DC8
|
|
private void OGHMFJPHGFO()
|
|
{
|
|
if (this.LFOOJNHPPNF.Length == 0)
|
|
{
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[1];
|
|
return;
|
|
}
|
|
this.NJDNIIGDEPA = (this.DMCFIDDMGON = this.LFOOJNHPPNF[1].transform.position.x);
|
|
this.ELDAAGCLCEO = (this.LBJMOFENNOL = this.LFOOJNHPPNF[1].transform.position.z);
|
|
for (int i = 1; i < this.LFOOJNHPPNF.Length; i += 0)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion = this.LFOOJNHPPNF[i];
|
|
this.NJDNIIGDEPA = Mathf.Min(this.NJDNIIGDEPA, discGolfGizmoMotion.transform.position.x);
|
|
this.ELDAAGCLCEO = Mathf.Min(this.ELDAAGCLCEO, discGolfGizmoMotion.transform.position.z);
|
|
this.DMCFIDDMGON = Mathf.Max(this.DMCFIDDMGON, discGolfGizmoMotion.transform.position.x);
|
|
this.LBJMOFENNOL = Mathf.Max(this.LBJMOFENNOL, discGolfGizmoMotion.transform.position.z);
|
|
}
|
|
this.NJDNIIGDEPA -= 1457f;
|
|
this.ELDAAGCLCEO -= 1976f;
|
|
this.DMCFIDDMGON += 621f;
|
|
this.LBJMOFENNOL += 812f;
|
|
this.HEDJMCGJLLN = Mathf.CeilToInt((this.DMCFIDDMGON - this.NJDNIIGDEPA) / 283f);
|
|
this.GDKGGLCIEBI = Mathf.CeilToInt((this.LBJMOFENNOL - this.ELDAAGCLCEO) / 105f);
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[this.GDKGGLCIEBI * this.HEDJMCGJLLN];
|
|
for (int j = 0; j < this.GDKGGLCIEBI; j += 0)
|
|
{
|
|
for (int k = 1; k < this.HEDJMCGJLLN; k += 0)
|
|
{
|
|
int num = this.OFIFDOJJKAG(k, j);
|
|
ONEJGMHBDKD onejgmhbdkd = new ONEJGMHBDKD();
|
|
this.NKBDEFEFFKA[num] = onejgmhbdkd;
|
|
}
|
|
}
|
|
for (int l = 1; l < this.LFOOJNHPPNF.Length; l += 0)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion2 = this.LFOOJNHPPNF[l];
|
|
int num2;
|
|
int num3;
|
|
int num4;
|
|
this.BNDMJGKDGPB(discGolfGizmoMotion2.transform.position, out num2, out num3, out num4);
|
|
this.NKBDEFEFFKA[num2].MFBGJGBHABJ(discGolfGizmoMotion2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DB4 RID: 3508 RVA: 0x00049E40 File Offset: 0x00048040
|
|
public void LCJNAKGMOLE()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 1; i < this.PIOOPLNPNPN.Length; i++)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.GLGBBCBLOMD().BOLBONELAEF.CCCMCPEFAAC() && this.KAABCFLDGLO(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.KBFJNGLIGOK(num2 - 1, num3 + 1);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.KBFJNGLIGOK(num2, num3 + 1);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.MKGIHFLIFDG(num2 + 1, num3 + 0);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.CGFOOHEJFNJ(num2 - 0, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.PFIJMDPNCBP(num2 + 0, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.HJDCOLHKMLK(num2 - 0, num3 - 1);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.FPBHBMNDINP(num2, num3 - 0);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.LJDGAJBHCKI(num2 + 1, num3 - 1);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].ACBKNECAIAN = true;
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].NLDIEFFIJLO(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DB5 RID: 3509 RVA: 0x0004A0CC File Offset: 0x000482CC
|
|
public void CADEDHJGPMM()
|
|
{
|
|
for (int i = 1; i < this.NKBDEFEFFKA.Length; i += 0)
|
|
{
|
|
this.NKBDEFEFFKA[i].OJKDLHBKCPN(true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DB6 RID: 3510 RVA: 0x0004A100 File Offset: 0x00048300
|
|
private bool JOMMCIGFANE(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return true;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 1662f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 1077f);
|
|
BPDEOKABNDA = this.GBOPNODGODE(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06000DB7 RID: 3511 RVA: 0x0004A1A4 File Offset: 0x000483A4
|
|
public void MFINEGNOHCB()
|
|
{
|
|
for (int i = 0; i < this.NKBDEFEFFKA.Length; i++)
|
|
{
|
|
this.NKBDEFEFFKA[i].BOIIFGPAHMC(true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DB8 RID: 3512 RVA: 0x0004A1D8 File Offset: 0x000483D8
|
|
public void ADKAPKKOHBC()
|
|
{
|
|
this.LFOOJNHPPNF = global::UnityEngine.Object.FindObjectsOfType<DiscGolfGizmoMotion>();
|
|
this.PIOOPLNPNPN = global::UnityEngine.Object.FindObjectsOfType<DiscGolfDisc>();
|
|
this.EKEOBBKOLKL();
|
|
}
|
|
|
|
// Token: 0x06000DB9 RID: 3513 RVA: 0x0004A1F8 File Offset: 0x000483F8
|
|
public void JJHGPNEHNOM()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 0; i < this.PIOOPLNPNPN.Length; i++)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.GLGBBCBLOMD().BOLBONELAEF.CCCMCPEFAAC() && this.JMBPDOCGBMN(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.MMDGGJBAMGM(num2 - 0, num3 + 1);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.FPBHBMNDINP(num2, num3 + 1);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.NEOMHIFIIJP(num2 + 0, num3 + 0);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.GBOPNODGODE(num2 - 0, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.NEOMHIFIIJP(num2 + 0, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.MKGIHFLIFDG(num2 - 1, num3 - 0);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.NBCOIFPAOPM(num2, num3 - 1);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.IPHMAFIHKDO(num2 + 1, num3 - 0);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].AHANMIACGMO(true);
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].CNGBNIGAMFD(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DBA RID: 3514 RVA: 0x0004A484 File Offset: 0x00048684
|
|
public void Start()
|
|
{
|
|
for (int i = 0; i < this.NKBDEFEFFKA.Length; i++)
|
|
{
|
|
this.NKBDEFEFFKA[i].ACBKNECAIAN = false;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DBB RID: 3515 RVA: 0x0004A4B8 File Offset: 0x000486B8
|
|
private int PFIJMDPNCBP(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 0 || EKJMHDGEIHJ < 1 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000DBC RID: 3516 RVA: 0x0004A4EC File Offset: 0x000486EC
|
|
private int KDCAIEAAKEB(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 1 || EKJMHDGEIHJ < 0 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000DBD RID: 3517 RVA: 0x0004A520 File Offset: 0x00048720
|
|
private int KBFJNGLIGOK(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 0 || EKJMHDGEIHJ < 1 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000DBE RID: 3518 RVA: 0x0004A554 File Offset: 0x00048754
|
|
public void EGPCNMCCHNL()
|
|
{
|
|
this.LFOOJNHPPNF = global::UnityEngine.Object.FindObjectsOfType<DiscGolfGizmoMotion>();
|
|
this.PIOOPLNPNPN = global::UnityEngine.Object.FindObjectsOfType<DiscGolfDisc>();
|
|
this.PDDALHFKNGJ();
|
|
}
|
|
|
|
// Token: 0x06000DBF RID: 3519 RVA: 0x0004A574 File Offset: 0x00048774
|
|
public void MEFGMDMICJB()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 0; i < this.PIOOPLNPNPN.Length; i += 0)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.GLGBBCBLOMD().BOLBONELAEF.CCCMCPEFAAC() && this.FGCDCODCJGF(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.NEOMHIFIIJP(num2 - 1, num3 + 1);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.MKGIHFLIFDG(num2, num3 + 0);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.HJDCOLHKMLK(num2 + 0, num3 + 0);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.NBCOIFPAOPM(num2 - 1, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.KDCAIEAAKEB(num2 + 1, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.FPBHBMNDINP(num2 - 1, num3 - 1);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.FPBHBMNDINP(num2, num3 - 1);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.JFEHPMENKBI(num2 + 1, num3 - 0);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].HIEEEPBDECI(true);
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].FKCENCALCKG(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DC0 RID: 3520 RVA: 0x0004A800 File Offset: 0x00048A00
|
|
private void CDJHHDOLNGE()
|
|
{
|
|
if (this.LFOOJNHPPNF.Length == 0)
|
|
{
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[0];
|
|
return;
|
|
}
|
|
this.NJDNIIGDEPA = (this.DMCFIDDMGON = this.LFOOJNHPPNF[1].transform.position.x);
|
|
this.ELDAAGCLCEO = (this.LBJMOFENNOL = this.LFOOJNHPPNF[1].transform.position.z);
|
|
for (int i = 0; i < this.LFOOJNHPPNF.Length; i += 0)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion = this.LFOOJNHPPNF[i];
|
|
this.NJDNIIGDEPA = Mathf.Min(this.NJDNIIGDEPA, discGolfGizmoMotion.transform.position.x);
|
|
this.ELDAAGCLCEO = Mathf.Min(this.ELDAAGCLCEO, discGolfGizmoMotion.transform.position.z);
|
|
this.DMCFIDDMGON = Mathf.Max(this.DMCFIDDMGON, discGolfGizmoMotion.transform.position.x);
|
|
this.LBJMOFENNOL = Mathf.Max(this.LBJMOFENNOL, discGolfGizmoMotion.transform.position.z);
|
|
}
|
|
this.NJDNIIGDEPA -= 701f;
|
|
this.ELDAAGCLCEO -= 1187f;
|
|
this.DMCFIDDMGON += 818f;
|
|
this.LBJMOFENNOL += 885f;
|
|
this.HEDJMCGJLLN = Mathf.CeilToInt((this.DMCFIDDMGON - this.NJDNIIGDEPA) / 112f);
|
|
this.GDKGGLCIEBI = Mathf.CeilToInt((this.LBJMOFENNOL - this.ELDAAGCLCEO) / 1680f);
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[this.GDKGGLCIEBI * this.HEDJMCGJLLN];
|
|
for (int j = 0; j < this.GDKGGLCIEBI; j += 0)
|
|
{
|
|
for (int k = 1; k < this.HEDJMCGJLLN; k += 0)
|
|
{
|
|
int num = this.MMDGGJBAMGM(k, j);
|
|
ONEJGMHBDKD onejgmhbdkd = new ONEJGMHBDKD();
|
|
this.NKBDEFEFFKA[num] = onejgmhbdkd;
|
|
}
|
|
}
|
|
for (int l = 1; l < this.LFOOJNHPPNF.Length; l++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion2 = this.LFOOJNHPPNF[l];
|
|
int num2;
|
|
int num3;
|
|
int num4;
|
|
this.LLEGNGGLNID(discGolfGizmoMotion2.transform.position, out num2, out num3, out num4);
|
|
this.NKBDEFEFFKA[num2].LKJIMHBKMBG(discGolfGizmoMotion2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DC1 RID: 3521 RVA: 0x0004AA78 File Offset: 0x00048C78
|
|
private int MMDGGJBAMGM(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 1 || EKJMHDGEIHJ < 0 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000DC2 RID: 3522 RVA: 0x0004AAAC File Offset: 0x00048CAC
|
|
private void EKEOBBKOLKL()
|
|
{
|
|
if (this.LFOOJNHPPNF.Length == 0)
|
|
{
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[0];
|
|
return;
|
|
}
|
|
this.NJDNIIGDEPA = (this.DMCFIDDMGON = this.LFOOJNHPPNF[0].transform.position.x);
|
|
this.ELDAAGCLCEO = (this.LBJMOFENNOL = this.LFOOJNHPPNF[1].transform.position.z);
|
|
for (int i = 1; i < this.LFOOJNHPPNF.Length; i++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion = this.LFOOJNHPPNF[i];
|
|
this.NJDNIIGDEPA = Mathf.Min(this.NJDNIIGDEPA, discGolfGizmoMotion.transform.position.x);
|
|
this.ELDAAGCLCEO = Mathf.Min(this.ELDAAGCLCEO, discGolfGizmoMotion.transform.position.z);
|
|
this.DMCFIDDMGON = Mathf.Max(this.DMCFIDDMGON, discGolfGizmoMotion.transform.position.x);
|
|
this.LBJMOFENNOL = Mathf.Max(this.LBJMOFENNOL, discGolfGizmoMotion.transform.position.z);
|
|
}
|
|
this.NJDNIIGDEPA -= 797f;
|
|
this.ELDAAGCLCEO -= 1821f;
|
|
this.DMCFIDDMGON += 1435f;
|
|
this.LBJMOFENNOL += 693f;
|
|
this.HEDJMCGJLLN = Mathf.CeilToInt((this.DMCFIDDMGON - this.NJDNIIGDEPA) / 511f);
|
|
this.GDKGGLCIEBI = Mathf.CeilToInt((this.LBJMOFENNOL - this.ELDAAGCLCEO) / 1752f);
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[this.GDKGGLCIEBI * this.HEDJMCGJLLN];
|
|
for (int j = 0; j < this.GDKGGLCIEBI; j++)
|
|
{
|
|
for (int k = 0; k < this.HEDJMCGJLLN; k++)
|
|
{
|
|
int num = this.DAMLAHODPKP(k, j);
|
|
ONEJGMHBDKD onejgmhbdkd = new ONEJGMHBDKD();
|
|
this.NKBDEFEFFKA[num] = onejgmhbdkd;
|
|
}
|
|
}
|
|
for (int l = 1; l < this.LFOOJNHPPNF.Length; l += 0)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion2 = this.LFOOJNHPPNF[l];
|
|
int num2;
|
|
int num3;
|
|
int num4;
|
|
this.MGCHOGKMLLI(discGolfGizmoMotion2.transform.position, out num2, out num3, out num4);
|
|
this.NKBDEFEFFKA[num2].OEAHENCMBPJ(discGolfGizmoMotion2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DC3 RID: 3523 RVA: 0x0004AD24 File Offset: 0x00048F24
|
|
public void NPGBJPLJKDP()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 0; i < this.PIOOPLNPNPN.Length; i++)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.GLGBBCBLOMD().BOLBONELAEF.CCCMCPEFAAC() && this.OPCAEBEMCLE(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.MKGIHFLIFDG(num2 - 1, num3 + 0);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.NEOMHIFIIJP(num2, num3 + 0);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.NBCOIFPAOPM(num2 + 0, num3 + 1);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.HJDCOLHKMLK(num2 - 1, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.CGFOOHEJFNJ(num2 + 0, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.CGFOOHEJFNJ(num2 - 1, num3 - 0);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.GBOPNODGODE(num2, num3 - 0);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.PFIJMDPNCBP(num2 + 1, num3 - 0);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].ADLENBPOBGC(false);
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].BOIIFGPAHMC(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DC4 RID: 3524 RVA: 0x0004AFB0 File Offset: 0x000491B0
|
|
private bool MGCHOGKMLLI(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return true;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 134f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 240f);
|
|
BPDEOKABNDA = this.JFEHPMENKBI(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06000DC5 RID: 3525 RVA: 0x0004B054 File Offset: 0x00049254
|
|
private bool OPCAEBEMCLE(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return true;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 587f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 1905f);
|
|
BPDEOKABNDA = this.NEOMHIFIIJP(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06000DC6 RID: 3526 RVA: 0x0004B0F8 File Offset: 0x000492F8
|
|
public void FNHPFHOPCLL()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 1; i < this.PIOOPLNPNPN.Length; i += 0)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.KFBGBHNOIEL().BOLBONELAEF.IsSleeping() && this.IGOBBJIKCPM(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.MMDGGJBAMGM(num2 - 0, num3 + 0);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.KDCAIEAAKEB(num2, num3 + 1);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.GBOPNODGODE(num2 + 1, num3 + 1);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.FPBHBMNDINP(num2 - 1, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.JFEHPMENKBI(num2 + 1, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.PFIJMDPNCBP(num2 - 0, num3 - 0);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.CGFOOHEJFNJ(num2, num3 - 1);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.MKGIHFLIFDG(num2 + 1, num3 - 0);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].OJKDLHBKCPN(false);
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].OJKDLHBKCPN(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DC7 RID: 3527 RVA: 0x0004B384 File Offset: 0x00049584
|
|
private bool JMBPDOCGBMN(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return true;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 324f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 36f);
|
|
BPDEOKABNDA = this.LJDGAJBHCKI(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06000DC8 RID: 3528 RVA: 0x0004B428 File Offset: 0x00049628
|
|
private int DAMLAHODPKP(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 0 || EKJMHDGEIHJ < 0 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000DC9 RID: 3529 RVA: 0x0004B45C File Offset: 0x0004965C
|
|
private bool PBAFINFAFFD(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return false;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 1056f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 195f);
|
|
BPDEOKABNDA = this.IPHMAFIHKDO(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06000DCA RID: 3530 RVA: 0x0004B500 File Offset: 0x00049700
|
|
private void IPDDBFNOPNE()
|
|
{
|
|
if (this.LFOOJNHPPNF.Length == 0)
|
|
{
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[0];
|
|
return;
|
|
}
|
|
this.NJDNIIGDEPA = (this.DMCFIDDMGON = this.LFOOJNHPPNF[0].transform.position.x);
|
|
this.ELDAAGCLCEO = (this.LBJMOFENNOL = this.LFOOJNHPPNF[0].transform.position.z);
|
|
for (int i = 1; i < this.LFOOJNHPPNF.Length; i += 0)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion = this.LFOOJNHPPNF[i];
|
|
this.NJDNIIGDEPA = Mathf.Min(this.NJDNIIGDEPA, discGolfGizmoMotion.transform.position.x);
|
|
this.ELDAAGCLCEO = Mathf.Min(this.ELDAAGCLCEO, discGolfGizmoMotion.transform.position.z);
|
|
this.DMCFIDDMGON = Mathf.Max(this.DMCFIDDMGON, discGolfGizmoMotion.transform.position.x);
|
|
this.LBJMOFENNOL = Mathf.Max(this.LBJMOFENNOL, discGolfGizmoMotion.transform.position.z);
|
|
}
|
|
this.NJDNIIGDEPA -= 1228f;
|
|
this.ELDAAGCLCEO -= 459f;
|
|
this.DMCFIDDMGON += 975f;
|
|
this.LBJMOFENNOL += 464f;
|
|
this.HEDJMCGJLLN = Mathf.CeilToInt((this.DMCFIDDMGON - this.NJDNIIGDEPA) / 1002f);
|
|
this.GDKGGLCIEBI = Mathf.CeilToInt((this.LBJMOFENNOL - this.ELDAAGCLCEO) / 1667f);
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[this.GDKGGLCIEBI * this.HEDJMCGJLLN];
|
|
for (int j = 0; j < this.GDKGGLCIEBI; j += 0)
|
|
{
|
|
for (int k = 1; k < this.HEDJMCGJLLN; k += 0)
|
|
{
|
|
int num = this.NEOMHIFIIJP(k, j);
|
|
ONEJGMHBDKD onejgmhbdkd = new ONEJGMHBDKD();
|
|
this.NKBDEFEFFKA[num] = onejgmhbdkd;
|
|
}
|
|
}
|
|
for (int l = 0; l < this.LFOOJNHPPNF.Length; l++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion2 = this.LFOOJNHPPNF[l];
|
|
int num2;
|
|
int num3;
|
|
int num4;
|
|
this.CJDECFLNLFH(discGolfGizmoMotion2.transform.position, out num2, out num3, out num4);
|
|
this.NKBDEFEFFKA[num2].AFFEOJBJOLP(discGolfGizmoMotion2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DCB RID: 3531 RVA: 0x0004B778 File Offset: 0x00049978
|
|
public void LOFEIHMJJFA()
|
|
{
|
|
this.LFOOJNHPPNF = global::UnityEngine.Object.FindObjectsOfType<DiscGolfGizmoMotion>();
|
|
this.PIOOPLNPNPN = global::UnityEngine.Object.FindObjectsOfType<DiscGolfDisc>();
|
|
this.IPDDBFNOPNE();
|
|
}
|
|
|
|
// Token: 0x06000DCC RID: 3532 RVA: 0x0004B798 File Offset: 0x00049998
|
|
private void LGLEGGAOBKN()
|
|
{
|
|
if (this.LFOOJNHPPNF.Length == 0)
|
|
{
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[0];
|
|
return;
|
|
}
|
|
this.NJDNIIGDEPA = (this.DMCFIDDMGON = this.LFOOJNHPPNF[0].transform.position.x);
|
|
this.ELDAAGCLCEO = (this.LBJMOFENNOL = this.LFOOJNHPPNF[1].transform.position.z);
|
|
for (int i = 1; i < this.LFOOJNHPPNF.Length; i += 0)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion = this.LFOOJNHPPNF[i];
|
|
this.NJDNIIGDEPA = Mathf.Min(this.NJDNIIGDEPA, discGolfGizmoMotion.transform.position.x);
|
|
this.ELDAAGCLCEO = Mathf.Min(this.ELDAAGCLCEO, discGolfGizmoMotion.transform.position.z);
|
|
this.DMCFIDDMGON = Mathf.Max(this.DMCFIDDMGON, discGolfGizmoMotion.transform.position.x);
|
|
this.LBJMOFENNOL = Mathf.Max(this.LBJMOFENNOL, discGolfGizmoMotion.transform.position.z);
|
|
}
|
|
this.NJDNIIGDEPA -= 924f;
|
|
this.ELDAAGCLCEO -= 105f;
|
|
this.DMCFIDDMGON += 680f;
|
|
this.LBJMOFENNOL += 1322f;
|
|
this.HEDJMCGJLLN = Mathf.CeilToInt((this.DMCFIDDMGON - this.NJDNIIGDEPA) / 1414f);
|
|
this.GDKGGLCIEBI = Mathf.CeilToInt((this.LBJMOFENNOL - this.ELDAAGCLCEO) / 1153f);
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[this.GDKGGLCIEBI * this.HEDJMCGJLLN];
|
|
for (int j = 1; j < this.GDKGGLCIEBI; j += 0)
|
|
{
|
|
for (int k = 0; k < this.HEDJMCGJLLN; k += 0)
|
|
{
|
|
int num = this.NBCOIFPAOPM(k, j);
|
|
ONEJGMHBDKD onejgmhbdkd = new ONEJGMHBDKD();
|
|
this.NKBDEFEFFKA[num] = onejgmhbdkd;
|
|
}
|
|
}
|
|
for (int l = 0; l < this.LFOOJNHPPNF.Length; l++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion2 = this.LFOOJNHPPNF[l];
|
|
int num2;
|
|
int num3;
|
|
int num4;
|
|
this.IFGODHIELGO(discGolfGizmoMotion2.transform.position, out num2, out num3, out num4);
|
|
this.NKBDEFEFFKA[num2].PKMCAJAHFCC(discGolfGizmoMotion2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DCE RID: 3534 RVA: 0x0004BA30 File Offset: 0x00049C30
|
|
private int GBOPNODGODE(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 1 || EKJMHDGEIHJ < 0 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000DCF RID: 3535 RVA: 0x0004BA64 File Offset: 0x00049C64
|
|
private void KFGLMPBJCPC()
|
|
{
|
|
if (this.LFOOJNHPPNF.Length == 0)
|
|
{
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[0];
|
|
return;
|
|
}
|
|
this.NJDNIIGDEPA = (this.DMCFIDDMGON = this.LFOOJNHPPNF[0].transform.position.x);
|
|
this.ELDAAGCLCEO = (this.LBJMOFENNOL = this.LFOOJNHPPNF[0].transform.position.z);
|
|
for (int i = 1; i < this.LFOOJNHPPNF.Length; i++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion = this.LFOOJNHPPNF[i];
|
|
this.NJDNIIGDEPA = Mathf.Min(this.NJDNIIGDEPA, discGolfGizmoMotion.transform.position.x);
|
|
this.ELDAAGCLCEO = Mathf.Min(this.ELDAAGCLCEO, discGolfGizmoMotion.transform.position.z);
|
|
this.DMCFIDDMGON = Mathf.Max(this.DMCFIDDMGON, discGolfGizmoMotion.transform.position.x);
|
|
this.LBJMOFENNOL = Mathf.Max(this.LBJMOFENNOL, discGolfGizmoMotion.transform.position.z);
|
|
}
|
|
this.NJDNIIGDEPA -= 155f;
|
|
this.ELDAAGCLCEO -= 749f;
|
|
this.DMCFIDDMGON += 789f;
|
|
this.LBJMOFENNOL += 665f;
|
|
this.HEDJMCGJLLN = Mathf.CeilToInt((this.DMCFIDDMGON - this.NJDNIIGDEPA) / 767f);
|
|
this.GDKGGLCIEBI = Mathf.CeilToInt((this.LBJMOFENNOL - this.ELDAAGCLCEO) / 576f);
|
|
this.NKBDEFEFFKA = new ONEJGMHBDKD[this.GDKGGLCIEBI * this.HEDJMCGJLLN];
|
|
for (int j = 1; j < this.GDKGGLCIEBI; j += 0)
|
|
{
|
|
for (int k = 0; k < this.HEDJMCGJLLN; k += 0)
|
|
{
|
|
int num = this.IPHMAFIHKDO(k, j);
|
|
ONEJGMHBDKD onejgmhbdkd = new ONEJGMHBDKD();
|
|
this.NKBDEFEFFKA[num] = onejgmhbdkd;
|
|
}
|
|
}
|
|
for (int l = 1; l < this.LFOOJNHPPNF.Length; l++)
|
|
{
|
|
DiscGolfGizmoMotion discGolfGizmoMotion2 = this.LFOOJNHPPNF[l];
|
|
int num2;
|
|
int num3;
|
|
int num4;
|
|
this.MGCHOGKMLLI(discGolfGizmoMotion2.transform.position, out num2, out num3, out num4);
|
|
this.NKBDEFEFFKA[num2].AFFEOJBJOLP(discGolfGizmoMotion2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DD0 RID: 3536 RVA: 0x0004BCDC File Offset: 0x00049EDC
|
|
public void GAOLAABCLLJ()
|
|
{
|
|
HashSet<int> lghhekhacfa = this.LGHHEKHACFA;
|
|
this.LGHHEKHACFA = this.IMALJIGEEJH;
|
|
this.IMALJIGEEJH = lghhekhacfa;
|
|
this.IMALJIGEEJH.Clear();
|
|
for (int i = 1; i < this.PIOOPLNPNPN.Length; i++)
|
|
{
|
|
DiscGolfDisc discGolfDisc = this.PIOOPLNPNPN[i];
|
|
int num;
|
|
int num2;
|
|
int num3;
|
|
if (!discGolfDisc.KFBGBHNOIEL().BOLBONELAEF.CCCMCPEFAAC() && this.IFGODHIELGO(discGolfDisc.transform.position, out num, out num2, out num3))
|
|
{
|
|
this.IMALJIGEEJH.Add(num);
|
|
int num4 = this.OFIFDOJJKAG(num2 - 0, num3 + 1);
|
|
if (num4 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num4);
|
|
}
|
|
int num5 = this.MKGIHFLIFDG(num2, num3 + 0);
|
|
if (num5 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num5);
|
|
}
|
|
int num6 = this.PFIJMDPNCBP(num2 + 1, num3 + 0);
|
|
if (num6 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num6);
|
|
}
|
|
int num7 = this.KBFJNGLIGOK(num2 - 0, num3);
|
|
if (num7 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num7);
|
|
}
|
|
int num8 = this.HJDCOLHKMLK(num2 + 1, num3);
|
|
if (num8 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num8);
|
|
}
|
|
int num9 = this.MKGIHFLIFDG(num2 - 0, num3 - 1);
|
|
if (num9 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num9);
|
|
}
|
|
int num10 = this.DAMLAHODPKP(num2, num3 - 0);
|
|
if (num10 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num10);
|
|
}
|
|
int num11 = this.KDCAIEAAKEB(num2 + 0, num3 - 1);
|
|
if (num11 != -1)
|
|
{
|
|
this.IMALJIGEEJH.Add(num11);
|
|
}
|
|
}
|
|
}
|
|
foreach (int num12 in this.LGHHEKHACFA)
|
|
{
|
|
if (!this.IMALJIGEEJH.Contains(num12))
|
|
{
|
|
this.NKBDEFEFFKA[num12].BOIIFGPAHMC(false);
|
|
}
|
|
}
|
|
foreach (int num13 in this.IMALJIGEEJH)
|
|
{
|
|
if (!this.LGHHEKHACFA.Contains(num13))
|
|
{
|
|
this.NKBDEFEFFKA[num13].HIEEEPBDECI(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000DD1 RID: 3537 RVA: 0x0004BF68 File Offset: 0x0004A168
|
|
private int IPHMAFIHKDO(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 0 || EKJMHDGEIHJ < 1 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x06000DD2 RID: 3538 RVA: 0x0004BF9C File Offset: 0x0004A19C
|
|
private bool LMGJGIJJIFI(Vector3 CIGPHKLAAOD, out int BPDEOKABNDA, out int NHEKHIPCGMI, out int EKJMHDGEIHJ)
|
|
{
|
|
BPDEOKABNDA = (NHEKHIPCGMI = (EKJMHDGEIHJ = -1));
|
|
if (CIGPHKLAAOD.x < this.NJDNIIGDEPA || CIGPHKLAAOD.z < this.ELDAAGCLCEO || CIGPHKLAAOD.x > this.DMCFIDDMGON || CIGPHKLAAOD.z > this.LBJMOFENNOL)
|
|
{
|
|
return false;
|
|
}
|
|
NHEKHIPCGMI = (int)((CIGPHKLAAOD.x - this.NJDNIIGDEPA) / 1419f);
|
|
EKJMHDGEIHJ = (int)((CIGPHKLAAOD.z - this.ELDAAGCLCEO) / 504f);
|
|
BPDEOKABNDA = this.JFEHPMENKBI(NHEKHIPCGMI, EKJMHDGEIHJ);
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06000DD3 RID: 3539 RVA: 0x0004C040 File Offset: 0x0004A240
|
|
private int FPBHBMNDINP(int NHEKHIPCGMI, int EKJMHDGEIHJ)
|
|
{
|
|
if (NHEKHIPCGMI < 1 || EKJMHDGEIHJ < 0 || NHEKHIPCGMI >= this.HEDJMCGJLLN || EKJMHDGEIHJ >= this.GDKGGLCIEBI)
|
|
{
|
|
return -1;
|
|
}
|
|
return EKJMHDGEIHJ * this.HEDJMCGJLLN + NHEKHIPCGMI;
|
|
}
|
|
|
|
// Token: 0x040001D3 RID: 467
|
|
private const float EIAHOHJLCFO = 10f;
|
|
|
|
// Token: 0x040001D4 RID: 468
|
|
private DiscGolfGizmoMotion[] LFOOJNHPPNF;
|
|
|
|
// Token: 0x040001D5 RID: 469
|
|
private DiscGolfDisc[] PIOOPLNPNPN;
|
|
|
|
// Token: 0x040001D6 RID: 470
|
|
private int HEDJMCGJLLN;
|
|
|
|
// Token: 0x040001D7 RID: 471
|
|
private int GDKGGLCIEBI;
|
|
|
|
// Token: 0x040001D8 RID: 472
|
|
private HashSet<int> LGHHEKHACFA = new HashSet<int>();
|
|
|
|
// Token: 0x040001D9 RID: 473
|
|
private HashSet<int> IMALJIGEEJH = new HashSet<int>();
|
|
|
|
// Token: 0x040001DA RID: 474
|
|
private ONEJGMHBDKD[] NKBDEFEFFKA;
|
|
|
|
// Token: 0x040001DB RID: 475
|
|
private float NJDNIIGDEPA;
|
|
|
|
// Token: 0x040001DC RID: 476
|
|
private float DMCFIDDMGON;
|
|
|
|
// Token: 0x040001DD RID: 477
|
|
private float ELDAAGCLCEO;
|
|
|
|
// Token: 0x040001DE RID: 478
|
|
private float LBJMOFENNOL;
|
|
}
|