571 lines
17 KiB
C#
571 lines
17 KiB
C#
using System;
|
|
using System.Collections;
|
|
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
namespace RecRoom.Sandbox
|
|
{
|
|
// Token: 0x02000E17 RID: 3607
|
|
public class SandboxStatusVisuals : MonoBehaviour
|
|
{
|
|
// Token: 0x0601D7CF RID: 120783 RVA: 0x00807474 File Offset: 0x00805674
|
|
private void KFOEFMHBBMJ()
|
|
{
|
|
this.otherModeVisualRoot.gameObject.SetActive(this.HPCKCOBKJLK == SandboxStatusVisuals.PECNKPNHFPM.INACTIVE);
|
|
this.notHostVisualRoot.gameObject.SetActive(this.HPCKCOBKJLK == SandboxStatusVisuals.PECNKPNHFPM.NOT_HOST);
|
|
this.notPlayerCreatedSessionVisualRoot.gameObject.SetActive(this.HPCKCOBKJLK == SandboxStatusVisuals.PECNKPNHFPM.NOT_PLAYER_CREATED);
|
|
this.outOfResourcesVisualRoot.gameObject.SetActive(this.HPCKCOBKJLK == SandboxStatusVisuals.PECNKPNHFPM.OUT_OF_RESOURCES);
|
|
bool flag = this.interactionBlockedStates.KFLBKDPEHEN(this.HPCKCOBKJLK);
|
|
this.defaultBackgroundRoot.gameObject.SetActive(!flag);
|
|
this.interactionBlockedBackgroundRoot.gameObject.SetActive(flag);
|
|
}
|
|
|
|
// Token: 0x0601D7D0 RID: 120784 RVA: 0x0080751C File Offset: 0x0080571C
|
|
private void JCKLDJCJAED(SandboxStatusVisuals.PECNKPNHFPM NOBAPCOKFIL)
|
|
{
|
|
if (this.IHLGIDABOLB != NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.PPFANOABMCF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601D7D1 RID: 120785 RVA: 0x00807538 File Offset: 0x00805738
|
|
private void IEEGLLHPKDF(SandboxStatusVisuals.PECNKPNHFPM NOBAPCOKFIL)
|
|
{
|
|
if (this.IHLGIDABOLB != NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.KFOEFMHBBMJ();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601D7D2 RID: 120786 RVA: 0x00807554 File Offset: 0x00805754
|
|
private IEnumerator NFNAEGCIMPM()
|
|
{
|
|
yield return null;
|
|
for (;;)
|
|
{
|
|
if (!SessionManager.NPLEGJCKAEB)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.NOT_PLAYER_CREATED;
|
|
}
|
|
else if (this.OJPFECKPAGP.IGOCDMHGMGF)
|
|
{
|
|
if (!NetworkedSingletonMonoBehaviour<EventManager>.NCKMBFBMBFM.PBKJHFMIENG)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.NOT_HOST;
|
|
}
|
|
else if (!this.sandboxMachine.FMEFDKCCOOF.MDJIBEHPJAM)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.OUT_OF_RESOURCES;
|
|
}
|
|
else
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.ACTIVE;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.INACTIVE;
|
|
}
|
|
yield return new WaitForSeconds(this.visualUpdateInterval);
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x0601D7D3 RID: 120787 RVA: 0x00807570 File Offset: 0x00805770
|
|
private SandboxStatusVisuals.PECNKPNHFPM EBMHMCJGGJA()
|
|
{
|
|
return this.IHLGIDABOLB;
|
|
}
|
|
|
|
// Token: 0x0601D7D4 RID: 120788 RVA: 0x00807578 File Offset: 0x00805778
|
|
private void LIFBOLKNLCE(SandboxStatusVisuals.PECNKPNHFPM NOBAPCOKFIL)
|
|
{
|
|
if (this.IHLGIDABOLB != NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.LDKFCPOHBFA();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601D7D5 RID: 120789 RVA: 0x00807594 File Offset: 0x00805794
|
|
private void KFMEHMEDGBE()
|
|
{
|
|
this.OJPFECKPAGP = NetworkedSingletonMonoBehaviour<SandboxRoomManager>.NCKMBFBMBFM;
|
|
}
|
|
|
|
// Token: 0x0601D7D6 RID: 120790 RVA: 0x008075A4 File Offset: 0x008057A4
|
|
private void OnEnable()
|
|
{
|
|
this.HPGBJOBIKPA = base.StartCoroutine(this.NFNAEGCIMPM());
|
|
}
|
|
|
|
// Token: 0x0601D7D7 RID: 120791 RVA: 0x008075B8 File Offset: 0x008057B8
|
|
private void FKICNDLJPNG()
|
|
{
|
|
this.MAJNJMFPAEI(this.HPGBJOBIKPA);
|
|
this.HPGBJOBIKPA = null;
|
|
}
|
|
|
|
// Token: 0x0601D7D8 RID: 120792 RVA: 0x008075D0 File Offset: 0x008057D0
|
|
private IEnumerator DAPMCOBHKGB()
|
|
{
|
|
yield return null;
|
|
for (;;)
|
|
{
|
|
if (!SessionManager.NPLEGJCKAEB)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.NOT_PLAYER_CREATED;
|
|
}
|
|
else if (this.OJPFECKPAGP.IGOCDMHGMGF)
|
|
{
|
|
if (!NetworkedSingletonMonoBehaviour<EventManager>.NCKMBFBMBFM.PBKJHFMIENG)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.NOT_HOST;
|
|
}
|
|
else if (!this.sandboxMachine.FMEFDKCCOOF.MDJIBEHPJAM)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.OUT_OF_RESOURCES;
|
|
}
|
|
else
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.ACTIVE;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.INACTIVE;
|
|
}
|
|
yield return new WaitForSeconds(this.visualUpdateInterval);
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x0601D7D9 RID: 120793 RVA: 0x008075EC File Offset: 0x008057EC
|
|
private IEnumerator MLBKEDAOEIN()
|
|
{
|
|
yield return null;
|
|
for (;;)
|
|
{
|
|
if (!SessionManager.NPLEGJCKAEB)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.NOT_PLAYER_CREATED;
|
|
}
|
|
else if (this.OJPFECKPAGP.IGOCDMHGMGF)
|
|
{
|
|
if (!NetworkedSingletonMonoBehaviour<EventManager>.NCKMBFBMBFM.PBKJHFMIENG)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.NOT_HOST;
|
|
}
|
|
else if (!this.sandboxMachine.FMEFDKCCOOF.MDJIBEHPJAM)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.OUT_OF_RESOURCES;
|
|
}
|
|
else
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.ACTIVE;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.INACTIVE;
|
|
}
|
|
yield return new WaitForSeconds(this.visualUpdateInterval);
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x0601D7DA RID: 120794 RVA: 0x00807608 File Offset: 0x00805808
|
|
private SandboxStatusVisuals.PECNKPNHFPM EEPFCKMJOGK()
|
|
{
|
|
return this.IHLGIDABOLB;
|
|
}
|
|
|
|
// Token: 0x0601D7DB RID: 120795 RVA: 0x00807610 File Offset: 0x00805810
|
|
private void JDBBIJNCKPD(SandboxStatusVisuals.PECNKPNHFPM NOBAPCOKFIL)
|
|
{
|
|
if (this.IHLGIDABOLB != NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.LDKFCPOHBFA();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601D7DC RID: 120796 RVA: 0x0080762C File Offset: 0x0080582C
|
|
private void ACJGCKEMJIC()
|
|
{
|
|
this.MAJNJMFPAEI(this.HPGBJOBIKPA);
|
|
this.HPGBJOBIKPA = null;
|
|
}
|
|
|
|
// Token: 0x0601D7DD RID: 120797 RVA: 0x00807644 File Offset: 0x00805844
|
|
private void DFGCDCKFIMC(SandboxStatusVisuals.PECNKPNHFPM NOBAPCOKFIL)
|
|
{
|
|
if (this.IHLGIDABOLB != NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.PPFANOABMCF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601D7DE RID: 120798 RVA: 0x00807660 File Offset: 0x00805860
|
|
private void GOPFALIGHMF(SandboxStatusVisuals.PECNKPNHFPM NOBAPCOKFIL)
|
|
{
|
|
if (this.IHLGIDABOLB != NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.KFOEFMHBBMJ();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601D7DF RID: 120799 RVA: 0x0080767C File Offset: 0x0080587C
|
|
private void GIEADMMJCKD()
|
|
{
|
|
this.MAJNJMFPAEI(this.HPGBJOBIKPA);
|
|
this.HPGBJOBIKPA = null;
|
|
}
|
|
|
|
// Token: 0x0601D7E0 RID: 120800 RVA: 0x00807694 File Offset: 0x00805894
|
|
private void OnDisable()
|
|
{
|
|
this.MAJNJMFPAEI(this.HPGBJOBIKPA);
|
|
this.HPGBJOBIKPA = null;
|
|
}
|
|
|
|
// Token: 0x0601D7E1 RID: 120801 RVA: 0x008076AC File Offset: 0x008058AC
|
|
private IEnumerator EBMIJMEFABG()
|
|
{
|
|
yield return null;
|
|
for (;;)
|
|
{
|
|
if (!SessionManager.NPLEGJCKAEB)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.NOT_PLAYER_CREATED;
|
|
}
|
|
else if (this.OJPFECKPAGP.IGOCDMHGMGF)
|
|
{
|
|
if (!NetworkedSingletonMonoBehaviour<EventManager>.NCKMBFBMBFM.PBKJHFMIENG)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.NOT_HOST;
|
|
}
|
|
else if (!this.sandboxMachine.FMEFDKCCOOF.MDJIBEHPJAM)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.OUT_OF_RESOURCES;
|
|
}
|
|
else
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.ACTIVE;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.INACTIVE;
|
|
}
|
|
yield return new WaitForSeconds(this.visualUpdateInterval);
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x0601D7E2 RID: 120802 RVA: 0x008076C8 File Offset: 0x008058C8
|
|
private void KAGPPABOJEJ(SandboxStatusVisuals.PECNKPNHFPM NOBAPCOKFIL)
|
|
{
|
|
if (this.IHLGIDABOLB != NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.LDKFCPOHBFA();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601D7E3 RID: 120803 RVA: 0x008076E4 File Offset: 0x008058E4
|
|
private void LPDLCFGFIFO()
|
|
{
|
|
this.otherModeVisualRoot.gameObject.SetActive(this.NDIFOGPCLPM() == SandboxStatusVisuals.PECNKPNHFPM.ACTIVE);
|
|
this.notHostVisualRoot.gameObject.SetActive(this.EBMHMCJGGJA() == (SandboxStatusVisuals.PECNKPNHFPM)6);
|
|
this.notPlayerCreatedSessionVisualRoot.gameObject.SetActive(this.HPCKCOBKJLK == (SandboxStatusVisuals.PECNKPNHFPM)5);
|
|
this.outOfResourcesVisualRoot.gameObject.SetActive(this.EEPFCKMJOGK() == SandboxStatusVisuals.PECNKPNHFPM.INACTIVE);
|
|
bool flag = this.interactionBlockedStates.KFLBKDPEHEN(this.HPCKCOBKJLK);
|
|
this.defaultBackgroundRoot.gameObject.SetActive(flag);
|
|
this.interactionBlockedBackgroundRoot.gameObject.SetActive(flag);
|
|
}
|
|
|
|
// Token: 0x0601D7E5 RID: 120805 RVA: 0x008077A8 File Offset: 0x008059A8
|
|
private void FJPIPJOJLNP(SandboxStatusVisuals.PECNKPNHFPM NOBAPCOKFIL)
|
|
{
|
|
if (this.IHLGIDABOLB != NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.LDKFCPOHBFA();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601D7E6 RID: 120806 RVA: 0x008077C4 File Offset: 0x008059C4
|
|
private void AIGNIFGNLGH()
|
|
{
|
|
this.MAJNJMFPAEI(this.HPGBJOBIKPA);
|
|
this.HPGBJOBIKPA = null;
|
|
}
|
|
|
|
// Token: 0x0601D7E7 RID: 120807 RVA: 0x008077DC File Offset: 0x008059DC
|
|
private void Start()
|
|
{
|
|
this.OJPFECKPAGP = NetworkedSingletonMonoBehaviour<SandboxRoomManager>.NCKMBFBMBFM;
|
|
}
|
|
|
|
// Token: 0x0601D7E8 RID: 120808 RVA: 0x008077EC File Offset: 0x008059EC
|
|
private void HHLHLFMIICE(SandboxStatusVisuals.PECNKPNHFPM NOBAPCOKFIL)
|
|
{
|
|
if (this.IHLGIDABOLB != NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.PPFANOABMCF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601D7E9 RID: 120809 RVA: 0x00807808 File Offset: 0x00805A08
|
|
private void AMCANMJHAEH()
|
|
{
|
|
this.OJPFECKPAGP = NetworkedSingletonMonoBehaviour<SandboxRoomManager>.NCKMBFBMBFM;
|
|
}
|
|
|
|
// Token: 0x0601D7EA RID: 120810 RVA: 0x00807818 File Offset: 0x00805A18
|
|
private void PINHMNLCHGK()
|
|
{
|
|
this.OJPFECKPAGP = NetworkedSingletonMonoBehaviour<SandboxRoomManager>.NCKMBFBMBFM;
|
|
}
|
|
|
|
// Token: 0x0601D7EB RID: 120811 RVA: 0x00807828 File Offset: 0x00805A28
|
|
private void BMOMOGKLJDF(SandboxStatusVisuals.PECNKPNHFPM NOBAPCOKFIL)
|
|
{
|
|
if (this.IHLGIDABOLB != NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.KFOEFMHBBMJ();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000D99 RID: 3481
|
|
// (get) Token: 0x0601D7EC RID: 120812 RVA: 0x00807844 File Offset: 0x00805A44
|
|
// (set) Token: 0x0601D7F1 RID: 120817 RVA: 0x008078A4 File Offset: 0x00805AA4
|
|
private SandboxStatusVisuals.PECNKPNHFPM HPCKCOBKJLK
|
|
{
|
|
get
|
|
{
|
|
return this.IHLGIDABOLB;
|
|
}
|
|
set
|
|
{
|
|
if (this.IHLGIDABOLB != value)
|
|
{
|
|
this.IHLGIDABOLB = value;
|
|
this.KFOEFMHBBMJ();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601D7ED RID: 120813 RVA: 0x0080784C File Offset: 0x00805A4C
|
|
private void JNFJAOOKCHK()
|
|
{
|
|
this.MAJNJMFPAEI(this.HPGBJOBIKPA);
|
|
this.HPGBJOBIKPA = null;
|
|
}
|
|
|
|
// Token: 0x0601D7EE RID: 120814 RVA: 0x00807864 File Offset: 0x00805A64
|
|
private IEnumerator BGHCLEDIAIC()
|
|
{
|
|
yield return null;
|
|
for (;;)
|
|
{
|
|
if (!SessionManager.NPLEGJCKAEB)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.NOT_PLAYER_CREATED;
|
|
}
|
|
else if (this.OJPFECKPAGP.IGOCDMHGMGF)
|
|
{
|
|
if (!NetworkedSingletonMonoBehaviour<EventManager>.NCKMBFBMBFM.PBKJHFMIENG)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.NOT_HOST;
|
|
}
|
|
else if (!this.sandboxMachine.FMEFDKCCOOF.MDJIBEHPJAM)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.OUT_OF_RESOURCES;
|
|
}
|
|
else
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.ACTIVE;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.INACTIVE;
|
|
}
|
|
yield return new WaitForSeconds(this.visualUpdateInterval);
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x0601D7EF RID: 120815 RVA: 0x00807880 File Offset: 0x00805A80
|
|
private void OMKBNLGFNIL()
|
|
{
|
|
this.OJPFECKPAGP = NetworkedSingletonMonoBehaviour<SandboxRoomManager>.NCKMBFBMBFM;
|
|
}
|
|
|
|
// Token: 0x0601D7F0 RID: 120816 RVA: 0x00807890 File Offset: 0x00805A90
|
|
private void MKPCNIFHJHM()
|
|
{
|
|
this.HPGBJOBIKPA = base.StartCoroutine(this.NFNAEGCIMPM());
|
|
}
|
|
|
|
// Token: 0x0601D7F2 RID: 120818 RVA: 0x008078C0 File Offset: 0x00805AC0
|
|
private void LDKFCPOHBFA()
|
|
{
|
|
this.otherModeVisualRoot.gameObject.SetActive(this.NDIFOGPCLPM() == SandboxStatusVisuals.PECNKPNHFPM.INACTIVE);
|
|
this.notHostVisualRoot.gameObject.SetActive(this.NDIFOGPCLPM() == (SandboxStatusVisuals.PECNKPNHFPM)7);
|
|
this.notPlayerCreatedSessionVisualRoot.gameObject.SetActive(this.NDIFOGPCLPM() == (SandboxStatusVisuals.PECNKPNHFPM)8);
|
|
this.outOfResourcesVisualRoot.gameObject.SetActive(this.HPCKCOBKJLK == SandboxStatusVisuals.PECNKPNHFPM.OUT_OF_RESOURCES);
|
|
bool flag = this.interactionBlockedStates.KFLBKDPEHEN(this.NDIFOGPCLPM());
|
|
this.defaultBackgroundRoot.gameObject.SetActive(!flag);
|
|
this.interactionBlockedBackgroundRoot.gameObject.SetActive(flag);
|
|
}
|
|
|
|
// Token: 0x0601D7F3 RID: 120819 RVA: 0x00807968 File Offset: 0x00805B68
|
|
private void PMBHAOBPKJA(SandboxStatusVisuals.PECNKPNHFPM NOBAPCOKFIL)
|
|
{
|
|
if (this.IHLGIDABOLB != NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.KFOEFMHBBMJ();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601D7F4 RID: 120820 RVA: 0x00807984 File Offset: 0x00805B84
|
|
private SandboxStatusVisuals.PECNKPNHFPM NDIFOGPCLPM()
|
|
{
|
|
return this.IHLGIDABOLB;
|
|
}
|
|
|
|
// Token: 0x0601D7F5 RID: 120821 RVA: 0x0080798C File Offset: 0x00805B8C
|
|
private void KCKPOOJHBNO()
|
|
{
|
|
this.OJPFECKPAGP = NetworkedSingletonMonoBehaviour<SandboxRoomManager>.NCKMBFBMBFM;
|
|
}
|
|
|
|
// Token: 0x0601D7F6 RID: 120822 RVA: 0x0080799C File Offset: 0x00805B9C
|
|
private void CJIBCBLNGGM()
|
|
{
|
|
this.OJPFECKPAGP = NetworkedSingletonMonoBehaviour<SandboxRoomManager>.NCKMBFBMBFM;
|
|
}
|
|
|
|
// Token: 0x0601D7F7 RID: 120823 RVA: 0x008079AC File Offset: 0x00805BAC
|
|
private IEnumerator LFNLCJPOKIG()
|
|
{
|
|
yield return null;
|
|
for (;;)
|
|
{
|
|
if (!SessionManager.NPLEGJCKAEB)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.NOT_PLAYER_CREATED;
|
|
}
|
|
else if (this.OJPFECKPAGP.IGOCDMHGMGF)
|
|
{
|
|
if (!NetworkedSingletonMonoBehaviour<EventManager>.NCKMBFBMBFM.PBKJHFMIENG)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.NOT_HOST;
|
|
}
|
|
else if (!this.sandboxMachine.FMEFDKCCOOF.MDJIBEHPJAM)
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.OUT_OF_RESOURCES;
|
|
}
|
|
else
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.ACTIVE;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.HPCKCOBKJLK = SandboxStatusVisuals.PECNKPNHFPM.INACTIVE;
|
|
}
|
|
yield return new WaitForSeconds(this.visualUpdateInterval);
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x0601D7F8 RID: 120824 RVA: 0x008079C8 File Offset: 0x00805BC8
|
|
private void PPFANOABMCF()
|
|
{
|
|
this.otherModeVisualRoot.gameObject.SetActive(this.EEPFCKMJOGK() == SandboxStatusVisuals.PECNKPNHFPM.ACTIVE);
|
|
this.notHostVisualRoot.gameObject.SetActive(this.HPCKCOBKJLK == (SandboxStatusVisuals.PECNKPNHFPM)7);
|
|
this.notPlayerCreatedSessionVisualRoot.gameObject.SetActive(this.NDIFOGPCLPM() == SandboxStatusVisuals.PECNKPNHFPM.NOT_HOST);
|
|
this.outOfResourcesVisualRoot.gameObject.SetActive(this.HPCKCOBKJLK == SandboxStatusVisuals.PECNKPNHFPM.INACTIVE);
|
|
bool flag = this.interactionBlockedStates.KFLBKDPEHEN(this.NDIFOGPCLPM());
|
|
this.defaultBackgroundRoot.gameObject.SetActive(flag);
|
|
this.interactionBlockedBackgroundRoot.gameObject.SetActive(flag);
|
|
}
|
|
|
|
// Token: 0x04004D09 RID: 19721
|
|
[SerializeField]
|
|
private Transform otherModeVisualRoot;
|
|
|
|
// Token: 0x04004D0A RID: 19722
|
|
[SerializeField]
|
|
private Transform notHostVisualRoot;
|
|
|
|
// Token: 0x04004D0B RID: 19723
|
|
[FormerlySerializedAs("notPrivateVisualRoot")]
|
|
[SerializeField]
|
|
private Transform notPlayerCreatedSessionVisualRoot;
|
|
|
|
// Token: 0x04004D0C RID: 19724
|
|
[SerializeField]
|
|
private Transform outOfResourcesVisualRoot;
|
|
|
|
// Token: 0x04004D0D RID: 19725
|
|
[SerializeField]
|
|
private Transform defaultBackgroundRoot;
|
|
|
|
// Token: 0x04004D0E RID: 19726
|
|
[SerializeField]
|
|
private Transform interactionBlockedBackgroundRoot;
|
|
|
|
// Token: 0x04004D0F RID: 19727
|
|
[SerializeField]
|
|
private SandboxStatusVisuals.PECNKPNHFPM[] interactionBlockedStates;
|
|
|
|
// Token: 0x04004D10 RID: 19728
|
|
[SerializeField]
|
|
private float visualUpdateInterval = 0.5f;
|
|
|
|
// Token: 0x04004D11 RID: 19729
|
|
[SerializeField]
|
|
[ENMFCLPAKBJ(FOGKDGELKHN.Parent, false)]
|
|
private SandboxMachine sandboxMachine;
|
|
|
|
// Token: 0x04004D12 RID: 19730
|
|
private SandboxRoomManager OJPFECKPAGP;
|
|
|
|
// Token: 0x04004D13 RID: 19731
|
|
private Coroutine HPGBJOBIKPA;
|
|
|
|
// Token: 0x04004D14 RID: 19732
|
|
private SandboxStatusVisuals.PECNKPNHFPM IHLGIDABOLB = SandboxStatusVisuals.PECNKPNHFPM.INVALID;
|
|
|
|
// Token: 0x02000E18 RID: 3608
|
|
private enum PECNKPNHFPM
|
|
{
|
|
// Token: 0x04004D16 RID: 19734
|
|
INVALID = -1,
|
|
// Token: 0x04004D17 RID: 19735
|
|
ACTIVE,
|
|
// Token: 0x04004D18 RID: 19736
|
|
INACTIVE,
|
|
// Token: 0x04004D19 RID: 19737
|
|
NOT_HOST,
|
|
// Token: 0x04004D1A RID: 19738
|
|
NOT_PLAYER_CREATED,
|
|
// Token: 0x04004D1B RID: 19739
|
|
OUT_OF_RESOURCES
|
|
}
|
|
}
|
|
}
|