1644 lines
43 KiB
C#
1644 lines
43 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using Photon;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000B54 RID: 2900
|
|
[RequireComponent(typeof(PhotonView))]
|
|
public class ToolPool : global::Photon.MonoBehaviour
|
|
{
|
|
// Token: 0x06015EC4 RID: 89796 RVA: 0x0060FF94 File Offset: 0x0060E194
|
|
public void MasterDisableAll()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
foreach (Tool tool in this.pool)
|
|
{
|
|
this.Release(tool);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EC5 RID: 89797 RVA: 0x0060FFD4 File Offset: 0x0060E1D4
|
|
private int AJMONIGLMJO(Func<Tool, bool> FAKPMBEOEPH)
|
|
{
|
|
int num = -1;
|
|
float num2 = float.MaxValue;
|
|
for (int i = 0; i < this.pool.Length; i++)
|
|
{
|
|
float num3 = this.JEFMMDNEHAC[i].CPIBGJLHLBL();
|
|
if (num3 < num2 && FAKPMBEOEPH(this.pool[i]))
|
|
{
|
|
num = i;
|
|
num2 = num3;
|
|
}
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06015EC6 RID: 89798 RVA: 0x00610030 File Offset: 0x0060E230
|
|
private static bool DAAHEBBIFPL(Tool ENBMEDIFBLM)
|
|
{
|
|
return !ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015EC7 RID: 89799 RVA: 0x0061003C File Offset: 0x0060E23C
|
|
public Tool IGIFLAFGOAC(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.NCGABMBCJOH);
|
|
}
|
|
int num = this.DJCAJAPPACC(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.FOHFKEKNNCB);
|
|
}
|
|
num = this.KLLKOFAIDCA(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.JLPPFBFNHKD(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.FBPDKNFMHAD);
|
|
}
|
|
num = this.KLLKOFAIDCA(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.LLDPGMJFMIN(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.MLNMONBHHBO().TransferOwnership(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.Snap();
|
|
tool.NIINOABKAPJ = false;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015EC8 RID: 89800 RVA: 0x00610168 File Offset: 0x0060E368
|
|
public Tool Acquire(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.NCGABMBCJOH);
|
|
}
|
|
int num = this.AJMONIGLMJO(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.KEIBNEKJELM);
|
|
}
|
|
num = this.AJMONIGLMJO(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.Release(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.NNFNKEFNFCJ);
|
|
}
|
|
num = this.AJMONIGLMJO(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.Release(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.OMNGGJICBBI.TransferOwnership(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.Snap();
|
|
tool.NIINOABKAPJ = true;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015EC9 RID: 89801 RVA: 0x00610294 File Offset: 0x0060E494
|
|
public Tool[] COOAOPGCNJE()
|
|
{
|
|
return this.pool;
|
|
}
|
|
|
|
// Token: 0x06015ECA RID: 89802 RVA: 0x0061029C File Offset: 0x0060E49C
|
|
private static bool IALEHGGAOGJ(Tool ENBMEDIFBLM)
|
|
{
|
|
return !ENBMEDIFBLM.NIINOABKAPJ;
|
|
}
|
|
|
|
// Token: 0x06015ECB RID: 89803 RVA: 0x006102A8 File Offset: 0x0060E4A8
|
|
protected virtual void ACOIMDMPDOM()
|
|
{
|
|
base.FNNCEMJECLP();
|
|
for (int i = 1; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].SpawnedFromPool = true;
|
|
}
|
|
this.JEFMMDNEHAC = new LHLLJPPCDKA<float>[this.pool.Length];
|
|
for (int j = 1; j < this.pool.Length; j++)
|
|
{
|
|
this.JEFMMDNEHAC[j] = new LHLLJPPCDKA<float>(this.pool[j], "Malformed RPC; this should never occur. Content: ", 1056f, IKCAJLLAFML.MASTER, null);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015ECC RID: 89804 RVA: 0x00610330 File Offset: 0x0060E530
|
|
private static bool KNMHFFEGPMJ(Tool ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM.BBENILJAIMO();
|
|
}
|
|
|
|
// Token: 0x06015ECD RID: 89805 RVA: 0x0061033C File Offset: 0x0060E53C
|
|
private int DJCAJAPPACC(Func<Tool, bool> FAKPMBEOEPH)
|
|
{
|
|
int num = -1;
|
|
float num2 = 1749f;
|
|
for (int i = 0; i < this.pool.Length; i++)
|
|
{
|
|
float num3 = this.JEFMMDNEHAC[i].CPIBGJLHLBL();
|
|
if (num3 < num2 && FAKPMBEOEPH(this.pool[i]))
|
|
{
|
|
num = i;
|
|
num2 = num3;
|
|
}
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06015ECE RID: 89806 RVA: 0x00610398 File Offset: 0x0060E598
|
|
private static bool LOPPKGPCHPA(Tool ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015ECF RID: 89807 RVA: 0x006103A4 File Offset: 0x0060E5A4
|
|
public Tool[] HCKMCHCNDPE()
|
|
{
|
|
return this.pool;
|
|
}
|
|
|
|
// Token: 0x06015ED0 RID: 89808 RVA: 0x006103AC File Offset: 0x0060E5AC
|
|
protected virtual void KMCJNIPIKBA()
|
|
{
|
|
base.IPAPMGBLCNF();
|
|
for (int i = 1; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].SpawnedFromPool = false;
|
|
}
|
|
this.JEFMMDNEHAC = new LHLLJPPCDKA<float>[this.pool.Length];
|
|
for (int j = 0; j < this.pool.Length; j += 0)
|
|
{
|
|
this.JEFMMDNEHAC[j] = new LHLLJPPCDKA<float>(this.pool[j], "PlatformProfileId: {0}", 1882f, IKCAJLLAFML.MASTER, null);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015ED1 RID: 89809 RVA: 0x00610434 File Offset: 0x0060E634
|
|
public void NHLIFBFIGMA()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
Tool[] array = this.pool;
|
|
for (int i = 1; i < array.Length; i += 0)
|
|
{
|
|
Tool tool = array[i];
|
|
this.Release(tool);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015ED2 RID: 89810 RVA: 0x00610474 File Offset: 0x0060E674
|
|
public void AKHAFKELKLC(Tool ENBMEDIFBLM)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.pool.KFLBKDPEHEN(ENBMEDIFBLM) && ENBMEDIFBLM.NIINOABKAPJ)
|
|
{
|
|
ENBMEDIFBLM.ACEAACJNNAF().EJBOGPNBGHI(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
ENBMEDIFBLM.NIINOABKAPJ = true;
|
|
ENBMEDIFBLM.transform.position = Vector3.zero;
|
|
ENBMEDIFBLM.transform.rotation = Quaternion.identity;
|
|
ENBMEDIFBLM.LCEGMBHLFLK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015ED3 RID: 89811 RVA: 0x006104E4 File Offset: 0x0060E6E4
|
|
public void CNGOAHFAOMC(Tool ENBMEDIFBLM)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.pool.KFLBKDPEHEN(ENBMEDIFBLM) && ENBMEDIFBLM.BBENILJAIMO())
|
|
{
|
|
ENBMEDIFBLM.POOAOJPEDJD().TransferOwnership(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
ENBMEDIFBLM.NIINOABKAPJ = false;
|
|
ENBMEDIFBLM.transform.position = Vector3.zero;
|
|
ENBMEDIFBLM.transform.rotation = Quaternion.identity;
|
|
ENBMEDIFBLM.LCEGMBHLFLK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015ED4 RID: 89812 RVA: 0x00610554 File Offset: 0x0060E754
|
|
private static bool IKNBLOJOGAH(Tool ENBMEDIFBLM)
|
|
{
|
|
return !ENBMEDIFBLM.BBENILJAIMO();
|
|
}
|
|
|
|
// Token: 0x06015ED5 RID: 89813 RVA: 0x00610560 File Offset: 0x0060E760
|
|
private static bool FOHFKEKNNCB(Tool ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015ED6 RID: 89814 RVA: 0x0061056C File Offset: 0x0060E76C
|
|
public Tool[] HOGPKBNAFIK()
|
|
{
|
|
return this.pool;
|
|
}
|
|
|
|
// Token: 0x06015ED7 RID: 89815 RVA: 0x00610574 File Offset: 0x0060E774
|
|
public Tool HIPBNCCNEOJ(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.JCNFDFKMMCA);
|
|
}
|
|
int num = this.KLLKOFAIDCA(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.DAAHEBBIFPL);
|
|
}
|
|
num = this.LDFDFOELDJP(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.MLIFDFGPMDD(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.MHOINMGGAMK);
|
|
}
|
|
num = this.JHDOGEGAHFM(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.EHEKOPNAMPJ(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.MLNMONBHHBO().EJBOGPNBGHI(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.Snap();
|
|
tool.NIINOABKAPJ = true;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015ED8 RID: 89816 RVA: 0x006106A0 File Offset: 0x0060E8A0
|
|
private static bool APDNOLAIAEO(Tool ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015ED9 RID: 89817 RVA: 0x006106AC File Offset: 0x0060E8AC
|
|
public void LBPFFLKKGKM()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
foreach (Tool tool in this.pool)
|
|
{
|
|
this.HLGBMOLAGEM(tool);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EDA RID: 89818 RVA: 0x006106EC File Offset: 0x0060E8EC
|
|
public Tool HEPBGLGJBLH(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.MKPHKFNEOBM);
|
|
}
|
|
int num = this.DJCAJAPPACC(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.BNLPPMHIELH);
|
|
}
|
|
num = this.DJCAJAPPACC(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.EHEKOPNAMPJ(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.KMJGMJCJGDE);
|
|
}
|
|
num = this.KLLKOFAIDCA(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.AKHAFKELKLC(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.CEGDLFAENEJ().NNOFBLMFKAH(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.Snap();
|
|
tool.NIINOABKAPJ = false;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015EDB RID: 89819 RVA: 0x00610818 File Offset: 0x0060EA18
|
|
protected virtual void MOAAJAOGKEO()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 0; i < this.pool.Length; i += 0)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EDC RID: 89820 RVA: 0x00610864 File Offset: 0x0060EA64
|
|
private static bool FDBGNNNEMMD(Tool ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015EDD RID: 89821 RVA: 0x00610870 File Offset: 0x0060EA70
|
|
public Tool[] DGIACNELMFI()
|
|
{
|
|
return this.pool;
|
|
}
|
|
|
|
// Token: 0x06015EDE RID: 89822 RVA: 0x00610878 File Offset: 0x0060EA78
|
|
protected virtual void NJCGLHJMAEC()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 0; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EDF RID: 89823 RVA: 0x006108C4 File Offset: 0x0060EAC4
|
|
public Tool JCNFOMPJGAA(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.MKPHKFNEOBM);
|
|
}
|
|
int num = this.DJCAJAPPACC(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.PBFEBBIPKAI);
|
|
}
|
|
num = this.DJCAJAPPACC(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.HLGBMOLAGEM(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.MHOINMGGAMK);
|
|
}
|
|
num = this.DJCAJAPPACC(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.Release(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.EKPBHKFHMON().EJBOGPNBGHI(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.Snap();
|
|
tool.NIINOABKAPJ = true;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015EE0 RID: 89824 RVA: 0x006109F0 File Offset: 0x0060EBF0
|
|
public void EHEKOPNAMPJ(Tool ENBMEDIFBLM)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.pool.KFLBKDPEHEN(ENBMEDIFBLM) && ENBMEDIFBLM.NIINOABKAPJ)
|
|
{
|
|
ENBMEDIFBLM.LHEPJEHMAEC().NNOFBLMFKAH(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
ENBMEDIFBLM.NIINOABKAPJ = false;
|
|
ENBMEDIFBLM.transform.position = Vector3.zero;
|
|
ENBMEDIFBLM.transform.rotation = Quaternion.identity;
|
|
ENBMEDIFBLM.LCEGMBHLFLK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EE1 RID: 89825 RVA: 0x00610A60 File Offset: 0x0060EC60
|
|
public void AMAEKFBDFMD()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
Tool[] array = this.pool;
|
|
for (int i = 1; i < array.Length; i++)
|
|
{
|
|
Tool tool = array[i];
|
|
this.EHEKOPNAMPJ(tool);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EE2 RID: 89826 RVA: 0x00610AA0 File Offset: 0x0060ECA0
|
|
private static bool FBPDKNFMHAD(Tool ENBMEDIFBLM)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06015EE3 RID: 89827 RVA: 0x00610AA4 File Offset: 0x0060ECA4
|
|
public void GGMJHKBDGIA()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
Tool[] array = this.pool;
|
|
for (int i = 1; i < array.Length; i++)
|
|
{
|
|
Tool tool = array[i];
|
|
this.HFDMAEEPBOF(tool);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EE4 RID: 89828 RVA: 0x00610AE4 File Offset: 0x0060ECE4
|
|
private static bool BNLPPMHIELH(Tool ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015EE5 RID: 89829 RVA: 0x00610AF0 File Offset: 0x0060ECF0
|
|
public Tool GEDIFBFLPOO(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.HBAMNCMDOCM);
|
|
}
|
|
int num = this.DJCAJAPPACC(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.OGPFBCCDONM);
|
|
}
|
|
num = this.AJMONIGLMJO(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.HLGBMOLAGEM(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.GICFHJPBEPH);
|
|
}
|
|
num = this.DJCAJAPPACC(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.HLGBMOLAGEM(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.EKPBHKFHMON().EJBOGPNBGHI(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.LCEGMBHLFLK();
|
|
tool.NIINOABKAPJ = true;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015EE6 RID: 89830 RVA: 0x00610C1C File Offset: 0x0060EE1C
|
|
protected virtual void LMAJMHGEPDB()
|
|
{
|
|
base.MPIHCILBGLM();
|
|
for (int i = 0; i < this.pool.Length; i += 0)
|
|
{
|
|
this.pool[i].SpawnedFromPool = true;
|
|
}
|
|
this.JEFMMDNEHAC = new LHLLJPPCDKA<float>[this.pool.Length];
|
|
for (int j = 0; j < this.pool.Length; j++)
|
|
{
|
|
this.JEFMMDNEHAC[j] = new LHLLJPPCDKA<float>(this.pool[j], "GlobalPeriodic", 1839f, IKCAJLLAFML.AUTHORITY, null);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EE7 RID: 89831 RVA: 0x00610CA4 File Offset: 0x0060EEA4
|
|
protected virtual void LELHNBCKIEG()
|
|
{
|
|
base.Awake();
|
|
for (int i = 1; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].SpawnedFromPool = true;
|
|
}
|
|
this.JEFMMDNEHAC = new LHLLJPPCDKA<float>[this.pool.Length];
|
|
for (int j = 1; j < this.pool.Length; j++)
|
|
{
|
|
this.JEFMMDNEHAC[j] = new LHLLJPPCDKA<float>(this.pool[j], "No room details dialog found", 1985f, IKCAJLLAFML.MASTER, null);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EE8 RID: 89832 RVA: 0x00610D2C File Offset: 0x0060EF2C
|
|
public void LLOIGOENKEB()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
Tool[] array = this.pool;
|
|
for (int i = 0; i < array.Length; i += 0)
|
|
{
|
|
Tool tool = array[i];
|
|
this.MLIFDFGPMDD(tool);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EE9 RID: 89833 RVA: 0x00610D6C File Offset: 0x0060EF6C
|
|
protected virtual void HDCAMLJLKHC()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 0; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700092D RID: 2349
|
|
// (get) Token: 0x06015EEA RID: 89834 RVA: 0x00610DB8 File Offset: 0x0060EFB8
|
|
public Tool[] FKEPPMPNKOA
|
|
{
|
|
get
|
|
{
|
|
return this.pool;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EEB RID: 89835 RVA: 0x00610DC0 File Offset: 0x0060EFC0
|
|
public void MLIFDFGPMDD(Tool ENBMEDIFBLM)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.pool.KFLBKDPEHEN(ENBMEDIFBLM) && ENBMEDIFBLM.NIINOABKAPJ)
|
|
{
|
|
ENBMEDIFBLM.CEGDLFAENEJ().NNOFBLMFKAH(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
ENBMEDIFBLM.NIINOABKAPJ = false;
|
|
ENBMEDIFBLM.transform.position = Vector3.zero;
|
|
ENBMEDIFBLM.transform.rotation = Quaternion.identity;
|
|
ENBMEDIFBLM.LCEGMBHLFLK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EEC RID: 89836 RVA: 0x00610E30 File Offset: 0x0060F030
|
|
protected virtual void LPKLPAKEHKD()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 1; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EED RID: 89837 RVA: 0x00610E7C File Offset: 0x0060F07C
|
|
public Tool[] BAKAAHADPCG()
|
|
{
|
|
return this.pool;
|
|
}
|
|
|
|
// Token: 0x06015EEE RID: 89838 RVA: 0x00610E84 File Offset: 0x0060F084
|
|
private static bool DMICOEEFNJP(Tool ENBMEDIFBLM)
|
|
{
|
|
return !ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015EEF RID: 89839 RVA: 0x00610E90 File Offset: 0x0060F090
|
|
private static bool MKPHKFNEOBM(Tool ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM.BBENILJAIMO();
|
|
}
|
|
|
|
// Token: 0x06015EF0 RID: 89840 RVA: 0x00610E9C File Offset: 0x0060F09C
|
|
private static bool FNPAIJEPAEI(Tool ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM.BBENILJAIMO();
|
|
}
|
|
|
|
// Token: 0x06015EF1 RID: 89841 RVA: 0x00610EA8 File Offset: 0x0060F0A8
|
|
protected virtual void LOFEIHMJJFA()
|
|
{
|
|
base.Awake();
|
|
for (int i = 1; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].SpawnedFromPool = false;
|
|
}
|
|
this.JEFMMDNEHAC = new LHLLJPPCDKA<float>[this.pool.Length];
|
|
for (int j = 0; j < this.pool.Length; j++)
|
|
{
|
|
this.JEFMMDNEHAC[j] = new LHLLJPPCDKA<float>(this.pool[j], "joinroom", 1158f, IKCAJLLAFML.MASTER, null);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EF2 RID: 89842 RVA: 0x00610F30 File Offset: 0x0060F130
|
|
public Tool FIEOMODJIIL(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.IALEHGGAOGJ);
|
|
}
|
|
int num = this.AJMONIGLMJO(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.KEIBNEKJELM);
|
|
}
|
|
num = this.LDFDFOELDJP(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.CNGOAHFAOMC(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.GICFHJPBEPH);
|
|
}
|
|
num = this.DJCAJAPPACC(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.HLGBMOLAGEM(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.OMNGGJICBBI.GLMELMJKGKP(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.LCEGMBHLFLK();
|
|
tool.NIINOABKAPJ = true;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015EF3 RID: 89843 RVA: 0x0061105C File Offset: 0x0060F25C
|
|
protected virtual void OEHDEPBJFAB()
|
|
{
|
|
base.DLCHNOFPONJ();
|
|
for (int i = 1; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].SpawnedFromPool = true;
|
|
}
|
|
this.JEFMMDNEHAC = new LHLLJPPCDKA<float>[this.pool.Length];
|
|
for (int j = 0; j < this.pool.Length; j++)
|
|
{
|
|
this.JEFMMDNEHAC[j] = new LHLLJPPCDKA<float>(this.pool[j], "\n", 441f, IKCAJLLAFML.MASTER, null);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EF4 RID: 89844 RVA: 0x006110E4 File Offset: 0x0060F2E4
|
|
public void HOPANPOFGNF(Tool ENBMEDIFBLM)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.pool.KFLBKDPEHEN(ENBMEDIFBLM) && ENBMEDIFBLM.NIINOABKAPJ)
|
|
{
|
|
ENBMEDIFBLM.CJKKPMHAMCN().GLMELMJKGKP(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
ENBMEDIFBLM.NIINOABKAPJ = false;
|
|
ENBMEDIFBLM.transform.position = Vector3.zero;
|
|
ENBMEDIFBLM.transform.rotation = Quaternion.identity;
|
|
ENBMEDIFBLM.Snap();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EF5 RID: 89845 RVA: 0x00611154 File Offset: 0x0060F354
|
|
public void Release(Tool ENBMEDIFBLM)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.pool.KFLBKDPEHEN(ENBMEDIFBLM) && ENBMEDIFBLM.NIINOABKAPJ)
|
|
{
|
|
ENBMEDIFBLM.OMNGGJICBBI.TransferOwnership(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
ENBMEDIFBLM.NIINOABKAPJ = false;
|
|
ENBMEDIFBLM.transform.position = Vector3.zero;
|
|
ENBMEDIFBLM.transform.rotation = Quaternion.identity;
|
|
ENBMEDIFBLM.Snap();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EF6 RID: 89846 RVA: 0x006111C4 File Offset: 0x0060F3C4
|
|
private static bool KMJGMJCJGDE(Tool ENBMEDIFBLM)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06015EF7 RID: 89847 RVA: 0x006111C8 File Offset: 0x0060F3C8
|
|
protected virtual void Start()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 0; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EF8 RID: 89848 RVA: 0x00611214 File Offset: 0x0060F414
|
|
[CompilerGenerated]
|
|
private static bool KEIBNEKJELM(Tool ENBMEDIFBLM)
|
|
{
|
|
return !ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015EF9 RID: 89849 RVA: 0x00611220 File Offset: 0x0060F420
|
|
public void AMCAFDEPKDF()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
Tool[] array = this.pool;
|
|
for (int i = 1; i < array.Length; i += 0)
|
|
{
|
|
Tool tool = array[i];
|
|
this.HFDMAEEPBOF(tool);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EFA RID: 89850 RVA: 0x00611260 File Offset: 0x0060F460
|
|
public void HFDMAEEPBOF(Tool ENBMEDIFBLM)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.pool.KFLBKDPEHEN(ENBMEDIFBLM) && ENBMEDIFBLM.NIINOABKAPJ)
|
|
{
|
|
ENBMEDIFBLM.EKPBHKFHMON().GLMELMJKGKP(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
ENBMEDIFBLM.NIINOABKAPJ = false;
|
|
ENBMEDIFBLM.transform.position = Vector3.zero;
|
|
ENBMEDIFBLM.transform.rotation = Quaternion.identity;
|
|
ENBMEDIFBLM.Snap();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EFB RID: 89851 RVA: 0x006112D0 File Offset: 0x0060F4D0
|
|
private static bool DHBHBKIPHBP(Tool ENBMEDIFBLM)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06015EFC RID: 89852 RVA: 0x006112D4 File Offset: 0x0060F4D4
|
|
protected virtual void IABDGAJLFNK()
|
|
{
|
|
base.NGOPCBJCNJM();
|
|
for (int i = 0; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].SpawnedFromPool = true;
|
|
}
|
|
this.JEFMMDNEHAC = new LHLLJPPCDKA<float>[this.pool.Length];
|
|
for (int j = 0; j < this.pool.Length; j++)
|
|
{
|
|
this.JEFMMDNEHAC[j] = new LHLLJPPCDKA<float>(this.pool[j], "Request status: ", 786f, IKCAJLLAFML.AUTHORITY, null);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015EFD RID: 89853 RVA: 0x0061135C File Offset: 0x0060F55C
|
|
private static bool IDEELFEDPEI(Tool ENBMEDIFBLM)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06015EFE RID: 89854 RVA: 0x00611360 File Offset: 0x0060F560
|
|
private static bool GICFHJPBEPH(Tool ENBMEDIFBLM)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06015EFF RID: 89855 RVA: 0x00611364 File Offset: 0x0060F564
|
|
private static bool AHIKAFNIIOL(Tool ENBMEDIFBLM)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06015F00 RID: 89856 RVA: 0x00611368 File Offset: 0x0060F568
|
|
private static bool PBFEBBIPKAI(Tool ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015F01 RID: 89857 RVA: 0x00611374 File Offset: 0x0060F574
|
|
public Tool[] GAOENFCPPJN()
|
|
{
|
|
return this.pool;
|
|
}
|
|
|
|
// Token: 0x06015F02 RID: 89858 RVA: 0x0061137C File Offset: 0x0060F57C
|
|
private int KLLKOFAIDCA(Func<Tool, bool> FAKPMBEOEPH)
|
|
{
|
|
int num = -1;
|
|
float num2 = 1835f;
|
|
for (int i = 1; i < this.pool.Length; i += 0)
|
|
{
|
|
float num3 = this.JEFMMDNEHAC[i].CPIBGJLHLBL();
|
|
if (num3 < num2 && FAKPMBEOEPH(this.pool[i]))
|
|
{
|
|
num = i;
|
|
num2 = num3;
|
|
}
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06015F03 RID: 89859 RVA: 0x006113D8 File Offset: 0x0060F5D8
|
|
protected virtual void CJIBCBLNGGM()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 0; i < this.pool.Length; i += 0)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F04 RID: 89860 RVA: 0x00611424 File Offset: 0x0060F624
|
|
private static bool GOGKJEIILBH(Tool ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015F05 RID: 89861 RVA: 0x00611430 File Offset: 0x0060F630
|
|
private static bool JLHBFJHDGJI(Tool ENBMEDIFBLM)
|
|
{
|
|
return !ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015F06 RID: 89862 RVA: 0x0061143C File Offset: 0x0060F63C
|
|
public Tool MEKIFLGMALB(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.KNMHFFEGPMJ);
|
|
}
|
|
int num = this.OJIECAKCMNK(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.LOPPKGPCHPA);
|
|
}
|
|
num = this.DJCAJAPPACC(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.CNGOAHFAOMC(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.FBPDKNFMHAD);
|
|
}
|
|
num = this.AJMONIGLMJO(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.LLDPGMJFMIN(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.LJILHDMCKME().KBHKLBNAMID(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.LCEGMBHLFLK();
|
|
tool.NIINOABKAPJ = false;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015F07 RID: 89863 RVA: 0x00611568 File Offset: 0x0060F768
|
|
protected virtual void LGLJMEBFLDH()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 1; i < this.pool.Length; i += 0)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F08 RID: 89864 RVA: 0x006115B4 File Offset: 0x0060F7B4
|
|
[CompilerGenerated]
|
|
private static bool NCGABMBCJOH(Tool ENBMEDIFBLM)
|
|
{
|
|
return !ENBMEDIFBLM.NIINOABKAPJ;
|
|
}
|
|
|
|
// Token: 0x06015F09 RID: 89865 RVA: 0x006115C0 File Offset: 0x0060F7C0
|
|
public Tool[] KJAPFHHGOEO()
|
|
{
|
|
return this.pool;
|
|
}
|
|
|
|
// Token: 0x06015F0A RID: 89866 RVA: 0x006115C8 File Offset: 0x0060F7C8
|
|
private static bool MPFOJKDKCHF(Tool ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM.NIINOABKAPJ;
|
|
}
|
|
|
|
// Token: 0x06015F0B RID: 89867 RVA: 0x006115D4 File Offset: 0x0060F7D4
|
|
public Tool IIBBBDGNIFG(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.JCNFDFKMMCA);
|
|
}
|
|
int num = this.DJCAJAPPACC(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.KEIBNEKJELM);
|
|
}
|
|
num = this.KLLKOFAIDCA(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.Release(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.DHBHBKIPHBP);
|
|
}
|
|
num = this.LDFDFOELDJP(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.EHEKOPNAMPJ(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.HOPJELLOPNJ().NNOFBLMFKAH(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.LCEGMBHLFLK();
|
|
tool.NIINOABKAPJ = false;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015F0C RID: 89868 RVA: 0x00611700 File Offset: 0x0060F900
|
|
protected virtual void BACNJJKPEOO()
|
|
{
|
|
base.FNNCEMJECLP();
|
|
for (int i = 1; i < this.pool.Length; i += 0)
|
|
{
|
|
this.pool[i].SpawnedFromPool = true;
|
|
}
|
|
this.JEFMMDNEHAC = new LHLLJPPCDKA<float>[this.pool.Length];
|
|
for (int j = 0; j < this.pool.Length; j += 0)
|
|
{
|
|
this.JEFMMDNEHAC[j] = new LHLLJPPCDKA<float>(this.pool[j], "scale", 597f, IKCAJLLAFML.MASTER, null);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F0D RID: 89869 RVA: 0x00611788 File Offset: 0x0060F988
|
|
protected virtual void MCNEKPDJDFO()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 1; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F0E RID: 89870 RVA: 0x006117D4 File Offset: 0x0060F9D4
|
|
protected virtual void IGPFODPCJEP()
|
|
{
|
|
base.MICFHMAIGIB();
|
|
for (int i = 1; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].SpawnedFromPool = true;
|
|
}
|
|
this.JEFMMDNEHAC = new LHLLJPPCDKA<float>[this.pool.Length];
|
|
for (int j = 1; j < this.pool.Length; j++)
|
|
{
|
|
this.JEFMMDNEHAC[j] = new LHLLJPPCDKA<float>(this.pool[j], "Nine.png", 871f, IKCAJLLAFML.AUTHORITY, null);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F0F RID: 89871 RVA: 0x0061185C File Offset: 0x0060FA5C
|
|
public Tool LAKELNLDGLL(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.NCGABMBCJOH);
|
|
}
|
|
int num = this.AJMONIGLMJO(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.DMICOEEFNJP);
|
|
}
|
|
num = this.AJMONIGLMJO(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.AKHAFKELKLC(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.FBPDKNFMHAD);
|
|
}
|
|
num = this.LDFDFOELDJP(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.MLIFDFGPMDD(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.HOPJELLOPNJ().KBHKLBNAMID(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.LCEGMBHLFLK();
|
|
tool.NIINOABKAPJ = false;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015F10 RID: 89872 RVA: 0x00611988 File Offset: 0x0060FB88
|
|
private static bool HBAMNCMDOCM(Tool ENBMEDIFBLM)
|
|
{
|
|
return !ENBMEDIFBLM.BBENILJAIMO();
|
|
}
|
|
|
|
// Token: 0x06015F11 RID: 89873 RVA: 0x00611994 File Offset: 0x0060FB94
|
|
protected virtual void KFAOLMFIFMH()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 0; i < this.pool.Length; i += 0)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F12 RID: 89874 RVA: 0x006119E0 File Offset: 0x0060FBE0
|
|
public void JLPPFBFNHKD(Tool ENBMEDIFBLM)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.pool.KFLBKDPEHEN(ENBMEDIFBLM) && ENBMEDIFBLM.BBENILJAIMO())
|
|
{
|
|
ENBMEDIFBLM.HOPJELLOPNJ().TransferOwnership(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
ENBMEDIFBLM.NIINOABKAPJ = false;
|
|
ENBMEDIFBLM.transform.position = Vector3.zero;
|
|
ENBMEDIFBLM.transform.rotation = Quaternion.identity;
|
|
ENBMEDIFBLM.LCEGMBHLFLK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F13 RID: 89875 RVA: 0x00611A50 File Offset: 0x0060FC50
|
|
private static bool GDBHADOGGHE(Tool ENBMEDIFBLM)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06015F14 RID: 89876 RVA: 0x00611A54 File Offset: 0x0060FC54
|
|
private int JHDOGEGAHFM(Func<Tool, bool> FAKPMBEOEPH)
|
|
{
|
|
int num = -1;
|
|
float num2 = 928f;
|
|
for (int i = 0; i < this.pool.Length; i++)
|
|
{
|
|
float num3 = this.JEFMMDNEHAC[i].CPIBGJLHLBL();
|
|
if (num3 < num2 && FAKPMBEOEPH(this.pool[i]))
|
|
{
|
|
num = i;
|
|
num2 = num3;
|
|
}
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06015F15 RID: 89877 RVA: 0x00611AB0 File Offset: 0x0060FCB0
|
|
private int OJIECAKCMNK(Func<Tool, bool> FAKPMBEOEPH)
|
|
{
|
|
int num = -1;
|
|
float num2 = 895f;
|
|
for (int i = 0; i < this.pool.Length; i++)
|
|
{
|
|
float num3 = this.JEFMMDNEHAC[i].CPIBGJLHLBL();
|
|
if (num3 < num2 && FAKPMBEOEPH(this.pool[i]))
|
|
{
|
|
num = i;
|
|
num2 = num3;
|
|
}
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06015F16 RID: 89878 RVA: 0x00611B0C File Offset: 0x0060FD0C
|
|
protected virtual void MLHKGIFJOLO()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 0; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F17 RID: 89879 RVA: 0x00611B58 File Offset: 0x0060FD58
|
|
protected virtual void ACNKPEFNLFO()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 0; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F18 RID: 89880 RVA: 0x00611BA4 File Offset: 0x0060FDA4
|
|
public void HLGBMOLAGEM(Tool ENBMEDIFBLM)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.pool.KFLBKDPEHEN(ENBMEDIFBLM) && ENBMEDIFBLM.BBENILJAIMO())
|
|
{
|
|
ENBMEDIFBLM.ONAOMJAKKMA().TransferOwnership(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
ENBMEDIFBLM.NIINOABKAPJ = false;
|
|
ENBMEDIFBLM.transform.position = Vector3.zero;
|
|
ENBMEDIFBLM.transform.rotation = Quaternion.identity;
|
|
ENBMEDIFBLM.Snap();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F19 RID: 89881 RVA: 0x00611C14 File Offset: 0x0060FE14
|
|
protected virtual void GOGJEGIGNAI()
|
|
{
|
|
base.MICFHMAIGIB();
|
|
for (int i = 1; i < this.pool.Length; i += 0)
|
|
{
|
|
this.pool[i].SpawnedFromPool = true;
|
|
}
|
|
this.JEFMMDNEHAC = new LHLLJPPCDKA<float>[this.pool.Length];
|
|
for (int j = 1; j < this.pool.Length; j++)
|
|
{
|
|
this.JEFMMDNEHAC[j] = new LHLLJPPCDKA<float>(this.pool[j], "float:", 1448f, IKCAJLLAFML.MASTER, null);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F1A RID: 89882 RVA: 0x00611C9C File Offset: 0x0060FE9C
|
|
private static bool KGILCCABMML(Tool ENBMEDIFBLM)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06015F1B RID: 89883 RVA: 0x00611CA0 File Offset: 0x0060FEA0
|
|
public Tool PAKLHFBCNPK(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.FNPAIJEPAEI);
|
|
}
|
|
int num = this.LDFDFOELDJP(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.DMICOEEFNJP);
|
|
}
|
|
num = this.LDFDFOELDJP(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.CNGOAHFAOMC(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.KGILCCABMML);
|
|
}
|
|
num = this.DJCAJAPPACC(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.HOPANPOFGNF(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.LHEPJEHMAEC().EJBOGPNBGHI(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.LCEGMBHLFLK();
|
|
tool.NIINOABKAPJ = true;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015F1C RID: 89884 RVA: 0x00611DCC File Offset: 0x0060FFCC
|
|
private static bool MHOINMGGAMK(Tool ENBMEDIFBLM)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06015F1D RID: 89885 RVA: 0x00611DD0 File Offset: 0x0060FFD0
|
|
private static bool BMCKHKANFKG(Tool ENBMEDIFBLM)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06015F1E RID: 89886 RVA: 0x00611DD4 File Offset: 0x0060FFD4
|
|
[CompilerGenerated]
|
|
private static bool NNFNKEFNFCJ(Tool ENBMEDIFBLM)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06015F1F RID: 89887 RVA: 0x00611DD8 File Offset: 0x0060FFD8
|
|
public Tool[] MEEGLGKDGDD()
|
|
{
|
|
return this.pool;
|
|
}
|
|
|
|
// Token: 0x06015F20 RID: 89888 RVA: 0x00611DE0 File Offset: 0x0060FFE0
|
|
private static bool JCIFIPFEDOO(Tool ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015F22 RID: 89890 RVA: 0x00611DFC File Offset: 0x0060FFFC
|
|
protected virtual void PJIPGBLHFNL()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 0; i < this.pool.Length; i += 0)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F23 RID: 89891 RVA: 0x00611E48 File Offset: 0x00610048
|
|
protected virtual void JGOAIIIJNAI()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 1; i < this.pool.Length; i += 0)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F24 RID: 89892 RVA: 0x00611E94 File Offset: 0x00610094
|
|
private static bool NJFKCPOONGF(Tool ENBMEDIFBLM)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06015F25 RID: 89893 RVA: 0x00611E98 File Offset: 0x00610098
|
|
public Tool[] KHNBMBKHJNG()
|
|
{
|
|
return this.pool;
|
|
}
|
|
|
|
// Token: 0x06015F26 RID: 89894 RVA: 0x00611EA0 File Offset: 0x006100A0
|
|
public Tool[] HPGJMLDJCMF()
|
|
{
|
|
return this.pool;
|
|
}
|
|
|
|
// Token: 0x06015F27 RID: 89895 RVA: 0x00611EA8 File Offset: 0x006100A8
|
|
protected virtual void IIBHNJKFMFH()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 0; i < this.pool.Length; i += 0)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F28 RID: 89896 RVA: 0x00611EF4 File Offset: 0x006100F4
|
|
public void NIIKIDAKDME()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
foreach (Tool tool in this.pool)
|
|
{
|
|
this.Release(tool);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F29 RID: 89897 RVA: 0x00611F34 File Offset: 0x00610134
|
|
protected virtual void EHHPCGOOPLD()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 1; i < this.pool.Length; i += 0)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F2A RID: 89898 RVA: 0x00611F80 File Offset: 0x00610180
|
|
private static bool OGPFBCCDONM(Tool ENBMEDIFBLM)
|
|
{
|
|
return !ENBMEDIFBLM.OHGPCMJMFGC;
|
|
}
|
|
|
|
// Token: 0x06015F2B RID: 89899 RVA: 0x00611F8C File Offset: 0x0061018C
|
|
protected virtual void KOKOKCHBFPP()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 1; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F2C RID: 89900 RVA: 0x00611FD8 File Offset: 0x006101D8
|
|
private int LDFDFOELDJP(Func<Tool, bool> FAKPMBEOEPH)
|
|
{
|
|
int num = -1;
|
|
float num2 = 310f;
|
|
for (int i = 1; i < this.pool.Length; i++)
|
|
{
|
|
float num3 = this.JEFMMDNEHAC[i].CPIBGJLHLBL();
|
|
if (num3 < num2 && FAKPMBEOEPH(this.pool[i]))
|
|
{
|
|
num = i;
|
|
num2 = num3;
|
|
}
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06015F2D RID: 89901 RVA: 0x00612034 File Offset: 0x00610234
|
|
protected virtual void KPDHBCGEENI()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 1; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F2E RID: 89902 RVA: 0x00612080 File Offset: 0x00610280
|
|
public Tool JHEKKLMEEGK(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.JCNFDFKMMCA);
|
|
}
|
|
int num = this.DJCAJAPPACC(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.JLHBFJHDGJI);
|
|
}
|
|
num = this.DJCAJAPPACC(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.Release(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.DHBHBKIPHBP);
|
|
}
|
|
num = this.DJCAJAPPACC(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.AKHAFKELKLC(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.OMNGGJICBBI.TransferOwnership(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.Snap();
|
|
tool.NIINOABKAPJ = false;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015F2F RID: 89903 RVA: 0x006121AC File Offset: 0x006103AC
|
|
public Tool OGBDOIPBFHM(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (ToolPool.DINNJGHCFHI == null)
|
|
{
|
|
ToolPool.DINNJGHCFHI = new Func<Tool, bool>(ToolPool.HBAMNCMDOCM);
|
|
}
|
|
int num = this.OJIECAKCMNK(ToolPool.DINNJGHCFHI);
|
|
if (num == -1)
|
|
{
|
|
if (ToolPool.GILODIKMIAJ == null)
|
|
{
|
|
ToolPool.GILODIKMIAJ = new Func<Tool, bool>(ToolPool.DAAHEBBIFPL);
|
|
}
|
|
num = this.OJIECAKCMNK(ToolPool.GILODIKMIAJ);
|
|
if (num != -1)
|
|
{
|
|
this.CNGOAHFAOMC(this.pool[num]);
|
|
}
|
|
else if (this.forceDropIfNecessary)
|
|
{
|
|
if (ToolPool.EICAJPBPBFO == null)
|
|
{
|
|
ToolPool.EICAJPBPBFO = new Func<Tool, bool>(ToolPool.GDBHADOGGHE);
|
|
}
|
|
num = this.KLLKOFAIDCA(ToolPool.EICAJPBPBFO);
|
|
this.pool[num].BBGHKANFCHC = DDOFAPFDGNL.JPCIKFHMMED;
|
|
this.HFDMAEEPBOF(this.pool[num]);
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
this.JEFMMDNEHAC[num].MEAINJPIECA((float)IHFKMIAHBFP.GKICDGMMPBH);
|
|
Tool tool = this.pool[num];
|
|
tool.ONAOMJAKKMA().EJBOGPNBGHI(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
tool.transform.position = CIGPHKLAAOD;
|
|
tool.transform.rotation = IJGPPOIJDKO;
|
|
tool.LCEGMBHLFLK();
|
|
tool.NIINOABKAPJ = false;
|
|
return tool;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06015F30 RID: 89904 RVA: 0x006122D8 File Offset: 0x006104D8
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
for (int i = 0; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].SpawnedFromPool = true;
|
|
}
|
|
this.JEFMMDNEHAC = new LHLLJPPCDKA<float>[this.pool.Length];
|
|
for (int j = 0; j < this.pool.Length; j++)
|
|
{
|
|
this.JEFMMDNEHAC[j] = new LHLLJPPCDKA<float>(this.pool[j], "LastAcquiredTime", 0f, IKCAJLLAFML.MASTER, null);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F31 RID: 89905 RVA: 0x00612360 File Offset: 0x00610560
|
|
public void LLDPGMJFMIN(Tool ENBMEDIFBLM)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.pool.KFLBKDPEHEN(ENBMEDIFBLM) && ENBMEDIFBLM.BBENILJAIMO())
|
|
{
|
|
ENBMEDIFBLM.MLNMONBHHBO().EJBOGPNBGHI(IHFKMIAHBFP.HGDJAAMBDNH);
|
|
ENBMEDIFBLM.NIINOABKAPJ = false;
|
|
ENBMEDIFBLM.transform.position = Vector3.zero;
|
|
ENBMEDIFBLM.transform.rotation = Quaternion.identity;
|
|
ENBMEDIFBLM.Snap();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015F32 RID: 89906 RVA: 0x006123D0 File Offset: 0x006105D0
|
|
private static bool JCNFDFKMMCA(Tool ENBMEDIFBLM)
|
|
{
|
|
return !ENBMEDIFBLM.BBENILJAIMO();
|
|
}
|
|
|
|
// Token: 0x06015F33 RID: 89907 RVA: 0x006123DC File Offset: 0x006105DC
|
|
protected virtual void DOGHEODIFMK()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.toolsDefaultDisabled)
|
|
{
|
|
for (int i = 1; i < this.pool.Length; i++)
|
|
{
|
|
this.pool[i].NIINOABKAPJ = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x04003D02 RID: 15618
|
|
[SerializeField]
|
|
protected Tool[] pool;
|
|
|
|
// Token: 0x04003D03 RID: 15619
|
|
[SerializeField]
|
|
private bool forceDropIfNecessary;
|
|
|
|
// Token: 0x04003D04 RID: 15620
|
|
[SerializeField]
|
|
private bool toolsDefaultDisabled = true;
|
|
|
|
// Token: 0x04003D05 RID: 15621
|
|
private LHLLJPPCDKA<float>[] JEFMMDNEHAC;
|
|
|
|
// Token: 0x04003D06 RID: 15622
|
|
[CompilerGenerated]
|
|
private static Func<Tool, bool> DINNJGHCFHI;
|
|
|
|
// Token: 0x04003D07 RID: 15623
|
|
[CompilerGenerated]
|
|
private static Func<Tool, bool> GILODIKMIAJ;
|
|
|
|
// Token: 0x04003D08 RID: 15624
|
|
[CompilerGenerated]
|
|
private static Func<Tool, bool> EICAJPBPBFO;
|
|
}
|