2069 lines
64 KiB
C#
2069 lines
64 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Threading;
|
|
using RecNet;
|
|
using RecRoom;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020009CA RID: 2506
|
|
public class EventManager : NetworkedSingletonMonoBehaviour<EventManager>
|
|
{
|
|
// Token: 0x06012D6D RID: 77165 RVA: 0x0055B728 File Offset: 0x00559928
|
|
public void FJIDKHCEHII(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.NNHGOLEJECG;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.NNHGOLEJECG, (Action<bool>)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x14000058 RID: 88
|
|
// (add) Token: 0x06012D6E RID: 77166 RVA: 0x0055B760 File Offset: 0x00559960
|
|
// (remove) Token: 0x06012DCF RID: 77263 RVA: 0x0055CE8C File Offset: 0x0055B08C
|
|
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
|
public event Action<bool> MKBHIJAPLMK;
|
|
|
|
// Token: 0x06012D6F RID: 77167 RVA: 0x0055B798 File Offset: 0x00559998
|
|
private void MGDPCKAHCEJ()
|
|
{
|
|
if (this.JOAEMAEAEIF() != null)
|
|
{
|
|
this.CFFHNCPOOCP = new List<long>(this.ENAPEKJNLNI());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D70 RID: 77168 RVA: 0x0055B7B8 File Offset: 0x005599B8
|
|
private void EIGFNEBPPAP(bool LKMJIMEENHA)
|
|
{
|
|
this.JHHIFBHPJCJ(LKMJIMEENHA);
|
|
}
|
|
|
|
// Token: 0x06012D71 RID: 77169 RVA: 0x0055B7C4 File Offset: 0x005599C4
|
|
private IEnumerator HHCMPEDDFKM()
|
|
{
|
|
yield return new WaitForSeconds(2.5f);
|
|
while (this.JBAPKOFLLJD && !this.PBKJHFMIENG)
|
|
{
|
|
if (!this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, "You are not allowed on stage!", 3f, null, false);
|
|
yield return new WaitForSeconds(3f);
|
|
if (!this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, "Respawning offstage...", 2f, null, false);
|
|
yield return new WaitForSeconds(2f);
|
|
RecRoomSceneManager.NCKMBFBMBFM.HDNIEJJBLGI.CAHIBCONCCH(false);
|
|
yield return new WaitForSeconds(3f);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
yield return new WaitForSeconds(3f);
|
|
}
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x06012D72 RID: 77170 RVA: 0x0055B7E0 File Offset: 0x005599E0
|
|
private bool CNJILOFDOCF()
|
|
{
|
|
if (!Player.LocalPlayerExists || this.FGCDJNNEJLO())
|
|
{
|
|
return false;
|
|
}
|
|
bool flag = false;
|
|
RaycastHit[] array = Physics.RaycastAll(Player.LocalPlayer.HFDJIFFPEFM().transform.position + Vector3.up * 1584f, Vector3.down, 803f, -81);
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
EventTeleportRestriction componentInChildren = raycastHit.collider.GetComponentInChildren<EventTeleportRestriction>();
|
|
if (componentInChildren != null && componentInChildren.OIJKMIMKDCN() == EventTeleportRestriction.LKGMKENGJGF.HOST && this.JBAPKOFLLJD)
|
|
{
|
|
flag = true;
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
return true;
|
|
}
|
|
RaycastHit[] array3 = Physics.RaycastAll(Player.LocalPlayer.NGFPOMIFLMF.transform.position + Vector3.up * 938f, Vector3.down, 1652f, 125);
|
|
foreach (RaycastHit raycastHit2 in array3)
|
|
{
|
|
EventTeleportRestriction componentInChildren2 = raycastHit2.collider.GetComponentInChildren<EventTeleportRestriction>();
|
|
if (componentInChildren2 != null && componentInChildren2.OIJKMIMKDCN() == EventTeleportRestriction.LKGMKENGJGF.HOST && this.KECEJIJAGJK())
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06012D73 RID: 77171 RVA: 0x0055B948 File Offset: 0x00559B48
|
|
public long MJKAFLHNKDH()
|
|
{
|
|
return this.KLAEAANEEHD.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012D74 RID: 77172 RVA: 0x0055B958 File Offset: 0x00559B58
|
|
public bool JHGJBNNGKMK()
|
|
{
|
|
return this.JFIMMPBCKEL(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x06012D75 RID: 77173 RVA: 0x0055B968 File Offset: 0x00559B68
|
|
private void ODIJCBNOMCG(bool OPLHAKFKKPJ)
|
|
{
|
|
this.JBAPKOFLLJD = OPLHAKFKKPJ;
|
|
}
|
|
|
|
// Token: 0x06012D76 RID: 77174 RVA: 0x0055B974 File Offset: 0x00559B74
|
|
public bool IsPlayerAHost(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && (this.IsCreator(JEFGMHBLLKI) || (this.CFFHNCPOOCP != null && this.CFFHNCPOOCP.Contains(JEFGMHBLLKI.KJOEMGEOBBA)));
|
|
}
|
|
|
|
// Token: 0x06012D77 RID: 77175 RVA: 0x0055B9B0 File Offset: 0x00559BB0
|
|
public bool MKGDHOIOIHP()
|
|
{
|
|
return this.GJBAGBHPHHG.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012D78 RID: 77176 RVA: 0x0055B9C0 File Offset: 0x00559BC0
|
|
public void LMMHJDHCEMG(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.EKGMPHMHBEM;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.EKGMPHMHBEM, (Action<bool>)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06012D79 RID: 77177 RVA: 0x0055B9F8 File Offset: 0x00559BF8
|
|
private void OMBAECNMFOJ()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.PAHKOCPEDMB((ScreenSpaceNotificationManager.DBNGPDFKLEK)7, (!this.HPEJCFNNHPG()) ? "action" : "Spin", 1789f, null, true);
|
|
}
|
|
if (this.NNHGOLEJECG != null)
|
|
{
|
|
this.NNHGOLEJECG(this.AEBEBMJIPBM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D7A RID: 77178 RVA: 0x0055BA58 File Offset: 0x00559C58
|
|
public void CHBJIAJFNBF(bool BKOKGJMJPOM)
|
|
{
|
|
base.JNFDHNMMHGN().FLCIMLGAIKH("_TintColor", IHFKMIAHBFP.HGDJAAMBDNH, new object[] { BKOKGJMJPOM });
|
|
}
|
|
|
|
// Token: 0x06012D7B RID: 77179 RVA: 0x0055BA80 File Offset: 0x00559C80
|
|
private long[] JDFODCGBHPK()
|
|
{
|
|
return this.LHKPGKBAAAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012D7C RID: 77180 RVA: 0x0055BA90 File Offset: 0x00559C90
|
|
private void AIOBPHLEDCD(bool NOBAPCOKFIL)
|
|
{
|
|
this.FLMAHGNJIHO.MEAINJPIECA(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06012D7D RID: 77181 RVA: 0x0055BAA0 File Offset: 0x00559CA0
|
|
public void OGMPLEDHHNO(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
if (this.NHKPGLDFGLE(IHFKMIAHBFP.JEFGMHBLLKI) && !this.KOHANAJDNCM(JEFGMHBLLKI))
|
|
{
|
|
if (this.IsPlayerAHost(JEFGMHBLLKI))
|
|
{
|
|
List<long> list = new List<long>(this.JKMDEHAJAMD);
|
|
list.Remove(JEFGMHBLLKI.KKHOKFAABAM());
|
|
this.JKMDEHAJAMD = list.ToArray();
|
|
}
|
|
else
|
|
{
|
|
this.JKMDEHAJAMD = new List<long>(this.ACJGEEKAMBA()) { JEFGMHBLLKI.NGDOGHJPABB() }.ToArray();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D7E RID: 77182 RVA: 0x0055BB24 File Offset: 0x00559D24
|
|
private void OJKCDIDBOPA(Player JEFGMHBLLKI)
|
|
{
|
|
if (JEFGMHBLLKI.NHDDPGADJPJ)
|
|
{
|
|
this.KDCLEBPHMJD();
|
|
if (this.MLJDIOEJNIN)
|
|
{
|
|
this.PANJJFDJOIA();
|
|
}
|
|
if (!this.JBAPKOFLLJD)
|
|
{
|
|
this.LFDALGBOJBI();
|
|
}
|
|
else
|
|
{
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
if (!this.AEBEBMJIPBM)
|
|
{
|
|
this.KDEAGGNLEII();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D7F RID: 77183 RVA: 0x0055BB80 File Offset: 0x00559D80
|
|
public string CNIFPCLMGFH()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
return PEDNLMAHGBP.FDJJBPMIGGL().CPNMGJBEIGG();
|
|
}
|
|
return "StorefrontType";
|
|
}
|
|
|
|
// Token: 0x06012D80 RID: 77184 RVA: 0x0055BB9C File Offset: 0x00559D9C
|
|
private void ENDAEGHBIBN(LNJFBGIBLHA JEHJKFMBELH)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
LNJFBGIBLHA[] array = IHFKMIAHBFP.NCLHHNLDGNE;
|
|
for (int i = 1; i < array.Length; i++)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array[i];
|
|
if (this.NGGKKELEBIG(lnjfbgiblha))
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
this.FNKCNPKBIEL(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D81 RID: 77185 RVA: 0x0055BBE8 File Offset: 0x00559DE8
|
|
public void KKININKKMIH(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
if (this.ODPCCMEGKKE(IHFKMIAHBFP.JEFGMHBLLKI) && !this.ODPCCMEGKKE(JEFGMHBLLKI))
|
|
{
|
|
if (this.ILHLPFBFKPB(JEFGMHBLLKI))
|
|
{
|
|
List<long> list = new List<long>(this.ANOGFONDGLK());
|
|
list.Remove(JEFGMHBLLKI.NGDOGHJPABB());
|
|
this.BKIKLAJNLIE(list.ToArray());
|
|
}
|
|
else
|
|
{
|
|
this.BKIKLAJNLIE(new List<long>(this.CIHPDDFGKCB()) { JEFGMHBLLKI.KKHOKFAABAM() }.ToArray());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D82 RID: 77186 RVA: 0x0055BC6C File Offset: 0x00559E6C
|
|
private bool NGBJGODLFJA()
|
|
{
|
|
if (!Player.LocalPlayerExists || this.COGCMGAINBF())
|
|
{
|
|
return true;
|
|
}
|
|
bool flag = false;
|
|
RaycastHit[] array = Physics.RaycastAll(Player.LocalPlayer.BGOGBEPJGPJ.transform.position + Vector3.up * 172f, Vector3.down, 1355f, 73);
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
EventTeleportRestriction componentInChildren = raycastHit.collider.GetComponentInChildren<EventTeleportRestriction>();
|
|
if (componentInChildren != null && componentInChildren.BDIBFINFIOB() == EventTeleportRestriction.LKGMKENGJGF.HOST && this.KECEJIJAGJK())
|
|
{
|
|
flag = true;
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
return false;
|
|
}
|
|
RaycastHit[] array3 = Physics.RaycastAll(Player.LocalPlayer.NGFPOMIFLMF.transform.position + Vector3.up * 416f, Vector3.down, 237f, -82);
|
|
RaycastHit[] array4 = array3;
|
|
for (int j = 0; j < array4.Length; j += 0)
|
|
{
|
|
RaycastHit raycastHit2 = array4[j];
|
|
EventTeleportRestriction componentInChildren2 = raycastHit2.collider.GetComponentInChildren<EventTeleportRestriction>();
|
|
if (componentInChildren2 != null && componentInChildren2.BDIBFINFIOB() == EventTeleportRestriction.LKGMKENGJGF.HOST && this.JBAPKOFLLJD)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06012D83 RID: 77187 RVA: 0x0055BDD4 File Offset: 0x00559FD4
|
|
public void ToggleOnlyHostsCanInvite(bool AMGOKGOIIKB)
|
|
{
|
|
base.OMNGGJICBBI.RPC("RpcMasterToggleOnlyHostsCanInvite", IHFKMIAHBFP.HGDJAAMBDNH, new object[] { AMGOKGOIIKB });
|
|
}
|
|
|
|
// Token: 0x06012D84 RID: 77188 RVA: 0x0055BDFC File Offset: 0x00559FFC
|
|
private void HCACOHIDLIM(LNJFBGIBLHA JEFGMHBLLKI, bool FJGEGPIBKGA)
|
|
{
|
|
if (JEFGMHBLLKI == null)
|
|
{
|
|
return;
|
|
}
|
|
if (JEFGMHBLLKI.IPFPJCPGENH && !this.NHKPGLDFGLE(JEFGMHBLLKI))
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play((ScreenSpaceNotificationManager.DBNGPDFKLEK)5, (!FJGEGPIBKGA) ? "graphicsDeviceVendor" : "{0:D2}:{1:D2}:{2:D2}:{0:D2}", 96f, null, true);
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
if (this.HostChangeEvent != null)
|
|
{
|
|
this.HostChangeEvent.Invoke(JEFGMHBLLKI, FJGEGPIBKGA);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D85 RID: 77189 RVA: 0x0055BE6C File Offset: 0x0055A06C
|
|
protected virtual void ANLNFGNBFBB()
|
|
{
|
|
base.Awake();
|
|
IHFKMIAHBFP.DHLJAODEIEA += new Action<LNJFBGIBLHA>(this.ENDAEGHBIBN);
|
|
this.FLMAHGNJIHO = new LHLLJPPCDKA<bool>(this, "/home", true, IKCAJLLAFML.AUTHORITY, new Action(this.LGHAAKPLCAH));
|
|
this.GJBAGBHPHHG = new LHLLJPPCDKA<bool>(this, "time", true, IKCAJLLAFML.AUTHORITY, new Action(this.MOJMMPIAEEP));
|
|
this.BOBAPCAJICD = new LHLLJPPCDKA<bool>(this, "Falastor", false, IKCAJLLAFML.MASTER, new Action(this.AKKGFHGPKGJ));
|
|
this.KLAEAANEEHD = new LHLLJPPCDKA<long>(this, "Oculus_GearVR_LThumbstickX", 0L, IKCAJLLAFML.AUTHORITY, null);
|
|
this.LHKPGKBAAAE = new LHLLJPPCDKA<long[]>(this, "RpcAutoJoinParty", new long[1], IKCAJLLAFML.MASTER_OR_AUTHORITY, new Action(this.KDCLEBPHMJD));
|
|
Player.OnPlayerCreated += new Action<Player>(this.EDOHCLMIGMI);
|
|
}
|
|
|
|
// Token: 0x06012D86 RID: 77190 RVA: 0x0055BF4C File Offset: 0x0055A14C
|
|
public void MIBGPNFMBJI(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
if (this.IsCreator(IHFKMIAHBFP.JEFGMHBLLKI) && !this.IsCreator(JEFGMHBLLKI))
|
|
{
|
|
if (this.JFIMMPBCKEL(JEFGMHBLLKI))
|
|
{
|
|
List<long> list = new List<long>(this.JKMDEHAJAMD);
|
|
list.Remove(JEFGMHBLLKI.KKHOKFAABAM());
|
|
this.BKIKLAJNLIE(list.ToArray());
|
|
}
|
|
else
|
|
{
|
|
this.JKMDEHAJAMD = new List<long>(this.GJBHOLACECB()) { JEFGMHBLLKI.KKHOKFAABAM() }.ToArray();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D87 RID: 77191 RVA: 0x0055BFD0 File Offset: 0x0055A1D0
|
|
private void PANJJFDJOIA()
|
|
{
|
|
if (!this.IsPlayerAHost(IHFKMIAHBFP.JEFGMHBLLKI) && Player.LocalPlayerExists)
|
|
{
|
|
if (this.MLJDIOEJNIN)
|
|
{
|
|
Player.LocalPlayer.SavedVoiceChatSettings = SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FPEGHDDDHCC;
|
|
SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FPEGHDDDHCC = FPEGHDDDHCC.Mute;
|
|
}
|
|
else
|
|
{
|
|
SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FPEGHDDDHCC = Player.LocalPlayer.SavedVoiceChatSettings;
|
|
}
|
|
}
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, (!this.MLJDIOEJNIN) ? "The host has unsilenced everybody" : "The host has silenced everybody", 3f, null, false);
|
|
}
|
|
if (this.EKGMPHMHBEM != null)
|
|
{
|
|
this.EKGMPHMHBEM(this.MLJDIOEJNIN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D88 RID: 77192 RVA: 0x0055C08C File Offset: 0x0055A28C
|
|
public long GHKJDLHIHHI()
|
|
{
|
|
return this.KLAEAANEEHD.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012D89 RID: 77193 RVA: 0x0055C09C File Offset: 0x0055A29C
|
|
private void MNPAIEEFGHH(LNJFBGIBLHA JEFGMHBLLKI, bool FJGEGPIBKGA)
|
|
{
|
|
if (JEFGMHBLLKI == null)
|
|
{
|
|
return;
|
|
}
|
|
if (JEFGMHBLLKI.IPFPJCPGENH && !this.IsCreator(JEFGMHBLLKI))
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.HKGIICHHLJI(ScreenSpaceNotificationManager.DBNGPDFKLEK.Major, (!FJGEGPIBKGA) ? "demoColor" : "TurnAmount", 208f, null, true);
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
if (this.HostChangeEvent != null)
|
|
{
|
|
this.HostChangeEvent.Invoke(JEFGMHBLLKI, FJGEGPIBKGA);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D8A RID: 77194 RVA: 0x0055C10C File Offset: 0x0055A30C
|
|
private void AKKGFHGPKGJ()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.DEPJEKLLMAC(ScreenSpaceNotificationManager.DBNGPDFKLEK.Vital, (!this.IEPAEGDHILK()) ? "TriggerPressAmountRight" : "Request Sent", 1265f, null, true);
|
|
}
|
|
if (this.NNHGOLEJECG != null)
|
|
{
|
|
this.NNHGOLEJECG(this.IEPAEGDHILK());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D8B RID: 77195 RVA: 0x0055C16C File Offset: 0x0055A36C
|
|
private void JACPCJOHCID(LNJFBGIBLHA JEFGMHBLLKI, bool FJGEGPIBKGA)
|
|
{
|
|
if (JEFGMHBLLKI == null)
|
|
{
|
|
return;
|
|
}
|
|
if (JEFGMHBLLKI.IPFPJCPGENH && !this.IsCreator(JEFGMHBLLKI))
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, (!FJGEGPIBKGA) ? "You have been removed as host" : "You have been made a host!", 3f, null, false);
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
if (this.HostChangeEvent != null)
|
|
{
|
|
this.HostChangeEvent.Invoke(JEFGMHBLLKI, FJGEGPIBKGA);
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700073A RID: 1850
|
|
// (get) Token: 0x06012DE4 RID: 77284 RVA: 0x0055D3DC File Offset: 0x0055B5DC
|
|
// (set) Token: 0x06012D8C RID: 77196 RVA: 0x0055C1DC File Offset: 0x0055A3DC
|
|
private long[] JKMDEHAJAMD
|
|
{
|
|
get
|
|
{
|
|
return this.LHKPGKBAAAE.CPIBGJLHLBL();
|
|
}
|
|
set
|
|
{
|
|
this.LHKPGKBAAAE.MEAINJPIECA(value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D8D RID: 77197 RVA: 0x0055C1EC File Offset: 0x0055A3EC
|
|
private long[] ACJGEEKAMBA()
|
|
{
|
|
return this.LHKPGKBAAAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012D8E RID: 77198 RVA: 0x0055C1FC File Offset: 0x0055A3FC
|
|
private void BKPIBFKIHGB(LNJFBGIBLHA JEHJKFMBELH)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
LNJFBGIBLHA[] array = IHFKMIAHBFP.NCLHHNLDGNE;
|
|
for (int i = 0; i < array.Length; i += 0)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array[i];
|
|
if (this.NGGKKELEBIG(lnjfbgiblha))
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
this.MLJDIOEJNIN = false;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D8F RID: 77199 RVA: 0x0055C248 File Offset: 0x0055A448
|
|
private void HFHGAPGDJEF()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.PAHKOCPEDMB((ScreenSpaceNotificationManager.DBNGPDFKLEK)8, (!this.HPEJCFNNHPG()) ? "{not_found}" : "Proxy returned - status code: ", 323f, null, true);
|
|
}
|
|
if (this.NNHGOLEJECG != null)
|
|
{
|
|
this.NNHGOLEJECG(this.HPEJCFNNHPG());
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000736 RID: 1846
|
|
// (get) Token: 0x06012DB9 RID: 77241 RVA: 0x0055CAB8 File Offset: 0x0055ACB8
|
|
// (set) Token: 0x06012D90 RID: 77200 RVA: 0x0055C2A8 File Offset: 0x0055A4A8
|
|
public bool MLJDIOEJNIN
|
|
{
|
|
get
|
|
{
|
|
return this.FLMAHGNJIHO.CPIBGJLHLBL();
|
|
}
|
|
private set
|
|
{
|
|
this.FLMAHGNJIHO.MEAINJPIECA(value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D91 RID: 77201 RVA: 0x0055C2B8 File Offset: 0x0055A4B8
|
|
public long BCODHBNIBOB()
|
|
{
|
|
return this.KLAEAANEEHD.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012D92 RID: 77202 RVA: 0x0055C2C8 File Offset: 0x0055A4C8
|
|
private long[] GJBHOLACECB()
|
|
{
|
|
return this.LHKPGKBAAAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012D93 RID: 77203 RVA: 0x0055C2D8 File Offset: 0x0055A4D8
|
|
public bool IEPAEGDHILK()
|
|
{
|
|
return this.BOBAPCAJICD.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012D94 RID: 77204 RVA: 0x0055C2E8 File Offset: 0x0055A4E8
|
|
public void OEPMHKNBCAO(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.MKBHIJAPLMK;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.MKBHIJAPLMK, (Action<bool>)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06012D95 RID: 77205 RVA: 0x0055C320 File Offset: 0x0055A520
|
|
private void HDHHDKLJKKL(bool LKMJIMEENHA)
|
|
{
|
|
this.JBJPOOIJJHG(LKMJIMEENHA);
|
|
}
|
|
|
|
// Token: 0x1700073B RID: 1851
|
|
// (get) Token: 0x06012D96 RID: 77206 RVA: 0x0055C32C File Offset: 0x0055A52C
|
|
private bool NNBLPEMEKBB
|
|
{
|
|
get
|
|
{
|
|
if (!Player.LocalPlayerExists || this.PBKJHFMIENG)
|
|
{
|
|
return true;
|
|
}
|
|
bool flag = true;
|
|
RaycastHit[] array = Physics.RaycastAll(Player.LocalPlayer.BGOGBEPJGPJ.transform.position + Vector3.up * 3f, Vector3.down, 7f, 18432);
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
EventTeleportRestriction componentInChildren = raycastHit.collider.GetComponentInChildren<EventTeleportRestriction>();
|
|
if (componentInChildren != null && componentInChildren.EHFADAGDFOA == EventTeleportRestriction.LKGMKENGJGF.HOST && this.JBAPKOFLLJD)
|
|
{
|
|
flag = false;
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
return true;
|
|
}
|
|
RaycastHit[] array3 = Physics.RaycastAll(Player.LocalPlayer.NGFPOMIFLMF.transform.position + Vector3.up * 3f, Vector3.down, 7f, 18432);
|
|
foreach (RaycastHit raycastHit2 in array3)
|
|
{
|
|
EventTeleportRestriction componentInChildren2 = raycastHit2.collider.GetComponentInChildren<EventTeleportRestriction>();
|
|
if (componentInChildren2 != null && componentInChildren2.EHFADAGDFOA == EventTeleportRestriction.LKGMKENGJGF.HOST && this.JBAPKOFLLJD)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D97 RID: 77207 RVA: 0x0055C494 File Offset: 0x0055A694
|
|
protected virtual void OLNOKJEPFII()
|
|
{
|
|
base.OnDestroy();
|
|
Player.OnPlayerCreated -= new Action<Player>(this.OJKCDIDBOPA);
|
|
IHFKMIAHBFP.DHLJAODEIEA -= new Action<LNJFBGIBLHA>(this.OnPhotonPlayerDisconnected);
|
|
}
|
|
|
|
// Token: 0x06012D98 RID: 77208 RVA: 0x0055C4D4 File Offset: 0x0055A6D4
|
|
private IEnumerator KEGNPPELAJM()
|
|
{
|
|
yield return new WaitForSeconds(2.5f);
|
|
while (this.JBAPKOFLLJD && !this.PBKJHFMIENG)
|
|
{
|
|
if (!this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, "You are not allowed on stage!", 3f, null, false);
|
|
yield return new WaitForSeconds(3f);
|
|
if (!this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, "Respawning offstage...", 2f, null, false);
|
|
yield return new WaitForSeconds(2f);
|
|
RecRoomSceneManager.NCKMBFBMBFM.HDNIEJJBLGI.CAHIBCONCCH(false);
|
|
yield return new WaitForSeconds(3f);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
yield return new WaitForSeconds(3f);
|
|
}
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x06012D99 RID: 77209 RVA: 0x0055C4F0 File Offset: 0x0055A6F0
|
|
private void FNDHMIEDHDK()
|
|
{
|
|
if (!this.IsPlayerAHost(IHFKMIAHBFP.JEFGMHBLLKI) && Player.LocalPlayerExists)
|
|
{
|
|
if (this.MJEGJGOAALO())
|
|
{
|
|
Player.LocalPlayer.SavedVoiceChatSettings = SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FPEGHDDDHCC;
|
|
SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FHBIPJHFEKD(FPEGHDDDHCC.PushToTalk);
|
|
}
|
|
else
|
|
{
|
|
SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FHBIPJHFEKD(Player.LocalPlayer.SavedVoiceChatSettings);
|
|
}
|
|
}
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.DEPJEKLLMAC((ScreenSpaceNotificationManager.DBNGPDFKLEK)4, (!this.MJEGJGOAALO()) ? "y" : "floor dist: ", 1508f, null, false);
|
|
}
|
|
if (this.EKGMPHMHBEM != null)
|
|
{
|
|
this.EKGMPHMHBEM(this.MLJDIOEJNIN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012D9A RID: 77210 RVA: 0x0055C5AC File Offset: 0x0055A7AC
|
|
public void EMJEFKNLBMG(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.EKGMPHMHBEM;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.EKGMPHMHBEM, (Action<bool>)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06012D9B RID: 77211 RVA: 0x0055C5E4 File Offset: 0x0055A7E4
|
|
public bool LJNKPNMOAMN(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI == null || (!this.NHKPGLDFGLE(JEFGMHBLLKI) && (this.CFFHNCPOOCP == null || this.CFFHNCPOOCP.Contains(JEFGMHBLLKI.NGDOGHJPABB())));
|
|
}
|
|
|
|
// Token: 0x06012D9C RID: 77212 RVA: 0x0055C620 File Offset: 0x0055A820
|
|
private void NHJJHDBBHAC(bool LKMJIMEENHA)
|
|
{
|
|
this.AEBEBMJIPBM = LKMJIMEENHA;
|
|
}
|
|
|
|
// Token: 0x06012D9D RID: 77213 RVA: 0x0055C62C File Offset: 0x0055A82C
|
|
private void JKEAKMONELE(bool OPLHAKFKKPJ)
|
|
{
|
|
this.JBAPKOFLLJD = OPLHAKFKKPJ;
|
|
}
|
|
|
|
// Token: 0x06012D9E RID: 77214 RVA: 0x0055C638 File Offset: 0x0055A838
|
|
private void ICMAEJGLBKO(bool LKMJIMEENHA)
|
|
{
|
|
this.AEBEBMJIPBM = LKMJIMEENHA;
|
|
}
|
|
|
|
// Token: 0x06012D9F RID: 77215 RVA: 0x0055C644 File Offset: 0x0055A844
|
|
private long[] FJGFDAJEMNI()
|
|
{
|
|
return this.LHKPGKBAAAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012DA0 RID: 77216 RVA: 0x0055C654 File Offset: 0x0055A854
|
|
public void MGGDIHOFPGN(bool BKOKGJMJPOM)
|
|
{
|
|
PhotonView photonView = base.MLNMONBHHBO();
|
|
string text = " method: ";
|
|
LNJFBGIBLHA lnjfbgiblha = IHFKMIAHBFP.HGDJAAMBDNH;
|
|
object[] array = new object[0];
|
|
array[0] = BKOKGJMJPOM;
|
|
photonView.RPC(text, lnjfbgiblha, array);
|
|
}
|
|
|
|
// Token: 0x06012DA1 RID: 77217 RVA: 0x0055C67C File Offset: 0x0055A87C
|
|
private void IIEGIDFIGLC(bool BKOKGJMJPOM)
|
|
{
|
|
this.AIOBPHLEDCD(BKOKGJMJPOM);
|
|
}
|
|
|
|
// Token: 0x06012DA2 RID: 77218 RVA: 0x0055C688 File Offset: 0x0055A888
|
|
private void HPEAEKLFODO(bool NOBAPCOKFIL)
|
|
{
|
|
this.BOBAPCAJICD.MEAINJPIECA(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06012DA3 RID: 77219 RVA: 0x0055C698 File Offset: 0x0055A898
|
|
public bool IsCreator(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
if (JEFGMHBLLKI == null || !SessionManager.NPLEGJCKAEB)
|
|
{
|
|
return false;
|
|
}
|
|
if (this.EEDOGBONKHP == 0L && PEDNLMAHGBP.KGKNIMECEKH.EEDOGBONKHP == JEFGMHBLLKI.KJOEMGEOBBA)
|
|
{
|
|
this.EEDOGBONKHP = JEFGMHBLLKI.KJOEMGEOBBA;
|
|
this.JKMDEHAJAMD = new long[] { JEFGMHBLLKI.KJOEMGEOBBA };
|
|
return true;
|
|
}
|
|
return this.EEDOGBONKHP == JEFGMHBLLKI.KJOEMGEOBBA;
|
|
}
|
|
|
|
// Token: 0x06012DA4 RID: 77220 RVA: 0x0055C720 File Offset: 0x0055A920
|
|
public bool ILHLPFBFKPB(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI == null || (!this.ODPCCMEGKKE(JEFGMHBLLKI) && this.CFFHNCPOOCP != null && this.CFFHNCPOOCP.Contains(JEFGMHBLLKI.KJOEMGEOBBA));
|
|
}
|
|
|
|
// Token: 0x06012DA5 RID: 77221 RVA: 0x0055C75C File Offset: 0x0055A95C
|
|
[BCENPNOIAOM]
|
|
private void RpcMasterToggleHostsOnlyStage(bool OPLHAKFKKPJ)
|
|
{
|
|
this.JBAPKOFLLJD = OPLHAKFKKPJ;
|
|
}
|
|
|
|
// Token: 0x06012DA6 RID: 77222 RVA: 0x0055C768 File Offset: 0x0055A968
|
|
private long[] EODJHBJDBFM()
|
|
{
|
|
return this.LHKPGKBAAAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012DA7 RID: 77223 RVA: 0x0055C778 File Offset: 0x0055A978
|
|
private IEnumerator DNBOHBFADKH()
|
|
{
|
|
yield return new WaitForSeconds(2.5f);
|
|
while (this.JBAPKOFLLJD && !this.PBKJHFMIENG)
|
|
{
|
|
if (!this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, "You are not allowed on stage!", 3f, null, false);
|
|
yield return new WaitForSeconds(3f);
|
|
if (!this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, "Respawning offstage...", 2f, null, false);
|
|
yield return new WaitForSeconds(2f);
|
|
RecRoomSceneManager.NCKMBFBMBFM.HDNIEJJBLGI.CAHIBCONCCH(false);
|
|
yield return new WaitForSeconds(3f);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
yield return new WaitForSeconds(3f);
|
|
}
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x06012DA8 RID: 77224 RVA: 0x0055C794 File Offset: 0x0055A994
|
|
public long BFELOJKDHMH()
|
|
{
|
|
return this.KLAEAANEEHD.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012DA9 RID: 77225 RVA: 0x0055C7A4 File Offset: 0x0055A9A4
|
|
private void BDMELNKHGKE(bool NOBAPCOKFIL)
|
|
{
|
|
this.FLMAHGNJIHO.MEAINJPIECA(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06012DAA RID: 77226 RVA: 0x0055C7B4 File Offset: 0x0055A9B4
|
|
public void CKGMLDMDFFE(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.EKGMPHMHBEM;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.EKGMPHMHBEM, (Action<bool>)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x17000738 RID: 1848
|
|
// (get) Token: 0x06012DAB RID: 77227 RVA: 0x0055C7EC File Offset: 0x0055A9EC
|
|
// (set) Token: 0x06012E02 RID: 77314 RVA: 0x0055DDD0 File Offset: 0x0055BFD0
|
|
public bool AEBEBMJIPBM
|
|
{
|
|
get
|
|
{
|
|
return this.BOBAPCAJICD.CPIBGJLHLBL();
|
|
}
|
|
private set
|
|
{
|
|
this.BOBAPCAJICD.MEAINJPIECA(value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DAC RID: 77228 RVA: 0x0055C7FC File Offset: 0x0055A9FC
|
|
private IEnumerator PLFKKDLDDOE()
|
|
{
|
|
yield return new WaitForSeconds(2.5f);
|
|
while (this.JBAPKOFLLJD && !this.PBKJHFMIENG)
|
|
{
|
|
if (!this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, "You are not allowed on stage!", 3f, null, false);
|
|
yield return new WaitForSeconds(3f);
|
|
if (!this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, "Respawning offstage...", 2f, null, false);
|
|
yield return new WaitForSeconds(2f);
|
|
RecRoomSceneManager.NCKMBFBMBFM.HDNIEJJBLGI.CAHIBCONCCH(false);
|
|
yield return new WaitForSeconds(3f);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
yield return new WaitForSeconds(3f);
|
|
}
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x06012DAD RID: 77229 RVA: 0x0055C818 File Offset: 0x0055AA18
|
|
public void NLJHPCMNMJL(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.NNHGOLEJECG;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.NNHGOLEJECG, (Action<bool>)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06012DAE RID: 77230 RVA: 0x0055C850 File Offset: 0x0055AA50
|
|
public void ToggleGlobalSilence(bool BKOKGJMJPOM)
|
|
{
|
|
base.OMNGGJICBBI.RPC("RpcMasterToggleGlobalSilence", IHFKMIAHBFP.HGDJAAMBDNH, new object[] { BKOKGJMJPOM });
|
|
}
|
|
|
|
// Token: 0x06012DAF RID: 77231 RVA: 0x0055C878 File Offset: 0x0055AA78
|
|
private long[] ENAPEKJNLNI()
|
|
{
|
|
return this.LHKPGKBAAAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012DB0 RID: 77232 RVA: 0x0055C888 File Offset: 0x0055AA88
|
|
private void IKJBIOBHENK(LNJFBGIBLHA JEFGMHBLLKI, bool FJGEGPIBKGA)
|
|
{
|
|
if (JEFGMHBLLKI == null)
|
|
{
|
|
return;
|
|
}
|
|
if (JEFGMHBLLKI.IPFPJCPGENH && !this.KOHANAJDNCM(JEFGMHBLLKI))
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.HKGIICHHLJI((ScreenSpaceNotificationManager.DBNGPDFKLEK)7, (!FJGEGPIBKGA) ? "{0}v1/myprogress" : " failed to instantiate.", 1722f, null, false);
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
if (this.HostChangeEvent != null)
|
|
{
|
|
this.HostChangeEvent.Invoke(JEFGMHBLLKI, FJGEGPIBKGA);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DB1 RID: 77233 RVA: 0x0055C8F8 File Offset: 0x0055AAF8
|
|
public bool COGCMGAINBF()
|
|
{
|
|
return this.IsPlayerAHost(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x06012DB2 RID: 77234 RVA: 0x0055C908 File Offset: 0x0055AB08
|
|
[BCENPNOIAOM]
|
|
private void RpcMasterToggleOnlyHostsCanInvite(bool LKMJIMEENHA)
|
|
{
|
|
this.AEBEBMJIPBM = LKMJIMEENHA;
|
|
}
|
|
|
|
// Token: 0x06012DB3 RID: 77235 RVA: 0x0055C914 File Offset: 0x0055AB14
|
|
private void JGKLDPAOABF()
|
|
{
|
|
if (!this.IsPlayerAHost(IHFKMIAHBFP.JEFGMHBLLKI) && Player.LocalPlayerExists)
|
|
{
|
|
if (this.AODCGKDIMEH())
|
|
{
|
|
Player.LocalPlayer.SavedVoiceChatSettings = SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FPEGHDDDHCC;
|
|
SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FHBIPJHFEKD(FPEGHDDDHCC.Mute);
|
|
}
|
|
else
|
|
{
|
|
SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FPEGHDDDHCC = Player.LocalPlayer.SavedVoiceChatSettings;
|
|
}
|
|
}
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play((ScreenSpaceNotificationManager.DBNGPDFKLEK)8, (!this.LEBFOBDGFAH()) ? "Photon Background Incoming Worker" : "bytes={0}-{1}", 1814f, null, false);
|
|
}
|
|
if (this.EKGMPHMHBEM != null)
|
|
{
|
|
this.EKGMPHMHBEM(this.AODCGKDIMEH());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DB4 RID: 77236 RVA: 0x0055C9D0 File Offset: 0x0055ABD0
|
|
private long[] JOAEMAEAEIF()
|
|
{
|
|
return this.LHKPGKBAAAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012DB5 RID: 77237 RVA: 0x0055C9E0 File Offset: 0x0055ABE0
|
|
public void LNLDBJDKBJH(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.NNHGOLEJECG;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.NNHGOLEJECG, (Action<bool>)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x14000057 RID: 87
|
|
// (add) Token: 0x06012DC9 RID: 77257 RVA: 0x0055CDD0 File Offset: 0x0055AFD0
|
|
// (remove) Token: 0x06012DB6 RID: 77238 RVA: 0x0055CA18 File Offset: 0x0055AC18
|
|
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
|
public event Action<bool> NNHGOLEJECG;
|
|
|
|
// Token: 0x06012DB7 RID: 77239 RVA: 0x0055CA50 File Offset: 0x0055AC50
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
Player.OnPlayerCreated -= new Action<Player>(this.OJKCDIDBOPA);
|
|
IHFKMIAHBFP.DHLJAODEIEA -= new Action<LNJFBGIBLHA>(this.OnPhotonPlayerDisconnected);
|
|
}
|
|
|
|
// Token: 0x06012DB8 RID: 77240 RVA: 0x0055CA90 File Offset: 0x0055AC90
|
|
public void POEBACONAJO(bool AMGOKGOIIKB)
|
|
{
|
|
PhotonView photonView = base.LJILHDMCKME();
|
|
string text = "y";
|
|
LNJFBGIBLHA lnjfbgiblha = IHFKMIAHBFP.HGDJAAMBDNH;
|
|
object[] array = new object[1];
|
|
array[1] = AMGOKGOIIKB;
|
|
photonView.RPC(text, lnjfbgiblha, array);
|
|
}
|
|
|
|
// Token: 0x06012DBA RID: 77242 RVA: 0x0055CAC8 File Offset: 0x0055ACC8
|
|
private void LBLGPOJFJOJ()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB && !this.PBKJHFMIENG && this.JBAPKOFLLJD)
|
|
{
|
|
if (this.KJDPBMAOJFC != null)
|
|
{
|
|
base.StopCoroutine(this.KJDPBMAOJFC);
|
|
}
|
|
this.KJDPBMAOJFC = base.StartCoroutine(this.GBANNCDMLIP());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DBB RID: 77243 RVA: 0x0055CB20 File Offset: 0x0055AD20
|
|
private void JFIBENNCBEJ()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.PAHKOCPEDMB((ScreenSpaceNotificationManager.DBNGPDFKLEK)4, (!this.IEPAEGDHILK()) ? "owner: " : "_MinDistFromCamera", 1379f, null, false);
|
|
}
|
|
if (this.NNHGOLEJECG != null)
|
|
{
|
|
this.NNHGOLEJECG(this.HPEJCFNNHPG());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DBC RID: 77244 RVA: 0x0055CB80 File Offset: 0x0055AD80
|
|
public void HPKLCNPHNEA(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
if (this.IsCreator(IHFKMIAHBFP.JEFGMHBLLKI) && !this.IsCreator(JEFGMHBLLKI))
|
|
{
|
|
if (this.OHHGICNJLJM(JEFGMHBLLKI))
|
|
{
|
|
List<long> list = new List<long>(this.JKMDEHAJAMD);
|
|
list.Remove(JEFGMHBLLKI.NGDOGHJPABB());
|
|
this.JKMDEHAJAMD = list.ToArray();
|
|
}
|
|
else
|
|
{
|
|
this.JKMDEHAJAMD = new List<long>(this.JOAEMAEAEIF()) { JEFGMHBLLKI.KJOEMGEOBBA }.ToArray();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DBD RID: 77245 RVA: 0x0055CC04 File Offset: 0x0055AE04
|
|
private void DMJFFFDMOEM(LNJFBGIBLHA JEFGMHBLLKI, bool FJGEGPIBKGA)
|
|
{
|
|
if (JEFGMHBLLKI == null)
|
|
{
|
|
return;
|
|
}
|
|
if (JEFGMHBLLKI.IPFPJCPGENH && !this.ODPCCMEGKKE(JEFGMHBLLKI))
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.DEPJEKLLMAC(ScreenSpaceNotificationManager.DBNGPDFKLEK.Minor, (!FJGEGPIBKGA) ? "Failed to create room. \"" : "You have already cheered this player very recently.", 1358f, null, false);
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
if (this.HostChangeEvent != null)
|
|
{
|
|
this.HostChangeEvent.Invoke(JEFGMHBLLKI, FJGEGPIBKGA);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DBE RID: 77246 RVA: 0x0055CC74 File Offset: 0x0055AE74
|
|
public bool FCFJHEBCDLL()
|
|
{
|
|
return this.BOBAPCAJICD.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012DBF RID: 77247 RVA: 0x0055CC84 File Offset: 0x0055AE84
|
|
[BCENPNOIAOM]
|
|
private void RpcMasterToggleGlobalSilence(bool BKOKGJMJPOM)
|
|
{
|
|
this.MLJDIOEJNIN = BKOKGJMJPOM;
|
|
}
|
|
|
|
// Token: 0x17000737 RID: 1847
|
|
// (get) Token: 0x06012DC0 RID: 77248 RVA: 0x0055CC90 File Offset: 0x0055AE90
|
|
// (set) Token: 0x06012DE0 RID: 77280 RVA: 0x0055D39C File Offset: 0x0055B59C
|
|
public bool JBAPKOFLLJD
|
|
{
|
|
get
|
|
{
|
|
return this.GJBAGBHPHHG.CPIBGJLHLBL();
|
|
}
|
|
private set
|
|
{
|
|
this.GJBAGBHPHHG.MEAINJPIECA(value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DC1 RID: 77249 RVA: 0x0055CCA0 File Offset: 0x0055AEA0
|
|
public void HEOIMCDBCKM(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.MKBHIJAPLMK;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.MKBHIJAPLMK, (Action<bool>)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06012DC2 RID: 77250 RVA: 0x0055CCD8 File Offset: 0x0055AED8
|
|
private void FKOMJCCIJAH(long NOBAPCOKFIL)
|
|
{
|
|
this.KLAEAANEEHD.MEAINJPIECA(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x17000735 RID: 1845
|
|
// (get) Token: 0x06012DC3 RID: 77251 RVA: 0x0055CCE8 File Offset: 0x0055AEE8
|
|
public string PCBDADHNPPM
|
|
{
|
|
get
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
return PEDNLMAHGBP.KGKNIMECEKH.GDIECAFDIMC;
|
|
}
|
|
return "Not in any event";
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DC4 RID: 77252 RVA: 0x0055CD04 File Offset: 0x0055AF04
|
|
public void DNBHKBEFLHO(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.EKGMPHMHBEM;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.EKGMPHMHBEM, (Action<bool>)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06012DC5 RID: 77253 RVA: 0x0055CD3C File Offset: 0x0055AF3C
|
|
private void KBOKCJOOBCJ(bool NOBAPCOKFIL)
|
|
{
|
|
this.GJBAGBHPHHG.MEAINJPIECA(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06012DC6 RID: 77254 RVA: 0x0055CD4C File Offset: 0x0055AF4C
|
|
public void PNPNCKGKKFM(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.NNHGOLEJECG;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.NNHGOLEJECG, (Action<bool>)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x17000739 RID: 1849
|
|
// (get) Token: 0x06012DD2 RID: 77266 RVA: 0x0055CEE4 File Offset: 0x0055B0E4
|
|
// (set) Token: 0x06012DC7 RID: 77255 RVA: 0x0055CD84 File Offset: 0x0055AF84
|
|
public long EEDOGBONKHP
|
|
{
|
|
get
|
|
{
|
|
return this.KLAEAANEEHD.CPIBGJLHLBL();
|
|
}
|
|
private set
|
|
{
|
|
this.KLAEAANEEHD.MEAINJPIECA(value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DC8 RID: 77256 RVA: 0x0055CD94 File Offset: 0x0055AF94
|
|
public bool JFIMMPBCKEL(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && (this.KOHANAJDNCM(JEFGMHBLLKI) || this.CFFHNCPOOCP == null || this.CFFHNCPOOCP.Contains(JEFGMHBLLKI.NGDOGHJPABB()));
|
|
}
|
|
|
|
// Token: 0x06012DCA RID: 77258 RVA: 0x0055CE08 File Offset: 0x0055B008
|
|
public bool HPEJCFNNHPG()
|
|
{
|
|
return this.BOBAPCAJICD.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012DCB RID: 77259 RVA: 0x0055CE18 File Offset: 0x0055B018
|
|
public void BNGELAHNCHM(bool BKOKGJMJPOM)
|
|
{
|
|
PhotonView photonView = base.CEGDLFAENEJ();
|
|
string text = "_rep";
|
|
LNJFBGIBLHA lnjfbgiblha = IHFKMIAHBFP.HGDJAAMBDNH;
|
|
object[] array = new object[1];
|
|
array[1] = BKOKGJMJPOM;
|
|
photonView.FLCIMLGAIKH(text, lnjfbgiblha, array);
|
|
}
|
|
|
|
// Token: 0x06012DCC RID: 77260 RVA: 0x0055CE40 File Offset: 0x0055B040
|
|
private IEnumerator AMKIEADFPOL()
|
|
{
|
|
yield return new WaitForSeconds(2.5f);
|
|
while (this.JBAPKOFLLJD && !this.PBKJHFMIENG)
|
|
{
|
|
if (!this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, "You are not allowed on stage!", 3f, null, false);
|
|
yield return new WaitForSeconds(3f);
|
|
if (!this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, "Respawning offstage...", 2f, null, false);
|
|
yield return new WaitForSeconds(2f);
|
|
RecRoomSceneManager.NCKMBFBMBFM.HDNIEJJBLGI.CAHIBCONCCH(false);
|
|
yield return new WaitForSeconds(3f);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
yield return new WaitForSeconds(3f);
|
|
}
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x06012DCD RID: 77261 RVA: 0x0055CE5C File Offset: 0x0055B05C
|
|
private void BIIABKPMCGD()
|
|
{
|
|
if (this.ENAPEKJNLNI() != null)
|
|
{
|
|
this.CFFHNCPOOCP = new List<long>(this.FJGFDAJEMNI());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DCE RID: 77262 RVA: 0x0055CE7C File Offset: 0x0055B07C
|
|
private long[] CIHPDDFGKCB()
|
|
{
|
|
return this.LHKPGKBAAAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x17000734 RID: 1844
|
|
// (get) Token: 0x06012DD0 RID: 77264 RVA: 0x0055CEC4 File Offset: 0x0055B0C4
|
|
public bool PBKJHFMIENG
|
|
{
|
|
get
|
|
{
|
|
return this.IsPlayerAHost(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DD1 RID: 77265 RVA: 0x0055CED4 File Offset: 0x0055B0D4
|
|
private void JBJPOOIJJHG(bool NOBAPCOKFIL)
|
|
{
|
|
this.BOBAPCAJICD.MEAINJPIECA(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x14000056 RID: 86
|
|
// (add) Token: 0x06012DD3 RID: 77267 RVA: 0x0055CEF4 File Offset: 0x0055B0F4
|
|
// (remove) Token: 0x06012DF4 RID: 77300 RVA: 0x0055D94C File Offset: 0x0055BB4C
|
|
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
|
public event Action<bool> EKGMPHMHBEM;
|
|
|
|
// Token: 0x06012DD4 RID: 77268 RVA: 0x0055CF2C File Offset: 0x0055B12C
|
|
private void PNKOKNDLHAC(LNJFBGIBLHA JEFGMHBLLKI, bool FJGEGPIBKGA)
|
|
{
|
|
if (JEFGMHBLLKI == null)
|
|
{
|
|
return;
|
|
}
|
|
if (JEFGMHBLLKI.IPFPJCPGENH && !this.KOHANAJDNCM(JEFGMHBLLKI))
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.PAHKOCPEDMB(ScreenSpaceNotificationManager.DBNGPDFKLEK.Minor, (!FJGEGPIBKGA) ? "Server failed to consume gift " : "N/A", 1869f, null, false);
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
if (this.HostChangeEvent != null)
|
|
{
|
|
this.HostChangeEvent.Invoke(JEFGMHBLLKI, FJGEGPIBKGA);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DD5 RID: 77269 RVA: 0x0055CF9C File Offset: 0x0055B19C
|
|
public void ToggleHostsOnlyStage(bool OPLHAKFKKPJ)
|
|
{
|
|
base.OMNGGJICBBI.RPC("RpcMasterToggleHostsOnlyStage", IHFKMIAHBFP.HGDJAAMBDNH, new object[] { OPLHAKFKKPJ });
|
|
}
|
|
|
|
// Token: 0x06012DD6 RID: 77270 RVA: 0x0055CFC4 File Offset: 0x0055B1C4
|
|
private bool IAPBBAJHJIC()
|
|
{
|
|
if (!Player.LocalPlayerExists || this.COGCMGAINBF())
|
|
{
|
|
return false;
|
|
}
|
|
bool flag = false;
|
|
RaycastHit[] array = Physics.RaycastAll(Player.LocalPlayer.AJHHFNCFKNF().transform.position + Vector3.up * 1820f, Vector3.down, 1117f, -3);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
EventTeleportRestriction componentInChildren = raycastHit.collider.GetComponentInChildren<EventTeleportRestriction>();
|
|
if (componentInChildren != null && componentInChildren.OIJKMIMKDCN() == EventTeleportRestriction.LKGMKENGJGF.HOST && this.JBAPKOFLLJD)
|
|
{
|
|
flag = false;
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
return false;
|
|
}
|
|
RaycastHit[] array3 = Physics.RaycastAll(Player.LocalPlayer.NGFPOMIFLMF.transform.position + Vector3.up * 563f, Vector3.down, 1407f, 131);
|
|
foreach (RaycastHit raycastHit2 in array3)
|
|
{
|
|
EventTeleportRestriction componentInChildren2 = raycastHit2.collider.GetComponentInChildren<EventTeleportRestriction>();
|
|
if (componentInChildren2 != null && componentInChildren2.OIJKMIMKDCN() == EventTeleportRestriction.LKGMKENGJGF.HOST && this.JBAPKOFLLJD)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06012DD7 RID: 77271 RVA: 0x0055D12C File Offset: 0x0055B32C
|
|
private void HHKKKOHOGHL()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
if (!this.PBKJHFMIENG && !this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.PAHKOCPEDMB(ScreenSpaceNotificationManager.DBNGPDFKLEK.Major, "Setting door to room ", 1058f, null, false);
|
|
}
|
|
else
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.DEPJEKLLMAC(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, (!this.JBAPKOFLLJD) ? "Failed to create path " : "relationship", 1124f, null, false);
|
|
}
|
|
if (!this.CEBOBBMAACI())
|
|
{
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
}
|
|
if (this.MKBHIJAPLMK != null)
|
|
{
|
|
this.MKBHIJAPLMK(this.JBAPKOFLLJD);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DD8 RID: 77272 RVA: 0x0055D1D0 File Offset: 0x0055B3D0
|
|
public bool OHHGICNJLJM(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI == null || this.ODPCCMEGKKE(JEFGMHBLLKI) || (this.CFFHNCPOOCP != null && this.CFFHNCPOOCP.Contains(JEFGMHBLLKI.NGDOGHJPABB()));
|
|
}
|
|
|
|
// Token: 0x06012DD9 RID: 77273 RVA: 0x0055D20C File Offset: 0x0055B40C
|
|
private long[] NFBAEIDLEKF()
|
|
{
|
|
return this.LHKPGKBAAAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012DDA RID: 77274 RVA: 0x0055D21C File Offset: 0x0055B41C
|
|
private void BNJKJJGMJKE(long NOBAPCOKFIL)
|
|
{
|
|
this.KLAEAANEEHD.MEAINJPIECA(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06012DDB RID: 77275 RVA: 0x0055D22C File Offset: 0x0055B42C
|
|
private void LGHAAKPLCAH()
|
|
{
|
|
if (!this.ILHLPFBFKPB(IHFKMIAHBFP.JEFGMHBLLKI) && Player.LocalPlayerExists)
|
|
{
|
|
if (this.LEBFOBDGFAH())
|
|
{
|
|
Player.LocalPlayer.SavedVoiceChatSettings = SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FPEGHDDDHCC;
|
|
SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FHBIPJHFEKD(FPEGHDDDHCC.Mute);
|
|
}
|
|
else
|
|
{
|
|
SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FHBIPJHFEKD(Player.LocalPlayer.SavedVoiceChatSettings);
|
|
}
|
|
}
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play((ScreenSpaceNotificationManager.DBNGPDFKLEK)8, (!this.AODCGKDIMEH()) ? "preservePlayerPrefs" : "BEHAVIOR", 1875f, null, true);
|
|
}
|
|
if (this.EKGMPHMHBEM != null)
|
|
{
|
|
this.EKGMPHMHBEM(this.MJEGJGOAALO());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DDC RID: 77276 RVA: 0x0055D2E8 File Offset: 0x0055B4E8
|
|
public void COECBPHNHIC(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.EKGMPHMHBEM;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.EKGMPHMHBEM, (Action<bool>)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06012DDD RID: 77277 RVA: 0x0055D320 File Offset: 0x0055B520
|
|
private long[] ANOGFONDGLK()
|
|
{
|
|
return this.LHKPGKBAAAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012DDE RID: 77278 RVA: 0x0055D330 File Offset: 0x0055B530
|
|
private void MNPAMALMBMC()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.DEPJEKLLMAC((ScreenSpaceNotificationManager.DBNGPDFKLEK)5, (!this.FCFJHEBCDLL()) ? "joinrandom" : "PlayerSkinColorProperty", 1364f, null, false);
|
|
}
|
|
if (this.NNHGOLEJECG != null)
|
|
{
|
|
this.NNHGOLEJECG(this.IEPAEGDHILK());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DDF RID: 77279 RVA: 0x0055D390 File Offset: 0x0055B590
|
|
private void IFOIFFOBIIJ(bool BKOKGJMJPOM)
|
|
{
|
|
this.BDMELNKHGKE(BKOKGJMJPOM);
|
|
}
|
|
|
|
// Token: 0x06012DE1 RID: 77281 RVA: 0x0055D3AC File Offset: 0x0055B5AC
|
|
private void NLCBGECJJHN(bool NOBAPCOKFIL)
|
|
{
|
|
this.FLMAHGNJIHO.MEAINJPIECA(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06012DE2 RID: 77282 RVA: 0x0055D3BC File Offset: 0x0055B5BC
|
|
public bool AODCGKDIMEH()
|
|
{
|
|
return this.FLMAHGNJIHO.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012DE3 RID: 77283 RVA: 0x0055D3CC File Offset: 0x0055B5CC
|
|
public bool CEBOBBMAACI()
|
|
{
|
|
return this.IsPlayerAHost(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x06012DE5 RID: 77285 RVA: 0x0055D3EC File Offset: 0x0055B5EC
|
|
public void OOCOIKKIKPG(bool BKOKGJMJPOM)
|
|
{
|
|
base.CEGDLFAENEJ().OENNPPGINLI("partyId", IHFKMIAHBFP.HGDJAAMBDNH, new object[] { BKOKGJMJPOM });
|
|
}
|
|
|
|
// Token: 0x06012DE6 RID: 77286 RVA: 0x0055D414 File Offset: 0x0055B614
|
|
public bool NGGKKELEBIG(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI == null || this.KOHANAJDNCM(JEFGMHBLLKI) || this.CFFHNCPOOCP == null || this.CFFHNCPOOCP.Contains(JEFGMHBLLKI.KKHOKFAABAM());
|
|
}
|
|
|
|
// Token: 0x06012DE7 RID: 77287 RVA: 0x0055D450 File Offset: 0x0055B650
|
|
private void MLGLFHBHBHJ(LNJFBGIBLHA JEFGMHBLLKI, bool FJGEGPIBKGA)
|
|
{
|
|
if (JEFGMHBLLKI == null)
|
|
{
|
|
return;
|
|
}
|
|
if (JEFGMHBLLKI.IPFPJCPGENH && !this.NHKPGLDFGLE(JEFGMHBLLKI))
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.PAHKOCPEDMB(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, (!FJGEGPIBKGA) ? "FriendsImported" : "HairColor", 1896f, null, true);
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
if (this.HostChangeEvent != null)
|
|
{
|
|
this.HostChangeEvent.Invoke(JEFGMHBLLKI, FJGEGPIBKGA);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DE8 RID: 77288 RVA: 0x0055D4C0 File Offset: 0x0055B6C0
|
|
private void HKKINNEJMJJ()
|
|
{
|
|
if (!this.LJNKPNMOAMN(IHFKMIAHBFP.JEFGMHBLLKI) && Player.LocalPlayerExists)
|
|
{
|
|
if (this.LEBFOBDGFAH())
|
|
{
|
|
Player.LocalPlayer.SavedVoiceChatSettings = SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FPEGHDDDHCC;
|
|
SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FPEGHDDDHCC = FPEGHDDDHCC.PushToTalk;
|
|
}
|
|
else
|
|
{
|
|
SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FHBIPJHFEKD(Player.LocalPlayer.SavedVoiceChatSettings);
|
|
}
|
|
}
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.PAHKOCPEDMB((ScreenSpaceNotificationManager.DBNGPDFKLEK)5, (!this.AODCGKDIMEH()) ? "mydemo.com" : "_Color", 133f, null, false);
|
|
}
|
|
if (this.EKGMPHMHBEM != null)
|
|
{
|
|
this.EKGMPHMHBEM(this.MJEGJGOAALO());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DE9 RID: 77289 RVA: 0x0055D57C File Offset: 0x0055B77C
|
|
public void PBALELAPEJI(bool OPLHAKFKKPJ)
|
|
{
|
|
PhotonView photonView = base.ACEAACJNNAF();
|
|
string text = "UNKNOWN";
|
|
LNJFBGIBLHA lnjfbgiblha = IHFKMIAHBFP.HGDJAAMBDNH;
|
|
object[] array = new object[1];
|
|
array[1] = OPLHAKFKKPJ;
|
|
photonView.FLCIMLGAIKH(text, lnjfbgiblha, array);
|
|
}
|
|
|
|
// Token: 0x06012DEA RID: 77290 RVA: 0x0055D5A4 File Offset: 0x0055B7A4
|
|
public bool ODPCCMEGKKE(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
if (JEFGMHBLLKI == null || !SessionManager.NPLEGJCKAEB)
|
|
{
|
|
return true;
|
|
}
|
|
if (this.MJKAFLHNKDH() == 0L && PEDNLMAHGBP.MDHDKCJABFC().EEDOGBONKHP == JEFGMHBLLKI.KJOEMGEOBBA)
|
|
{
|
|
this.BNJKJJGMJKE(JEFGMHBLLKI.KKHOKFAABAM());
|
|
long[] array = new long[0];
|
|
array[0] = JEFGMHBLLKI.NGDOGHJPABB();
|
|
this.JKMDEHAJAMD = array;
|
|
return true;
|
|
}
|
|
return this.GHKJDLHIHHI() == JEFGMHBLLKI.KJOEMGEOBBA;
|
|
}
|
|
|
|
// Token: 0x06012DEB RID: 77291 RVA: 0x0055D62C File Offset: 0x0055B82C
|
|
private void EDOHCLMIGMI(Player JEFGMHBLLKI)
|
|
{
|
|
if (JEFGMHBLLKI.NMDPPKDGAJN())
|
|
{
|
|
this.FAPANDNHKJK();
|
|
if (this.MJEGJGOAALO())
|
|
{
|
|
this.HKKINNEJMJJ();
|
|
}
|
|
if (!this.JBAPKOFLLJD)
|
|
{
|
|
this.LFDALGBOJBI();
|
|
}
|
|
else
|
|
{
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
if (!this.IEPAEGDHILK())
|
|
{
|
|
this.JFIBENNCBEJ();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DEC RID: 77292 RVA: 0x0055D688 File Offset: 0x0055B888
|
|
public bool LEBFOBDGFAH()
|
|
{
|
|
return this.FLMAHGNJIHO.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012DEE RID: 77294 RVA: 0x0055D6BC File Offset: 0x0055B8BC
|
|
public void OPGAJGIFJCC(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.NNHGOLEJECG;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.NNHGOLEJECG, (Action<bool>)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06012DEF RID: 77295 RVA: 0x0055D6F4 File Offset: 0x0055B8F4
|
|
private void MOJMMPIAEEP()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
if (!this.PBKJHFMIENG && !this.FCCJDCKHGMF())
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.PAHKOCPEDMB(ScreenSpaceNotificationManager.DBNGPDFKLEK.Vital, "ROTATE_IN_PLACE_ENABLED", 1367f, null, true);
|
|
}
|
|
else
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.DEPJEKLLMAC(ScreenSpaceNotificationManager.DBNGPDFKLEK.Major, (!this.MKGDHOIOIHP()) ? "All images loaded from the local cache!" : "Failed to send image link: ", 1019f, null, true);
|
|
}
|
|
if (!this.CEBOBBMAACI())
|
|
{
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
}
|
|
if (this.MKBHIJAPLMK != null)
|
|
{
|
|
this.MKBHIJAPLMK(this.MKGDHOIOIHP());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DF0 RID: 77296 RVA: 0x0055D798 File Offset: 0x0055B998
|
|
public void NKMGCAJONED(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.EKGMPHMHBEM;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.EKGMPHMHBEM, (Action<bool>)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06012DF1 RID: 77297 RVA: 0x0055D7D0 File Offset: 0x0055B9D0
|
|
private void IMCOBFECDOL()
|
|
{
|
|
if (this.JKMDEHAJAMD != null)
|
|
{
|
|
this.CFFHNCPOOCP = new List<long>(this.NFBAEIDLEKF());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DF2 RID: 77298 RVA: 0x0055D7F0 File Offset: 0x0055B9F0
|
|
public void CreatorTogglePlayerHostStatus(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
if (this.IsCreator(IHFKMIAHBFP.JEFGMHBLLKI) && !this.IsCreator(JEFGMHBLLKI))
|
|
{
|
|
if (this.IsPlayerAHost(JEFGMHBLLKI))
|
|
{
|
|
List<long> list = new List<long>(this.JKMDEHAJAMD);
|
|
list.Remove(JEFGMHBLLKI.KJOEMGEOBBA);
|
|
this.JKMDEHAJAMD = list.ToArray();
|
|
}
|
|
else
|
|
{
|
|
this.JKMDEHAJAMD = new List<long>(this.JKMDEHAJAMD) { JEFGMHBLLKI.KJOEMGEOBBA }.ToArray();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DF3 RID: 77299 RVA: 0x0055D874 File Offset: 0x0055BA74
|
|
private void KDCLEBPHMJD()
|
|
{
|
|
if (!Player.LocalPlayerExists)
|
|
{
|
|
return;
|
|
}
|
|
bool flag;
|
|
IEnumerable<long> enumerable;
|
|
if (this.JKMDEHAJAMD.Length > this.CFFHNCPOOCP.Count)
|
|
{
|
|
flag = true;
|
|
enumerable = this.JKMDEHAJAMD.ToList<long>().Except(this.CFFHNCPOOCP);
|
|
}
|
|
else
|
|
{
|
|
if (this.CFFHNCPOOCP.Count <= this.JKMDEHAJAMD.Length)
|
|
{
|
|
return;
|
|
}
|
|
flag = false;
|
|
enumerable = this.CFFHNCPOOCP.Except(this.JKMDEHAJAMD.ToList<long>());
|
|
}
|
|
this.EKMKDDKADAG();
|
|
foreach (long num in enumerable)
|
|
{
|
|
this.JACPCJOHCID(LNJFBGIBLHA.BOAKNOHCIAD(num), flag);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DF5 RID: 77301 RVA: 0x0055D984 File Offset: 0x0055BB84
|
|
public bool FGCDJNNEJLO()
|
|
{
|
|
return this.LJNKPNMOAMN(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x06012DF6 RID: 77302 RVA: 0x0055D994 File Offset: 0x0055BB94
|
|
public string JGKNMNMHPPA()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
return PEDNLMAHGBP.KGKNIMECEKH.PNNGKDEKOLM();
|
|
}
|
|
return "DEFENSE SCORES";
|
|
}
|
|
|
|
// Token: 0x06012DF7 RID: 77303 RVA: 0x0055D9B0 File Offset: 0x0055BBB0
|
|
public bool KECEJIJAGJK()
|
|
{
|
|
return this.GJBAGBHPHHG.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012DF8 RID: 77304 RVA: 0x0055D9C0 File Offset: 0x0055BBC0
|
|
private void JHHIFBHPJCJ(bool NOBAPCOKFIL)
|
|
{
|
|
this.BOBAPCAJICD.MEAINJPIECA(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06012DF9 RID: 77305 RVA: 0x0055D9D0 File Offset: 0x0055BBD0
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
IHFKMIAHBFP.DHLJAODEIEA += new Action<LNJFBGIBLHA>(this.OnPhotonPlayerDisconnected);
|
|
this.FLMAHGNJIHO = new LHLLJPPCDKA<bool>(this, "GSA", false, IKCAJLLAFML.MASTER, new Action(this.PANJJFDJOIA));
|
|
this.GJBAGBHPHHG = new LHLLJPPCDKA<bool>(this, "HOS", true, IKCAJLLAFML.MASTER, new Action(this.LFDALGBOJBI));
|
|
this.BOBAPCAJICD = new LHLLJPPCDKA<bool>(this, "OHCI", true, IKCAJLLAFML.MASTER, new Action(this.KDEAGGNLEII));
|
|
this.KLAEAANEEHD = new LHLLJPPCDKA<long>(this, "CPI", 0L, IKCAJLLAFML.MASTER, null);
|
|
this.LHKPGKBAAAE = new LHLLJPPCDKA<long[]>(this, "SHID", new long[0], IKCAJLLAFML.ANYONE, new Action(this.KDCLEBPHMJD));
|
|
Player.OnPlayerCreated += new Action<Player>(this.OJKCDIDBOPA);
|
|
}
|
|
|
|
// Token: 0x06012DFA RID: 77306 RVA: 0x0055DAB0 File Offset: 0x0055BCB0
|
|
private void OnPhotonPlayerDisconnected(LNJFBGIBLHA JEHJKFMBELH)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
foreach (LNJFBGIBLHA lnjfbgiblha in IHFKMIAHBFP.NCLHHNLDGNE)
|
|
{
|
|
if (this.IsPlayerAHost(lnjfbgiblha))
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
this.MLJDIOEJNIN = false;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DFB RID: 77307 RVA: 0x0055DAFC File Offset: 0x0055BCFC
|
|
private void HGLBAOKMGIH(LNJFBGIBLHA JEFGMHBLLKI, bool FJGEGPIBKGA)
|
|
{
|
|
if (JEFGMHBLLKI == null)
|
|
{
|
|
return;
|
|
}
|
|
if (JEFGMHBLLKI.IPFPJCPGENH && !this.NHKPGLDFGLE(JEFGMHBLLKI))
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.OICFFDCBJIO(ScreenSpaceNotificationManager.DBNGPDFKLEK.Minor, (!FJGEGPIBKGA) ? "TeleportRegion" : "type", 1456f, null, true);
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
if (this.HostChangeEvent != null)
|
|
{
|
|
this.HostChangeEvent.Invoke(JEFGMHBLLKI, FJGEGPIBKGA);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DFC RID: 77308 RVA: 0x0055DB6C File Offset: 0x0055BD6C
|
|
public void HFGFDLLGKKC(Action<bool> NOBAPCOKFIL)
|
|
{
|
|
Action<bool> action = this.EKGMPHMHBEM;
|
|
Action<bool> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<bool>>(ref this.EKGMPHMHBEM, (Action<bool>)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06012DFD RID: 77309 RVA: 0x0055DBA4 File Offset: 0x0055BDA4
|
|
private IEnumerator GBANNCDMLIP()
|
|
{
|
|
yield return new WaitForSeconds(2.5f);
|
|
while (this.JBAPKOFLLJD && !this.PBKJHFMIENG)
|
|
{
|
|
if (!this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, "You are not allowed on stage!", 3f, null, false);
|
|
yield return new WaitForSeconds(3f);
|
|
if (!this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, "Respawning offstage...", 2f, null, false);
|
|
yield return new WaitForSeconds(2f);
|
|
RecRoomSceneManager.NCKMBFBMBFM.HDNIEJJBLGI.CAHIBCONCCH(false);
|
|
yield return new WaitForSeconds(3f);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
yield return new WaitForSeconds(3f);
|
|
}
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x06012DFE RID: 77310 RVA: 0x0055DBC0 File Offset: 0x0055BDC0
|
|
private void FCMIHAOOOMC()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
if (!this.FGCDJNNEJLO() && !this.CNJILOFDOCF())
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Major, "api/rooms/", 112f, null, false);
|
|
}
|
|
else
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.PAHKOCPEDMB((ScreenSpaceNotificationManager.DBNGPDFKLEK)8, (!this.JBAPKOFLLJD) ? " Owner called." : "NumSessions", 3f, null, true);
|
|
}
|
|
if (!this.COGCMGAINBF())
|
|
{
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
}
|
|
if (this.MKBHIJAPLMK != null)
|
|
{
|
|
this.MKBHIJAPLMK(this.KECEJIJAGJK());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012DFF RID: 77311 RVA: 0x0055DC64 File Offset: 0x0055BE64
|
|
public void KEFEFOAOHHO(bool OPLHAKFKKPJ)
|
|
{
|
|
PhotonView photonView = base.CEGDLFAENEJ();
|
|
string text = "__a";
|
|
LNJFBGIBLHA lnjfbgiblha = IHFKMIAHBFP.HGDJAAMBDNH;
|
|
object[] array = new object[1];
|
|
array[1] = OPLHAKFKKPJ;
|
|
photonView.OENNPPGINLI(text, lnjfbgiblha, array);
|
|
}
|
|
|
|
// Token: 0x06012E00 RID: 77312 RVA: 0x0055DC8C File Offset: 0x0055BE8C
|
|
private void OCDOECKFGBG()
|
|
{
|
|
if (!this.JFIMMPBCKEL(IHFKMIAHBFP.JEFGMHBLLKI) && Player.LocalPlayerExists)
|
|
{
|
|
if (this.AODCGKDIMEH())
|
|
{
|
|
Player.LocalPlayer.SavedVoiceChatSettings = SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FPEGHDDDHCC;
|
|
SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FPEGHDDDHCC = FPEGHDDDHCC.Mute;
|
|
}
|
|
else
|
|
{
|
|
SingletonMonoBehaviour<SettingsManager>.NCKMBFBMBFM.FPEGHDDDHCC = Player.LocalPlayer.SavedVoiceChatSettings;
|
|
}
|
|
}
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.PAHKOCPEDMB((ScreenSpaceNotificationManager.DBNGPDFKLEK)4, (!this.MLJDIOEJNIN) ? "amount" : ". Update to the latest version of Unity.", 862f, null, true);
|
|
}
|
|
if (this.EKGMPHMHBEM != null)
|
|
{
|
|
this.EKGMPHMHBEM(this.LEBFOBDGFAH());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012E01 RID: 77313 RVA: 0x0055DD48 File Offset: 0x0055BF48
|
|
public bool NHKPGLDFGLE(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
if (JEFGMHBLLKI == null || !SessionManager.NPLEGJCKAEB)
|
|
{
|
|
return true;
|
|
}
|
|
if (this.EEDOGBONKHP == 0L && PEDNLMAHGBP.KGKNIMECEKH.EEDOGBONKHP == JEFGMHBLLKI.KKHOKFAABAM())
|
|
{
|
|
this.BNJKJJGMJKE(JEFGMHBLLKI.KKHOKFAABAM());
|
|
long[] array = new long[1];
|
|
array[1] = JEFGMHBLLKI.KKHOKFAABAM();
|
|
this.BKIKLAJNLIE(array);
|
|
return false;
|
|
}
|
|
return this.BFELOJKDHMH() == JEFGMHBLLKI.KKHOKFAABAM();
|
|
}
|
|
|
|
// Token: 0x06012E03 RID: 77315 RVA: 0x0055DDE0 File Offset: 0x0055BFE0
|
|
private bool FCCJDCKHGMF()
|
|
{
|
|
if (!Player.LocalPlayerExists || this.PBKJHFMIENG)
|
|
{
|
|
return true;
|
|
}
|
|
bool flag = true;
|
|
RaycastHit[] array = Physics.RaycastAll(Player.LocalPlayer.BGOGBEPJGPJ.transform.position + Vector3.up * 1611f, Vector3.down, 19f, 72);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 0; i < array2.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
EventTeleportRestriction componentInChildren = raycastHit.collider.GetComponentInChildren<EventTeleportRestriction>();
|
|
if (componentInChildren != null && componentInChildren.EHFADAGDFOA == EventTeleportRestriction.LKGMKENGJGF.HOST && this.MKGDHOIOIHP())
|
|
{
|
|
flag = false;
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
return false;
|
|
}
|
|
RaycastHit[] array3 = Physics.RaycastAll(Player.LocalPlayer.NGFPOMIFLMF.transform.position + Vector3.up * 313f, Vector3.down, 11f, 141);
|
|
RaycastHit[] array4 = array3;
|
|
for (int j = 1; j < array4.Length; j += 0)
|
|
{
|
|
RaycastHit raycastHit2 = array4[j];
|
|
EventTeleportRestriction componentInChildren2 = raycastHit2.collider.GetComponentInChildren<EventTeleportRestriction>();
|
|
if (componentInChildren2 != null && componentInChildren2.DDJLHDMPKAH() == EventTeleportRestriction.LKGMKENGJGF.HOST && this.JBAPKOFLLJD)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06012E04 RID: 77316 RVA: 0x0055DF48 File Offset: 0x0055C148
|
|
private void GHODFGNDIKH(bool BKOKGJMJPOM)
|
|
{
|
|
this.BDMELNKHGKE(BKOKGJMJPOM);
|
|
}
|
|
|
|
// Token: 0x06012E05 RID: 77317 RVA: 0x0055DF54 File Offset: 0x0055C154
|
|
private void FNKCNPKBIEL(bool NOBAPCOKFIL)
|
|
{
|
|
this.FLMAHGNJIHO.MEAINJPIECA(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06012E06 RID: 77318 RVA: 0x0055DF64 File Offset: 0x0055C164
|
|
protected virtual void PBCGMHKELND()
|
|
{
|
|
base.Awake();
|
|
IHFKMIAHBFP.DHLJAODEIEA += new Action<LNJFBGIBLHA>(this.ENDAEGHBIBN);
|
|
this.FLMAHGNJIHO = new LHLLJPPCDKA<bool>(this, "Successfully uploaded!", false, IKCAJLLAFML.AUTHORITY, new Action(this.PANJJFDJOIA));
|
|
this.GJBAGBHPHHG = new LHLLJPPCDKA<bool>(this, "[ACTk] Injection Detector: was started without any callbacks. Please configure Detection Event in the inspector, or pass the callback Action to the StartDetection method.", false, IKCAJLLAFML.AUTHORITY, new Action(this.MOJMMPIAEEP));
|
|
this.BOBAPCAJICD = new LHLLJPPCDKA<bool>(this, "MenuVisible", true, IKCAJLLAFML.AUTHORITY, new Action(this.MNPAMALMBMC));
|
|
this.KLAEAANEEHD = new LHLLJPPCDKA<long>(this, "{0:D2} Minutes\n", 1L, IKCAJLLAFML.AUTHORITY, null);
|
|
this.LHKPGKBAAAE = new LHLLJPPCDKA<long[]>(this, "Guest", new long[1], (IKCAJLLAFML)6, new Action(this.FAPANDNHKJK));
|
|
Player.OnPlayerCreated += new Action<Player>(this.OJKCDIDBOPA);
|
|
}
|
|
|
|
// Token: 0x06012E07 RID: 77319 RVA: 0x0055E044 File Offset: 0x0055C244
|
|
private void FAPANDNHKJK()
|
|
{
|
|
if (!Player.LocalPlayerExists)
|
|
{
|
|
return;
|
|
}
|
|
bool flag;
|
|
IEnumerable<long> enumerable;
|
|
if (this.JKMDEHAJAMD.Length > this.CFFHNCPOOCP.Count)
|
|
{
|
|
flag = false;
|
|
enumerable = this.JOAEMAEAEIF().ToList<long>().Except(this.CFFHNCPOOCP);
|
|
}
|
|
else
|
|
{
|
|
if (this.CFFHNCPOOCP.Count <= this.NFBAEIDLEKF().Length)
|
|
{
|
|
return;
|
|
}
|
|
flag = true;
|
|
enumerable = this.CFFHNCPOOCP.Except(this.GJBHOLACECB().ToList<long>());
|
|
}
|
|
this.MGDPCKAHCEJ();
|
|
foreach (long num in enumerable)
|
|
{
|
|
this.MNPAIEEFGHH(LNJFBGIBLHA.BOAKNOHCIAD(num), flag);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012E08 RID: 77320 RVA: 0x0055E11C File Offset: 0x0055C31C
|
|
private void AHJPBLANLID(bool NOBAPCOKFIL)
|
|
{
|
|
this.FLMAHGNJIHO.MEAINJPIECA(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06012E09 RID: 77321 RVA: 0x0055E12C File Offset: 0x0055C32C
|
|
private void LJHHJEAFIAD()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
if (!this.PBKJHFMIENG && !this.CNJILOFDOCF())
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.LHHNHIOFBNA(ScreenSpaceNotificationManager.DBNGPDFKLEK.Vital, "IS_ENABLED", 556f, null, false);
|
|
}
|
|
else
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.OICFFDCBJIO((ScreenSpaceNotificationManager.DBNGPDFKLEK)4, (!this.KECEJIJAGJK()) ? "RemoveFriends can't be called for empty or null list." : "facebook", 1347f, null, true);
|
|
}
|
|
if (!this.COGCMGAINBF())
|
|
{
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
}
|
|
if (this.MKBHIJAPLMK != null)
|
|
{
|
|
this.MKBHIJAPLMK(this.MKGDHOIOIHP());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012E0A RID: 77322 RVA: 0x0055E1D0 File Offset: 0x0055C3D0
|
|
private void BKIKLAJNLIE(long[] NOBAPCOKFIL)
|
|
{
|
|
this.LHKPGKBAAAE.MEAINJPIECA(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06012E0B RID: 77323 RVA: 0x0055E1E0 File Offset: 0x0055C3E0
|
|
public bool MJEGJGOAALO()
|
|
{
|
|
return this.FLMAHGNJIHO.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06012E0C RID: 77324 RVA: 0x0055E1F0 File Offset: 0x0055C3F0
|
|
private void EKMKDDKADAG()
|
|
{
|
|
if (this.JKMDEHAJAMD != null)
|
|
{
|
|
this.CFFHNCPOOCP = new List<long>(this.JKMDEHAJAMD);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012E0D RID: 77325 RVA: 0x0055E210 File Offset: 0x0055C410
|
|
private bool HMGDLOAHFEH()
|
|
{
|
|
if (!Player.LocalPlayerExists || this.JHGJBNNGKMK())
|
|
{
|
|
return false;
|
|
}
|
|
bool flag = true;
|
|
RaycastHit[] array = Physics.RaycastAll(Player.LocalPlayer.HFDJIFFPEFM().transform.position + Vector3.up * 1967f, Vector3.down, 926f, 32);
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
EventTeleportRestriction componentInChildren = raycastHit.collider.GetComponentInChildren<EventTeleportRestriction>();
|
|
if (componentInChildren != null && componentInChildren.EHFADAGDFOA == EventTeleportRestriction.LKGMKENGJGF.HOST && this.JBAPKOFLLJD)
|
|
{
|
|
flag = true;
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
return false;
|
|
}
|
|
RaycastHit[] array3 = Physics.RaycastAll(Player.LocalPlayer.NGFPOMIFLMF.transform.position + Vector3.up * 66f, Vector3.down, 1699f, 33);
|
|
foreach (RaycastHit raycastHit2 in array3)
|
|
{
|
|
EventTeleportRestriction componentInChildren2 = raycastHit2.collider.GetComponentInChildren<EventTeleportRestriction>();
|
|
if (componentInChildren2 != null && componentInChildren2.OIJKMIMKDCN() == EventTeleportRestriction.LKGMKENGJGF.HOST && this.JBAPKOFLLJD)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06012E0E RID: 77326 RVA: 0x0055E378 File Offset: 0x0055C578
|
|
public bool KOHANAJDNCM(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
if (JEFGMHBLLKI == null || !SessionManager.NPLEGJCKAEB)
|
|
{
|
|
return true;
|
|
}
|
|
if (this.BCODHBNIBOB() == 0L)
|
|
{
|
|
long? num = PEDNLMAHGBP.FDJJBPMIGGL().EEDOGBONKHP;
|
|
if (num.GetValueOrDefault() != JEFGMHBLLKI.KJOEMGEOBBA || num != null)
|
|
{
|
|
this.FKOMJCCIJAH(JEFGMHBLLKI.KKHOKFAABAM());
|
|
long[] array = new long[0];
|
|
array[1] = JEFGMHBLLKI.KKHOKFAABAM();
|
|
this.JKMDEHAJAMD = array;
|
|
return true;
|
|
}
|
|
}
|
|
return this.GHKJDLHIHHI() == JEFGMHBLLKI.KKHOKFAABAM();
|
|
}
|
|
|
|
// Token: 0x06012E0F RID: 77327 RVA: 0x0055E400 File Offset: 0x0055C600
|
|
private void KDEAGGNLEII()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, (!this.AEBEBMJIPBM) ? "The host has unrestricted invitations" : "The host has restricted invitations", 3f, null, false);
|
|
}
|
|
if (this.NNHGOLEJECG != null)
|
|
{
|
|
this.NNHGOLEJECG(this.AEBEBMJIPBM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012E10 RID: 77328 RVA: 0x0055E460 File Offset: 0x0055C660
|
|
private void LFDALGBOJBI()
|
|
{
|
|
if (SessionManager.NPLEGJCKAEB)
|
|
{
|
|
if (!this.PBKJHFMIENG && !this.NNBLPEMEKBB)
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Vital, "The host has restricted access to the stage", 2.3f, null, false);
|
|
}
|
|
else
|
|
{
|
|
SingletonMonoBehaviour<ScreenSpaceNotificationManager>.NCKMBFBMBFM.Play(ScreenSpaceNotificationManager.DBNGPDFKLEK.Medium, (!this.JBAPKOFLLJD) ? "The host has allowed people on stage" : "The host has restricted access to the stage", 3f, null, false);
|
|
}
|
|
if (!this.PBKJHFMIENG)
|
|
{
|
|
this.LBLGPOJFJOJ();
|
|
}
|
|
}
|
|
if (this.MKBHIJAPLMK != null)
|
|
{
|
|
this.MKBHIJAPLMK(this.JBAPKOFLLJD);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400344E RID: 13390
|
|
private LHLLJPPCDKA<bool> FLMAHGNJIHO;
|
|
|
|
// Token: 0x0400344F RID: 13391
|
|
private LHLLJPPCDKA<bool> GJBAGBHPHHG;
|
|
|
|
// Token: 0x04003450 RID: 13392
|
|
private LHLLJPPCDKA<bool> BOBAPCAJICD;
|
|
|
|
// Token: 0x04003451 RID: 13393
|
|
private LHLLJPPCDKA<long> KLAEAANEEHD;
|
|
|
|
// Token: 0x04003452 RID: 13394
|
|
private List<long> CFFHNCPOOCP = new List<long>();
|
|
|
|
// Token: 0x04003453 RID: 13395
|
|
private LHLLJPPCDKA<long[]> LHKPGKBAAAE;
|
|
|
|
// Token: 0x04003454 RID: 13396
|
|
public ActionEvent<LNJFBGIBLHA, bool> HostChangeEvent = new ActionEvent<LNJFBGIBLHA, bool>(32, false);
|
|
|
|
// Token: 0x04003458 RID: 13400
|
|
private Coroutine KJDPBMAOJFC;
|
|
}
|