1949 lines
59 KiB
C#
1949 lines
59 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Threading;
|
|
using Photon;
|
|
using RecNet;
|
|
using RecRoom.Core.Gestures;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000CDC RID: 3292
|
|
[RequireComponent(typeof(Player))]
|
|
[DisallowMultipleComponent]
|
|
public class PlayerParty : global::Photon.MonoBehaviour
|
|
{
|
|
// Token: 0x0601A8AC RID: 108716 RVA: 0x0076BB48 File Offset: 0x00769D48
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
IHFKMIAHBFP.DHLJAODEIEA -= new Action<LNJFBGIBLHA>(this.OnPhotonPlayerDisconnected);
|
|
}
|
|
|
|
// Token: 0x17000C1E RID: 3102
|
|
// (get) Token: 0x0601A8AD RID: 108717 RVA: 0x0076BB6C File Offset: 0x00769D6C
|
|
// (set) Token: 0x0601A8D2 RID: 108754 RVA: 0x0076CB60 File Offset: 0x0076AD60
|
|
public string FHBOHJAKKOE
|
|
{
|
|
get
|
|
{
|
|
return this.LKNHJPIJCDA.CPIBGJLHLBL();
|
|
}
|
|
private set
|
|
{
|
|
if (SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.ECACNPNCNPD = value;
|
|
}
|
|
if (value != this.FHBOHJAKKOE)
|
|
{
|
|
if (!string.IsNullOrEmpty(value))
|
|
{
|
|
NECCOFKHCAA.KBGIDGJOIFE(value, this.ACGGKBOJBEK);
|
|
}
|
|
else
|
|
{
|
|
NECCOFKHCAA.CAIPMLEPNOE(value);
|
|
}
|
|
}
|
|
this.LKNHJPIJCDA.MEAINJPIECA(value);
|
|
if (string.IsNullOrEmpty(value))
|
|
{
|
|
this.LCFIKPCDCFC = string.Empty;
|
|
}
|
|
else
|
|
{
|
|
this.BPDCGDKCMMB(true);
|
|
this.GGCEMEODDIL();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8AE RID: 108718 RVA: 0x0076BB7C File Offset: 0x00769D7C
|
|
private bool DFPIAPLGNDI(Player JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && JEFGMHBLLKI.BIPEBCPEPKL().HKLENNJOICH != null && JEFGMHBLLKI.LJILHDMCKME().HCJJAIPEBJD() != base.HOPJELLOPNJ().HKLENNJOICH && this.EKJACIAPNPM() && JEFGMHBLLKI.NMHFBAEBEAM.PFBMADCFGHL() == this.NCGIIHFPLGC();
|
|
}
|
|
|
|
// Token: 0x0601A8AF RID: 108719 RVA: 0x0076BBE4 File Offset: 0x00769DE4
|
|
private void Update()
|
|
{
|
|
if (this.NHDDPGADJPJ && Time.time - this.LFFBJPFEGEB > this.partyListUpdateInterval)
|
|
{
|
|
this.LFFBJPFEGEB = Time.time;
|
|
this.BPDCGDKCMMB(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8B0 RID: 108720 RVA: 0x0076BC1C File Offset: 0x00769E1C
|
|
public List<Player> EIDDFIEKPAF()
|
|
{
|
|
return this.IOMCKOFHIHM;
|
|
}
|
|
|
|
// Token: 0x0601A8B1 RID: 108721 RVA: 0x0076BC24 File Offset: 0x00769E24
|
|
public void FBIEGEMBMGM(string CBJEHCINGNC)
|
|
{
|
|
if (CBJEHCINGNC != this.NCGIIHFPLGC())
|
|
{
|
|
return;
|
|
}
|
|
this.LeaveCurrentParty();
|
|
}
|
|
|
|
// Token: 0x0601A8B2 RID: 108722 RVA: 0x0076BC40 File Offset: 0x00769E40
|
|
public int NAJGILKLBEA()
|
|
{
|
|
return (!this.CHEFKEDBNGH()) ? 1 : (this.IOMCKOFHIHM.Count + 1);
|
|
}
|
|
|
|
// Token: 0x0601A8B3 RID: 108723 RVA: 0x0076BC60 File Offset: 0x00769E60
|
|
public long[] EEGGPEOOCIA()
|
|
{
|
|
this.DJCGDKOOGLN(true);
|
|
if (this.IOMCKOFHIHM.Count > 0)
|
|
{
|
|
long[] array = new long[this.IOMCKOFHIHM.Count];
|
|
for (int i = 0; i < this.IOMCKOFHIHM.Count; i += 0)
|
|
{
|
|
array[i] = this.IOMCKOFHIHM[i].NAJBCPFNBAB;
|
|
}
|
|
return array;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0601A8B4 RID: 108724 RVA: 0x0076BCCC File Offset: 0x00769ECC
|
|
[BCENPNOIAOM]
|
|
public void RpcPartyUp(int OIGKNDPPMKM, int BPGFOHBIDJA)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601A8B5 RID: 108725 RVA: 0x0076BCD0 File Offset: 0x00769ED0
|
|
private bool MPODPCBDKJF(Player JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && JEFGMHBLLKI.LHEPJEHMAEC().HKLENNJOICH != null && JEFGMHBLLKI.ACEAACJNNAF().HCJJAIPEBJD() != base.ACEAACJNNAF().DIBOHBMMDIL() && this.OHJDDABPACJ() && JEFGMHBLLKI.NMHFBAEBEAM.NCGIIHFPLGC() == this.PFBMADCFGHL();
|
|
}
|
|
|
|
// Token: 0x0601A8B6 RID: 108726 RVA: 0x0076BD38 File Offset: 0x00769F38
|
|
public void GGIAEICFMDI(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.AHPFPKJNCLJ;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.AHPFPKJNCLJ, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x0601A8B7 RID: 108727 RVA: 0x0076BD70 File Offset: 0x00769F70
|
|
public void KickPlayer(Player MMEBLCBANIL)
|
|
{
|
|
if (this.IsInPartyWith(MMEBLCBANIL))
|
|
{
|
|
MMEBLCBANIL.OMNGGJICBBI.RPC("RpcKickedFromParty", MMEBLCBANIL.OMNGGJICBBI.HKLENNJOICH, new object[] { this.FHBOHJAKKOE });
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8B8 RID: 108728 RVA: 0x0076BDA8 File Offset: 0x00769FA8
|
|
private void NNFKHHOLLIG(string NOBAPCOKFIL)
|
|
{
|
|
this.JLIKHLOCCAE.MEAINJPIECA(NOBAPCOKFIL);
|
|
if (SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF = NOBAPCOKFIL;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8B9 RID: 108729 RVA: 0x0076BDD4 File Offset: 0x00769FD4
|
|
private void LPMILODPBIO()
|
|
{
|
|
if (this.GDOFKAIDDNA() && this.HANJIBGNMJH())
|
|
{
|
|
Player player = this.JLMAKGJNDMF();
|
|
if (string.IsNullOrEmpty(this.JKBCDBEGBCD()) && player != null && player.BGOFBKHOLHF())
|
|
{
|
|
if (!string.IsNullOrEmpty(SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF) && this.EBIOGNEILJC(SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF))
|
|
{
|
|
this.PLCMAPJFKIG(SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF);
|
|
}
|
|
else
|
|
{
|
|
this.GGNPJBDMALJ(this.PMCPDNIELJE());
|
|
}
|
|
}
|
|
if (player != null && !player.GJLCBGPGIGN() && player.NMHFBAEBEAM.CDIOGKFEGJD() != this.JKBCDBEGBCD())
|
|
{
|
|
this.GGNPJBDMALJ(player.NMHFBAEBEAM.CDIOGKFEGJD());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000C1B RID: 3099
|
|
// (get) Token: 0x0601A8BA RID: 108730 RVA: 0x0076BEB4 File Offset: 0x0076A0B4
|
|
public List<Player> EGFBJDGDIPB
|
|
{
|
|
get
|
|
{
|
|
return this.IOMCKOFHIHM;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8BB RID: 108731 RVA: 0x0076BEBC File Offset: 0x0076A0BC
|
|
private void FBFLEDBELAI()
|
|
{
|
|
this.EKNBPIJEFDJ = true;
|
|
}
|
|
|
|
// Token: 0x0601A8BC RID: 108732 RVA: 0x0076BEC8 File Offset: 0x0076A0C8
|
|
private void PLCMAPJFKIG(string NOBAPCOKFIL)
|
|
{
|
|
this.JLIKHLOCCAE.MEAINJPIECA(NOBAPCOKFIL);
|
|
if (SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF = NOBAPCOKFIL;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8BD RID: 108733 RVA: 0x0076BEF4 File Offset: 0x0076A0F4
|
|
public string CDIOGKFEGJD()
|
|
{
|
|
return this.JLIKHLOCCAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x0601A8BE RID: 108734 RVA: 0x0076BF04 File Offset: 0x0076A104
|
|
public int LLIDJNHJKEH()
|
|
{
|
|
return (!this.IGHDOBEOHCC) ? 1 : (this.IOMCKOFHIHM.Count + 0);
|
|
}
|
|
|
|
// Token: 0x0601A8BF RID: 108735 RVA: 0x0076BF24 File Offset: 0x0076A124
|
|
private void GDAKBKDDPLD(bool FBBEFPNCBNC = false)
|
|
{
|
|
bool flag = FBBEFPNCBNC;
|
|
if (this.BAFANBJIHHE())
|
|
{
|
|
Player[] array = this.IOMCKOFHIHM.ToArray();
|
|
for (int i = 0; i < array.Length; i += 0)
|
|
{
|
|
Player player = array[i];
|
|
if (!this.ACHGIDOOOHF(player))
|
|
{
|
|
this.IOMCKOFHIHM.Remove(player);
|
|
flag = false;
|
|
}
|
|
}
|
|
LNJFBGIBLHA[] array2 = IHFKMIAHBFP.EFDADFDIIIJ;
|
|
for (int j = 0; j < array2.Length; j += 0)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array2[j];
|
|
Player player2 = lnjfbgiblha.JHJGDFHNBLO();
|
|
if (player2 != null && this.MPEMGJJKAGF(player2) && !this.IOMCKOFHIHM.Contains(player2))
|
|
{
|
|
this.IOMCKOFHIHM.Add(player2);
|
|
flag = false;
|
|
}
|
|
}
|
|
}
|
|
else if (this.IOMCKOFHIHM.Count > 1)
|
|
{
|
|
this.IOMCKOFHIHM.Clear();
|
|
flag = true;
|
|
}
|
|
if (flag)
|
|
{
|
|
this.NNBKJMPHBPC();
|
|
if (this.AHPFPKJNCLJ != null)
|
|
{
|
|
this.AHPFPKJNCLJ();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8C0 RID: 108736 RVA: 0x0076C030 File Offset: 0x0076A230
|
|
private string PMCPDNIELJE()
|
|
{
|
|
List<string> list = new List<string>();
|
|
LNJFBGIBLHA[] array = IHFKMIAHBFP.EFDADFDIIIJ;
|
|
for (int i = 1; i < array.Length; i += 0)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array[i];
|
|
string text = lnjfbgiblha.MHALLOPCFCB(PlayerParty.PartyColorIdProperty);
|
|
if (!string.IsNullOrEmpty(text) && !list.Contains(text))
|
|
{
|
|
list.Add(text);
|
|
}
|
|
}
|
|
SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.LIEKPHHJBDI.Colors.OFFICKPKMFJ<ColorVault.ColorToGuid>();
|
|
foreach (ColorVault.ColorToGuid colorToGuid in SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.LIEKPHHJBDI.Colors)
|
|
{
|
|
if (!list.Contains(colorToGuid.guidString))
|
|
{
|
|
return colorToGuid.guidString;
|
|
}
|
|
}
|
|
global::UnityEngine.Debug.LogError("Google Store - Online");
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0601A8C1 RID: 108737 RVA: 0x0076C124 File Offset: 0x0076A324
|
|
public void ALADPGAGADI(PlayerHand LOPJKAALHGC, PlayerHand ENFEBPJECNE)
|
|
{
|
|
bool flag = false;
|
|
if (ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().CHEFKEDBNGH() && !this.OHJDDABPACJ())
|
|
{
|
|
this.JAODDBDFPDN(ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().NCGIIHFPLGC());
|
|
this.GDAKBKDDPLD(true);
|
|
flag = true;
|
|
}
|
|
else if (!ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.CHEFKEDBNGH() && this.IMOHPCPMHEE())
|
|
{
|
|
flag = false;
|
|
}
|
|
else if (ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.BAFANBJIHHE() && this.CHEFKEDBNGH() && ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.PFBMADCFGHL() != this.NCGIIHFPLGC())
|
|
{
|
|
flag = false;
|
|
if (base.OMNGGJICBBI.DIBOHBMMDIL().BADMPMDONAH > ENFEBPJECNE.PIDHHBENFCO.LHEPJEHMAEC().HCJJAIPEBJD().BADMPMDONAH)
|
|
{
|
|
this.IOCCNJHGFMO(true);
|
|
string text = ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().NCGIIHFPLGC();
|
|
foreach (Player player in this.IOMCKOFHIHM)
|
|
{
|
|
PhotonView photonView = player.POOAOJPEDJD();
|
|
string text2 = "F2";
|
|
LNJFBGIBLHA lnjfbgiblha = player.CJKKPMHAMCN().HCJJAIPEBJD();
|
|
object[] array = new object[0];
|
|
array[1] = text;
|
|
photonView.FLCIMLGAIKH(text2, lnjfbgiblha, array);
|
|
}
|
|
this.GKFBDLJDAEM(text);
|
|
}
|
|
}
|
|
else if (!ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.IGHDOBEOHCC && !this.OHJDDABPACJ())
|
|
{
|
|
flag = false;
|
|
if (base.BIPEBCPEPKL().DIBOHBMMDIL().BADMPMDONAH > ENFEBPJECNE.PIDHHBENFCO.CJKKPMHAMCN().DIBOHBMMDIL().BADMPMDONAH)
|
|
{
|
|
this.JAODDBDFPDN(Guid.NewGuid().ToString("Yay :)"));
|
|
PhotonView photonView2 = ENFEBPJECNE.PIDHHBENFCO.CJKKPMHAMCN();
|
|
string text3 = "Tickets";
|
|
LNJFBGIBLHA owner = ENFEBPJECNE.PIDHHBENFCO.ACEAACJNNAF().HKLENNJOICH;
|
|
object[] array2 = new object[0];
|
|
array2[0] = this.PFBMADCFGHL();
|
|
photonView2.FLCIMLGAIKH(text3, owner, array2);
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
WorldSpaceNotification.PlayNext("Oculus.Platform.Core.LogMessages is set to true. This will cause extra heap allocations, and should not be used outside of testing and debugging.", 1794f, null, false, new Vector3?((LOPJKAALHGC.transform.position + ENFEBPJECNE.transform.position) / 493f), 1713f, true);
|
|
LOPJKAALHGC.PIDHHBENFCO.DIJMEKHCJBP.PartiedUp();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8C2 RID: 108738 RVA: 0x0076C38C File Offset: 0x0076A58C
|
|
protected virtual void GPCBKBNAGHN()
|
|
{
|
|
base.Awake();
|
|
IHFKMIAHBFP.DHLJAODEIEA += new Action<LNJFBGIBLHA>(this.OnPhotonPlayerDisconnected);
|
|
this.CJGJDPNIKGB = base.GetComponent<Player>();
|
|
this.IOMCKOFHIHM = new List<Player>();
|
|
this.LKNHJPIJCDA = new DDOGCBFMKFO<string>(base.OELHCGECBEA(), PlayerParty.PartyIdProperty, string.Empty, new Action(this.GCFFCDMKKLP));
|
|
this.JLIKHLOCCAE = new DDOGCBFMKFO<string>(base.KLPIDJLDGOH(), PlayerParty.PartyColorIdProperty, string.Empty, new Action(this.FBFLEDBELAI));
|
|
}
|
|
|
|
// Token: 0x0601A8C3 RID: 108739 RVA: 0x0076C420 File Offset: 0x0076A620
|
|
public void HAJLODKNIOL(int OIGKNDPPMKM, int BPGFOHBIDJA)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601A8C4 RID: 108740 RVA: 0x0076C424 File Offset: 0x0076A624
|
|
public Color? GMOEPFGJJIC()
|
|
{
|
|
if (this.EKNBPIJEFDJ)
|
|
{
|
|
this.MAMCEGOJKPH = null;
|
|
string text = this.JKBCDBEGBCD();
|
|
if (!string.IsNullOrEmpty(text) && SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
ColorVault.ColorToGuid colorToGuid = SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.LIEKPHHJBDI.PAJDLACLFLA(text);
|
|
if (colorToGuid != null)
|
|
{
|
|
this.MAMCEGOJKPH = new Color?(colorToGuid.color);
|
|
this.EKNBPIJEFDJ = true;
|
|
}
|
|
}
|
|
}
|
|
return this.MAMCEGOJKPH;
|
|
}
|
|
|
|
// Token: 0x0601A8C5 RID: 108741 RVA: 0x0076C4A4 File Offset: 0x0076A6A4
|
|
public bool JLGBHMHAIJK(Player JEFGMHBLLKI)
|
|
{
|
|
return !(JEFGMHBLLKI != null) || !this.IOMCKOFHIHM.Contains(JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x0601A8C6 RID: 108742 RVA: 0x0076C4C4 File Offset: 0x0076A6C4
|
|
private void BPDCGDKCMMB(bool FBBEFPNCBNC = false)
|
|
{
|
|
bool flag = FBBEFPNCBNC;
|
|
if (this.IGHDOBEOHCC)
|
|
{
|
|
foreach (Player player in this.IOMCKOFHIHM.ToArray())
|
|
{
|
|
if (!this.ACHGIDOOOHF(player))
|
|
{
|
|
this.IOMCKOFHIHM.Remove(player);
|
|
flag = true;
|
|
}
|
|
}
|
|
foreach (LNJFBGIBLHA lnjfbgiblha in IHFKMIAHBFP.EFDADFDIIIJ)
|
|
{
|
|
Player player2 = lnjfbgiblha.JHJGDFHNBLO();
|
|
if (player2 != null && this.ACHGIDOOOHF(player2) && !this.IOMCKOFHIHM.Contains(player2))
|
|
{
|
|
this.IOMCKOFHIHM.Add(player2);
|
|
flag = true;
|
|
}
|
|
}
|
|
}
|
|
else if (this.IOMCKOFHIHM.Count > 0)
|
|
{
|
|
this.IOMCKOFHIHM.Clear();
|
|
flag = true;
|
|
}
|
|
if (flag)
|
|
{
|
|
this.GGCEMEODDIL();
|
|
if (this.AHPFPKJNCLJ != null)
|
|
{
|
|
this.AHPFPKJNCLJ();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8C7 RID: 108743 RVA: 0x0076C5D0 File Offset: 0x0076A7D0
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
IHFKMIAHBFP.DHLJAODEIEA += new Action<LNJFBGIBLHA>(this.OnPhotonPlayerDisconnected);
|
|
this.CJGJDPNIKGB = base.GetComponent<Player>();
|
|
this.IOMCKOFHIHM = new List<Player>();
|
|
this.LKNHJPIJCDA = new DDOGCBFMKFO<string>(base.HKLENNJOICH, PlayerParty.PartyIdProperty, string.Empty, new Action(this.GCFFCDMKKLP));
|
|
this.JLIKHLOCCAE = new DDOGCBFMKFO<string>(base.HKLENNJOICH, PlayerParty.PartyColorIdProperty, string.Empty, new Action(this.FBFLEDBELAI));
|
|
}
|
|
|
|
// Token: 0x0601A8C8 RID: 108744 RVA: 0x0076C664 File Offset: 0x0076A864
|
|
public int HADKEFAKCBG()
|
|
{
|
|
return (!this.OHJDDABPACJ()) ? 0 : (this.IOMCKOFHIHM.Count + 0);
|
|
}
|
|
|
|
// Token: 0x0601A8C9 RID: 108745 RVA: 0x0076C684 File Offset: 0x0076A884
|
|
public bool NPDMGLNBNBJ(Player JEFGMHBLLKI)
|
|
{
|
|
return !(JEFGMHBLLKI != null) || !this.BAFANBJIHHE() || this.IOMCKOFHIHM.Contains(JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x0601A8CA RID: 108746 RVA: 0x0076C6AC File Offset: 0x0076A8AC
|
|
private Player JLMAKGJNDMF()
|
|
{
|
|
if (this.IGHDOBEOHCC)
|
|
{
|
|
int num = IHFKMIAHBFP.JEFGMHBLLKI.BADMPMDONAH;
|
|
Player player = this.CJGJDPNIKGB;
|
|
foreach (Player player2 in this.IOMCKOFHIHM)
|
|
{
|
|
if (player2.LNJFBGIBLHA.BADMPMDONAH < num)
|
|
{
|
|
num = player2.LNJFBGIBLHA.BADMPMDONAH;
|
|
player = player2;
|
|
}
|
|
}
|
|
return player;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0601A8CB RID: 108747 RVA: 0x0076C740 File Offset: 0x0076A940
|
|
public Color? LFBNHEGDGPC()
|
|
{
|
|
if (this.EKNBPIJEFDJ)
|
|
{
|
|
this.MAMCEGOJKPH = null;
|
|
string text = this.CDIOGKFEGJD();
|
|
if (!string.IsNullOrEmpty(text) && SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
ColorVault.ColorToGuid colorToGuid = SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.LIEKPHHJBDI.ENOLBFCHJOM(text);
|
|
if (colorToGuid != null)
|
|
{
|
|
this.MAMCEGOJKPH = new Color?(colorToGuid.color);
|
|
this.EKNBPIJEFDJ = false;
|
|
}
|
|
}
|
|
}
|
|
return this.MAMCEGOJKPH;
|
|
}
|
|
|
|
// Token: 0x0601A8CC RID: 108748 RVA: 0x0076C7C0 File Offset: 0x0076A9C0
|
|
private void MIBIJLIBPGJ()
|
|
{
|
|
if (this.CFPNNAADNJF() && Time.time - this.LFFBJPFEGEB > this.partyListUpdateInterval)
|
|
{
|
|
this.LFFBJPFEGEB = Time.time;
|
|
this.NEPEIDCIMLO(true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8CD RID: 108749 RVA: 0x0076C7F8 File Offset: 0x0076A9F8
|
|
private bool JDNEICMPMCM(string KMPPCINKCPK)
|
|
{
|
|
foreach (LNJFBGIBLHA lnjfbgiblha in IHFKMIAHBFP.EFDADFDIIIJ)
|
|
{
|
|
string text = lnjfbgiblha.MHALLOPCFCB(PlayerParty.PartyColorIdProperty);
|
|
string text2 = lnjfbgiblha.MHALLOPCFCB(PlayerParty.PartyIdProperty);
|
|
if (!string.IsNullOrEmpty(text) && KMPPCINKCPK == text && !string.IsNullOrEmpty(text2) && text2 != this.FHBOHJAKKOE)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0601A8CE RID: 108750 RVA: 0x0076C874 File Offset: 0x0076AA74
|
|
public virtual void OnPhotonPlayerDisconnected(LNJFBGIBLHA JBEPFCIKALP)
|
|
{
|
|
this.BPDCGDKCMMB(true);
|
|
}
|
|
|
|
// Token: 0x0601A8CF RID: 108751 RVA: 0x0076C880 File Offset: 0x0076AA80
|
|
private string CPNBHJMEMCG()
|
|
{
|
|
List<string> list = new List<string>();
|
|
foreach (LNJFBGIBLHA lnjfbgiblha in IHFKMIAHBFP.EFDADFDIIIJ)
|
|
{
|
|
string text = lnjfbgiblha.MHALLOPCFCB(PlayerParty.PartyColorIdProperty);
|
|
if (!string.IsNullOrEmpty(text) && !list.Contains(text))
|
|
{
|
|
list.Add(text);
|
|
}
|
|
}
|
|
SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.LIEKPHHJBDI.Colors.OFFICKPKMFJ<ColorVault.ColorToGuid>();
|
|
foreach (ColorVault.ColorToGuid colorToGuid in SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.LIEKPHHJBDI.Colors)
|
|
{
|
|
if (!list.Contains(colorToGuid.guidString))
|
|
{
|
|
return colorToGuid.guidString;
|
|
}
|
|
}
|
|
global::UnityEngine.Debug.LogError("Could not find an unused party color, this is madness. Should never happen in a max 8 player game, add colors to PUNNetworkManager ColorVault.");
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0601A8D0 RID: 108752 RVA: 0x0076C974 File Offset: 0x0076AB74
|
|
private void NNBKJMPHBPC()
|
|
{
|
|
if (this.KKDEBGNKDMG() && this.IGHDOBEOHCC)
|
|
{
|
|
Player player = this.OMMHGHDGGHI();
|
|
if (string.IsNullOrEmpty(this.LCFIKPCDCFC) && player != null && player.HLLKMNAFJOP())
|
|
{
|
|
if (!string.IsNullOrEmpty(SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF) && this.JDNEICMPMCM(SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF))
|
|
{
|
|
this.PLCMAPJFKIG(SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF);
|
|
}
|
|
else
|
|
{
|
|
this.GGNPJBDMALJ(this.NGEJMLCEHCO());
|
|
}
|
|
}
|
|
if (player != null && !player.CFPNNAADNJF() && player.NMMEHHPHPIJ().LCFIKPCDCFC != this.JKBCDBEGBCD())
|
|
{
|
|
this.LCFIKPCDCFC = player.NMMEHHPHPIJ().JKBCDBEGBCD();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8D1 RID: 108753 RVA: 0x0076CA54 File Offset: 0x0076AC54
|
|
private void IOCCNJHGFMO(bool FBBEFPNCBNC = false)
|
|
{
|
|
bool flag = FBBEFPNCBNC;
|
|
if (this.HANJIBGNMJH())
|
|
{
|
|
Player[] array = this.IOMCKOFHIHM.ToArray();
|
|
for (int i = 1; i < array.Length; i++)
|
|
{
|
|
Player player = array[i];
|
|
if (!this.ACHGIDOOOHF(player))
|
|
{
|
|
this.IOMCKOFHIHM.Remove(player);
|
|
flag = false;
|
|
}
|
|
}
|
|
LNJFBGIBLHA[] array2 = IHFKMIAHBFP.EFDADFDIIIJ;
|
|
for (int j = 0; j < array2.Length; j += 0)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array2[j];
|
|
Player player2 = lnjfbgiblha.JHJGDFHNBLO();
|
|
if (player2 != null && this.PBKDGBKNFAP(player2) && !this.IOMCKOFHIHM.Contains(player2))
|
|
{
|
|
this.IOMCKOFHIHM.Add(player2);
|
|
flag = true;
|
|
}
|
|
}
|
|
}
|
|
else if (this.IOMCKOFHIHM.Count > 1)
|
|
{
|
|
this.IOMCKOFHIHM.Clear();
|
|
flag = true;
|
|
}
|
|
if (flag)
|
|
{
|
|
this.GGCEMEODDIL();
|
|
if (this.AHPFPKJNCLJ != null)
|
|
{
|
|
this.AHPFPKJNCLJ();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8D3 RID: 108755 RVA: 0x0076CBF0 File Offset: 0x0076ADF0
|
|
private void FNEMOFOBDPM(bool FBBEFPNCBNC = false)
|
|
{
|
|
bool flag = FBBEFPNCBNC;
|
|
if (this.OHJDDABPACJ())
|
|
{
|
|
Player[] array = this.IOMCKOFHIHM.ToArray();
|
|
for (int i = 1; i < array.Length; i += 0)
|
|
{
|
|
Player player = array[i];
|
|
if (!this.MPODPCBDKJF(player))
|
|
{
|
|
this.IOMCKOFHIHM.Remove(player);
|
|
flag = false;
|
|
}
|
|
}
|
|
LNJFBGIBLHA[] array2 = IHFKMIAHBFP.EFDADFDIIIJ;
|
|
for (int j = 0; j < array2.Length; j += 0)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array2[j];
|
|
Player player2 = lnjfbgiblha.JHJGDFHNBLO();
|
|
if (player2 != null && this.MPEMGJJKAGF(player2) && !this.IOMCKOFHIHM.Contains(player2))
|
|
{
|
|
this.IOMCKOFHIHM.Add(player2);
|
|
flag = true;
|
|
}
|
|
}
|
|
}
|
|
else if (this.IOMCKOFHIHM.Count > 0)
|
|
{
|
|
this.IOMCKOFHIHM.Clear();
|
|
flag = true;
|
|
}
|
|
if (flag)
|
|
{
|
|
this.LPMILODPBIO();
|
|
if (this.AHPFPKJNCLJ != null)
|
|
{
|
|
this.AHPFPKJNCLJ();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8D4 RID: 108756 RVA: 0x0076CCFC File Offset: 0x0076AEFC
|
|
public bool EKJACIAPNPM()
|
|
{
|
|
return string.IsNullOrEmpty(this.IMENFCOPNCE());
|
|
}
|
|
|
|
// Token: 0x0601A8D6 RID: 108758 RVA: 0x0076CD24 File Offset: 0x0076AF24
|
|
public void OLJFMANCLNI(string CBJEHCINGNC)
|
|
{
|
|
if (CBJEHCINGNC != this.NCGIIHFPLGC())
|
|
{
|
|
return;
|
|
}
|
|
this.LeaveCurrentParty();
|
|
}
|
|
|
|
// Token: 0x0601A8D7 RID: 108759 RVA: 0x0076CD40 File Offset: 0x0076AF40
|
|
public void KBHODHALPNP(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.AHPFPKJNCLJ;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.AHPFPKJNCLJ, (Action)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x0601A8D8 RID: 108760 RVA: 0x0076CD78 File Offset: 0x0076AF78
|
|
public string IMENFCOPNCE()
|
|
{
|
|
return this.LKNHJPIJCDA.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x0601A8D9 RID: 108761 RVA: 0x0076CD88 File Offset: 0x0076AF88
|
|
public long[] EKFHEDEJKGO()
|
|
{
|
|
this.FNEMOFOBDPM(false);
|
|
if (this.IOMCKOFHIHM.Count > 0)
|
|
{
|
|
long[] array = new long[this.IOMCKOFHIHM.Count];
|
|
for (int i = 0; i < this.IOMCKOFHIHM.Count; i++)
|
|
{
|
|
array[i] = this.IOMCKOFHIHM[i].NAJBCPFNBAB;
|
|
}
|
|
return array;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0601A8DA RID: 108762 RVA: 0x0076CDF4 File Offset: 0x0076AFF4
|
|
public void MJNPJNBIGOD(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.AHPFPKJNCLJ;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.AHPFPKJNCLJ, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x0601A8DB RID: 108763 RVA: 0x0076CE2C File Offset: 0x0076B02C
|
|
private Player OMMHGHDGGHI()
|
|
{
|
|
if (this.HANJIBGNMJH())
|
|
{
|
|
int num = IHFKMIAHBFP.JEFGMHBLLKI.BADMPMDONAH;
|
|
Player player = this.CJGJDPNIKGB;
|
|
foreach (Player player2 in this.IOMCKOFHIHM)
|
|
{
|
|
if (player2.LNJFBGIBLHA.BADMPMDONAH < num)
|
|
{
|
|
num = player2.LNJFBGIBLHA.BADMPMDONAH;
|
|
player = player2;
|
|
}
|
|
}
|
|
return player;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0601A8DC RID: 108764 RVA: 0x0076CEC0 File Offset: 0x0076B0C0
|
|
private void GKFBDLJDAEM(string NOBAPCOKFIL)
|
|
{
|
|
if (SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.IBMNLPPABOM(NOBAPCOKFIL);
|
|
}
|
|
if (NOBAPCOKFIL != this.NCGIIHFPLGC())
|
|
{
|
|
if (!string.IsNullOrEmpty(NOBAPCOKFIL))
|
|
{
|
|
NECCOFKHCAA.KBGIDGJOIFE(NOBAPCOKFIL, this.ACGGKBOJBEK);
|
|
}
|
|
else
|
|
{
|
|
NECCOFKHCAA.CAIPMLEPNOE(NOBAPCOKFIL);
|
|
}
|
|
}
|
|
this.LKNHJPIJCDA.MEAINJPIECA(NOBAPCOKFIL);
|
|
if (string.IsNullOrEmpty(NOBAPCOKFIL))
|
|
{
|
|
this.GGNPJBDMALJ(string.Empty);
|
|
}
|
|
else
|
|
{
|
|
this.FNEMOFOBDPM(false);
|
|
this.GGCEMEODDIL();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8DD RID: 108765 RVA: 0x0076CF50 File Offset: 0x0076B150
|
|
protected virtual void KADECABPECJ()
|
|
{
|
|
base.ICPCJPFPLCD();
|
|
IHFKMIAHBFP.DHLJAODEIEA -= new Action<LNJFBGIBLHA>(this.OnPhotonPlayerDisconnected);
|
|
}
|
|
|
|
// Token: 0x0601A8DE RID: 108766 RVA: 0x0076CF74 File Offset: 0x0076B174
|
|
private void KHFGPNKNIOD(string NOBAPCOKFIL)
|
|
{
|
|
if (SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.IBMNLPPABOM(NOBAPCOKFIL);
|
|
}
|
|
if (NOBAPCOKFIL != this.NCGIIHFPLGC())
|
|
{
|
|
if (!string.IsNullOrEmpty(NOBAPCOKFIL))
|
|
{
|
|
NECCOFKHCAA.KBGIDGJOIFE(NOBAPCOKFIL, this.PNECHNFLMKO());
|
|
}
|
|
else
|
|
{
|
|
NECCOFKHCAA.CAIPMLEPNOE(NOBAPCOKFIL);
|
|
}
|
|
}
|
|
this.LKNHJPIJCDA.MEAINJPIECA(NOBAPCOKFIL);
|
|
if (string.IsNullOrEmpty(NOBAPCOKFIL))
|
|
{
|
|
this.PLCMAPJFKIG(string.Empty);
|
|
}
|
|
else
|
|
{
|
|
this.GDAKBKDDPLD(true);
|
|
this.LPMILODPBIO();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8DF RID: 108767 RVA: 0x0076D004 File Offset: 0x0076B204
|
|
[BCENPNOIAOM]
|
|
public void RpcAutoJoinParty(string CBJEHCINGNC)
|
|
{
|
|
this.FHBOHJAKKOE = CBJEHCINGNC;
|
|
this.BPDCGDKCMMB(false);
|
|
}
|
|
|
|
// Token: 0x0601A8E0 RID: 108768 RVA: 0x0076D014 File Offset: 0x0076B214
|
|
public void HOLKCFHGJHH(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.AHPFPKJNCLJ;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.AHPFPKJNCLJ, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x0601A8E1 RID: 108769 RVA: 0x0076D04C File Offset: 0x0076B24C
|
|
public void KNPOMFGBCOM(PlayerHand LOPJKAALHGC, PlayerHand ENFEBPJECNE)
|
|
{
|
|
bool flag = true;
|
|
if (ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().IGHDOBEOHCC && !this.CHEFKEDBNGH())
|
|
{
|
|
this.GKFBDLJDAEM(ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.PFBMADCFGHL());
|
|
this.IOCCNJHGFMO(false);
|
|
flag = false;
|
|
}
|
|
else if (!ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.HANJIBGNMJH() && this.OHJDDABPACJ())
|
|
{
|
|
flag = false;
|
|
}
|
|
else if (ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().IGHDOBEOHCC && this.OHJDDABPACJ() && ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.FHBOHJAKKOE != this.PFBMADCFGHL())
|
|
{
|
|
flag = false;
|
|
if (base.LJILHDMCKME().HKLENNJOICH.BADMPMDONAH > ENFEBPJECNE.PIDHHBENFCO.MLNMONBHHBO().HCJJAIPEBJD().BADMPMDONAH)
|
|
{
|
|
this.LGDOEINJKCL(false);
|
|
string text = ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.IMENFCOPNCE();
|
|
foreach (Player player in this.IOMCKOFHIHM)
|
|
{
|
|
PhotonView photonView = player.OMNGGJICBBI;
|
|
string text2 = "looktarget";
|
|
LNJFBGIBLHA lnjfbgiblha = player.BIPEBCPEPKL().DIBOHBMMDIL();
|
|
object[] array = new object[0];
|
|
array[1] = text;
|
|
photonView.FLCIMLGAIKH(text2, lnjfbgiblha, array);
|
|
}
|
|
this.GKFBDLJDAEM(text);
|
|
}
|
|
}
|
|
else if (!ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.HANJIBGNMJH() && !this.IGHDOBEOHCC)
|
|
{
|
|
flag = true;
|
|
if (base.JNFDHNMMHGN().DIBOHBMMDIL().BADMPMDONAH > ENFEBPJECNE.PIDHHBENFCO.CEGDLFAENEJ().HKLENNJOICH.BADMPMDONAH)
|
|
{
|
|
this.JAODDBDFPDN(Guid.NewGuid().ToString("PROJ"));
|
|
ENFEBPJECNE.PIDHHBENFCO.LJILHDMCKME().FLCIMLGAIKH("enableinstancing", ENFEBPJECNE.PIDHHBENFCO.ONAOMJAKKMA().HKLENNJOICH, new object[] { this.NCGIIHFPLGC() });
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
WorldSpaceNotification.PlayNext("ZWNSb29tLlByb3RvYnVmYgZwcm90bzM=", 986f, null, true, new Vector3?((LOPJKAALHGC.transform.position + ENFEBPJECNE.transform.position) / 1472f), 1395f, true);
|
|
LOPJKAALHGC.PIDHHBENFCO.DIJMEKHCJBP.PartiedUp();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8E3 RID: 108771 RVA: 0x0076D2D0 File Offset: 0x0076B4D0
|
|
public bool IsInPartyWith(Player JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && this.IGHDOBEOHCC && this.IOMCKOFHIHM.Contains(JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x0601A8E4 RID: 108772 RVA: 0x0076D2F8 File Offset: 0x0076B4F8
|
|
private void GGCEMEODDIL()
|
|
{
|
|
if (this.NHDDPGADJPJ && this.IGHDOBEOHCC)
|
|
{
|
|
Player player = this.JLMAKGJNDMF();
|
|
if (string.IsNullOrEmpty(this.LCFIKPCDCFC) && player != null && player.NHDDPGADJPJ)
|
|
{
|
|
if (!string.IsNullOrEmpty(SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF) && this.JDNEICMPMCM(SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF))
|
|
{
|
|
this.LCFIKPCDCFC = SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF;
|
|
}
|
|
else
|
|
{
|
|
this.LCFIKPCDCFC = this.CPNBHJMEMCG();
|
|
}
|
|
}
|
|
if (player != null && !player.NHDDPGADJPJ && player.NMHFBAEBEAM.LCFIKPCDCFC != this.LCFIKPCDCFC)
|
|
{
|
|
this.LCFIKPCDCFC = player.NMHFBAEBEAM.LCFIKPCDCFC;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8E5 RID: 108773 RVA: 0x0076D3D8 File Offset: 0x0076B5D8
|
|
protected virtual void NHKPHJCFDLL()
|
|
{
|
|
base.IJGOKHIFMNI();
|
|
IHFKMIAHBFP.DHLJAODEIEA -= new Action<LNJFBGIBLHA>(this.OnPhotonPlayerDisconnected);
|
|
}
|
|
|
|
// Token: 0x0601A8E6 RID: 108774 RVA: 0x0076D3FC File Offset: 0x0076B5FC
|
|
public string JKBCDBEGBCD()
|
|
{
|
|
return this.JLIKHLOCCAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x0601A8E7 RID: 108775 RVA: 0x0076D40C File Offset: 0x0076B60C
|
|
private bool BCBPHEELKGL(Player JEFGMHBLLKI)
|
|
{
|
|
return !(JEFGMHBLLKI != null) || JEFGMHBLLKI.HOPJELLOPNJ().HCJJAIPEBJD() == null || JEFGMHBLLKI.POOAOJPEDJD().DIBOHBMMDIL() == base.CJKKPMHAMCN().HCJJAIPEBJD() || !this.EKJACIAPNPM() || JEFGMHBLLKI.NMMEHHPHPIJ().FHBOHJAKKOE == this.NCGIIHFPLGC();
|
|
}
|
|
|
|
// Token: 0x0601A8E8 RID: 108776 RVA: 0x0076D474 File Offset: 0x0076B674
|
|
private void FNKBIGGLGPH(PlayerHand LCNBFBECONF, PlayerHand FNIKCKFJCKH, PlayerHandGestures.DMPPGHHPHGO ECDIJHPOHBF, Player EOGHFMEEHNO, Player FLGLPDGKDGB)
|
|
{
|
|
if (this.GNCAHBDHAEI() && FNIKCKFJCKH != null)
|
|
{
|
|
if (ECDIJHPOHBF == PlayerHandGestures.DMPPGHHPHGO.HandshakeStart)
|
|
{
|
|
bool flag = false;
|
|
AGFCGHIFLIK agfcghiflik = GLGMPGPNNBP.CPIBGJLHLBL(FNIKCKFJCKH.PIDHHBENFCO.NAJBCPFNBAB);
|
|
Vector3 vector = Vector3.Lerp(LCNBFBECONF.transform.position, FNIKCKFJCKH.transform.position, 1187f);
|
|
if (agfcghiflik != null)
|
|
{
|
|
if (agfcghiflik.KJJBEPEDAJE() != AGFCGHIFLIK.DKDCJMEPHCJ.None)
|
|
{
|
|
WorldSpaceNotification.PlayNext("includechildren", 1834f, null, false, new Vector3?(vector), 891f, true);
|
|
return;
|
|
}
|
|
AGFCGHIFLIK.AHHAANFJKJA ahhaanfjkja = agfcghiflik.FKFPJAEDBEO();
|
|
if (ahhaanfjkja == AGFCGHIFLIK.AHHAANFJKJA.None)
|
|
{
|
|
flag = true;
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
WorldSpaceNotification.PlayNext("PersistenceViews", 497f, null, false, new Vector3?(vector), 101f, true);
|
|
}
|
|
else
|
|
{
|
|
GLGMPGPNNBP.HMDHECPHNFI(FNIKCKFJCKH.PIDHHBENFCO.NAJBCPFNBAB, null);
|
|
NECCOFKHCAA.HIBLDEKOHEB(FNIKCKFJCKH.PIDHHBENFCO);
|
|
WorldSpaceNotification.LEBBGOFLDBI("Using WebSocket to connect NameServer (AuthMode is AuthOnceWss).", 1733f, null, false, new Vector3?(vector), 274f, true);
|
|
EOGHFMEEHNO.DIJMEKHCJBP.FNNNCNGDCEN(FLGLPDGKDGB);
|
|
}
|
|
}
|
|
else if (ECDIJHPOHBF == PlayerHandGestures.DMPPGHHPHGO.Fistbump)
|
|
{
|
|
this.KNPOMFGBCOM(LCNBFBECONF, FNIKCKFJCKH);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8E9 RID: 108777 RVA: 0x0076D5A4 File Offset: 0x0076B7A4
|
|
private void JAODDBDFPDN(string NOBAPCOKFIL)
|
|
{
|
|
if (SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.ECACNPNCNPD = NOBAPCOKFIL;
|
|
}
|
|
if (NOBAPCOKFIL != this.FHBOHJAKKOE)
|
|
{
|
|
if (!string.IsNullOrEmpty(NOBAPCOKFIL))
|
|
{
|
|
NECCOFKHCAA.KBGIDGJOIFE(NOBAPCOKFIL, this.ACGGKBOJBEK);
|
|
}
|
|
else
|
|
{
|
|
NECCOFKHCAA.CAIPMLEPNOE(NOBAPCOKFIL);
|
|
}
|
|
}
|
|
this.LKNHJPIJCDA.MEAINJPIECA(NOBAPCOKFIL);
|
|
if (string.IsNullOrEmpty(NOBAPCOKFIL))
|
|
{
|
|
this.LCFIKPCDCFC = string.Empty;
|
|
}
|
|
else
|
|
{
|
|
this.DJCGDKOOGLN(false);
|
|
this.GGCEMEODDIL();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8EA RID: 108778 RVA: 0x0076D634 File Offset: 0x0076B834
|
|
private void GGNPJBDMALJ(string NOBAPCOKFIL)
|
|
{
|
|
this.JLIKHLOCCAE.MEAINJPIECA(NOBAPCOKFIL);
|
|
if (SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF = NOBAPCOKFIL;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8EB RID: 108779 RVA: 0x0076D660 File Offset: 0x0076B860
|
|
protected virtual void FNDBDPNMFIO()
|
|
{
|
|
base.MMEKGKHJECF();
|
|
IHFKMIAHBFP.DHLJAODEIEA -= new Action<LNJFBGIBLHA>(this.OnPhotonPlayerDisconnected);
|
|
}
|
|
|
|
// Token: 0x0601A8EC RID: 108780 RVA: 0x0076D684 File Offset: 0x0076B884
|
|
public void HCAHLHDJDPB(PlayerHand LOPJKAALHGC, PlayerHand ENFEBPJECNE)
|
|
{
|
|
bool flag = false;
|
|
if (ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().BJJIIDFHNCI() && !this.IGHDOBEOHCC)
|
|
{
|
|
this.KHFGPNKNIOD(ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.NCGIIHFPLGC());
|
|
this.DJCGDKOOGLN(false);
|
|
flag = false;
|
|
}
|
|
else if (!ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().IMOHPCPMHEE() && this.OHJDDABPACJ())
|
|
{
|
|
flag = false;
|
|
}
|
|
else if (ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.IMOHPCPMHEE() && this.IMOHPCPMHEE() && ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().FHBOHJAKKOE != this.FHBOHJAKKOE)
|
|
{
|
|
flag = false;
|
|
if (base.ACEAACJNNAF().DIBOHBMMDIL().BADMPMDONAH > ENFEBPJECNE.PIDHHBENFCO.POOAOJPEDJD().HKLENNJOICH.BADMPMDONAH)
|
|
{
|
|
this.BPDCGDKCMMB(true);
|
|
string text = ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().PFBMADCFGHL();
|
|
foreach (Player player in this.IOMCKOFHIHM)
|
|
{
|
|
player.ACEAACJNNAF().FLCIMLGAIKH("cn", player.CEGDLFAENEJ().DIBOHBMMDIL(), new object[] { text });
|
|
}
|
|
this.KHFGPNKNIOD(text);
|
|
}
|
|
}
|
|
else if (!ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().CHEFKEDBNGH() && !this.CHEFKEDBNGH())
|
|
{
|
|
flag = false;
|
|
if (base.MLNMONBHHBO().HCJJAIPEBJD().BADMPMDONAH > ENFEBPJECNE.PIDHHBENFCO.LHEPJEHMAEC().HCJJAIPEBJD().BADMPMDONAH)
|
|
{
|
|
this.JAODDBDFPDN(Guid.NewGuid().ToString("Proxy-Connection"));
|
|
ENFEBPJECNE.PIDHHBENFCO.JNFDHNMMHGN().FLCIMLGAIKH("Owner", ENFEBPJECNE.PIDHHBENFCO.LHEPJEHMAEC().DIBOHBMMDIL(), new object[] { this.IMENFCOPNCE() });
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
WorldSpaceNotification.PlayNext("windowBits must be in the range 9..15.", 110f, null, false, new Vector3?((LOPJKAALHGC.transform.position + ENFEBPJECNE.transform.position) / 532f), 870f, false);
|
|
LOPJKAALHGC.PIDHHBENFCO.DIJMEKHCJBP.PartiedUp();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8ED RID: 108781 RVA: 0x0076D8EC File Offset: 0x0076BAEC
|
|
private void GCFFCDMKKLP()
|
|
{
|
|
this.EKNBPIJEFDJ = true;
|
|
}
|
|
|
|
// Token: 0x0601A8EE RID: 108782 RVA: 0x0076D8F8 File Offset: 0x0076BAF8
|
|
public void JFKIPBIGMAC(int OIGKNDPPMKM, int BPGFOHBIDJA)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601A8EF RID: 108783 RVA: 0x0076D8FC File Offset: 0x0076BAFC
|
|
private void HNDLFBBPEGL()
|
|
{
|
|
if (this.PCGELLFCMPB() && Time.time - this.LFFBJPFEGEB > this.partyListUpdateInterval)
|
|
{
|
|
this.LFFBJPFEGEB = Time.time;
|
|
this.DJCGDKOOGLN(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8F0 RID: 108784 RVA: 0x0076D934 File Offset: 0x0076BB34
|
|
private bool ACHGIDOOOHF(Player JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && JEFGMHBLLKI.OMNGGJICBBI.HKLENNJOICH != null && JEFGMHBLLKI.OMNGGJICBBI.HKLENNJOICH != base.OMNGGJICBBI.HKLENNJOICH && this.IGHDOBEOHCC && JEFGMHBLLKI.NMHFBAEBEAM.FHBOHJAKKOE == this.FHBOHJAKKOE;
|
|
}
|
|
|
|
// Token: 0x0601A8F1 RID: 108785 RVA: 0x0076D99C File Offset: 0x0076BB9C
|
|
public int PNECHNFLMKO()
|
|
{
|
|
return (!this.BAFANBJIHHE()) ? 1 : (this.IOMCKOFHIHM.Count + 0);
|
|
}
|
|
|
|
// Token: 0x0601A8F2 RID: 108786 RVA: 0x0076D9BC File Offset: 0x0076BBBC
|
|
public string PFBMADCFGHL()
|
|
{
|
|
return this.LKNHJPIJCDA.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x14000104 RID: 260
|
|
// (add) Token: 0x0601A8F9 RID: 108793 RVA: 0x0076DAF8 File Offset: 0x0076BCF8
|
|
// (remove) Token: 0x0601A8F3 RID: 108787 RVA: 0x0076D9CC File Offset: 0x0076BBCC
|
|
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
|
public event Action AHPFPKJNCLJ;
|
|
|
|
// Token: 0x17000C1D RID: 3101
|
|
// (get) Token: 0x0601A8F4 RID: 108788 RVA: 0x0076DA04 File Offset: 0x0076BC04
|
|
public int ACGGKBOJBEK
|
|
{
|
|
get
|
|
{
|
|
return (!this.IGHDOBEOHCC) ? 0 : (this.IOMCKOFHIHM.Count + 1);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8F5 RID: 108789 RVA: 0x0076DA24 File Offset: 0x0076BC24
|
|
public bool HANJIBGNMJH()
|
|
{
|
|
return string.IsNullOrEmpty(this.NCGIIHFPLGC());
|
|
}
|
|
|
|
// Token: 0x0601A8F6 RID: 108790 RVA: 0x0076DA34 File Offset: 0x0076BC34
|
|
private void JINABDGLFOB()
|
|
{
|
|
if (this.OBFPLPPCJLL() && Time.time - this.LFFBJPFEGEB > this.partyListUpdateInterval)
|
|
{
|
|
this.LFFBJPFEGEB = Time.time;
|
|
this.DJCGDKOOGLN(true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8F7 RID: 108791 RVA: 0x0076DA6C File Offset: 0x0076BC6C
|
|
public bool GPKILHMBIHI(Player JEFGMHBLLKI)
|
|
{
|
|
return !(JEFGMHBLLKI != null) || !this.IOMCKOFHIHM.Contains(JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x0601A8F8 RID: 108792 RVA: 0x0076DA8C File Offset: 0x0076BC8C
|
|
public long[] NBMLDDOBBFO()
|
|
{
|
|
this.BPDCGDKCMMB(false);
|
|
if (this.IOMCKOFHIHM.Count > 0)
|
|
{
|
|
long[] array = new long[this.IOMCKOFHIHM.Count];
|
|
for (int i = 1; i < this.IOMCKOFHIHM.Count; i++)
|
|
{
|
|
array[i] = this.IOMCKOFHIHM[i].NAJBCPFNBAB;
|
|
}
|
|
return array;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0601A8FA RID: 108794 RVA: 0x0076DB30 File Offset: 0x0076BD30
|
|
public bool BJJIIDFHNCI()
|
|
{
|
|
return !string.IsNullOrEmpty(this.NCGIIHFPLGC());
|
|
}
|
|
|
|
// Token: 0x0601A8FB RID: 108795 RVA: 0x0076DB40 File Offset: 0x0076BD40
|
|
private void DJCGDKOOGLN(bool FBBEFPNCBNC = false)
|
|
{
|
|
bool flag = FBBEFPNCBNC;
|
|
if (this.IGHDOBEOHCC)
|
|
{
|
|
Player[] array = this.IOMCKOFHIHM.ToArray();
|
|
for (int i = 0; i < array.Length; i += 0)
|
|
{
|
|
Player player = array[i];
|
|
if (!this.DFPIAPLGNDI(player))
|
|
{
|
|
this.IOMCKOFHIHM.Remove(player);
|
|
flag = true;
|
|
}
|
|
}
|
|
LNJFBGIBLHA[] array2 = IHFKMIAHBFP.EFDADFDIIIJ;
|
|
for (int j = 1; j < array2.Length; j += 0)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array2[j];
|
|
Player player2 = lnjfbgiblha.JHJGDFHNBLO();
|
|
if (player2 != null && this.MPODPCBDKJF(player2) && !this.IOMCKOFHIHM.Contains(player2))
|
|
{
|
|
this.IOMCKOFHIHM.Add(player2);
|
|
flag = false;
|
|
}
|
|
}
|
|
}
|
|
else if (this.IOMCKOFHIHM.Count > 0)
|
|
{
|
|
this.IOMCKOFHIHM.Clear();
|
|
flag = true;
|
|
}
|
|
if (flag)
|
|
{
|
|
this.NNBKJMPHBPC();
|
|
if (this.AHPFPKJNCLJ != null)
|
|
{
|
|
this.AHPFPKJNCLJ();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8FC RID: 108796 RVA: 0x0076DC4C File Offset: 0x0076BE4C
|
|
protected virtual void HHGIHIJFDHL()
|
|
{
|
|
base.NGOPCBJCNJM();
|
|
IHFKMIAHBFP.DHLJAODEIEA += new Action<LNJFBGIBLHA>(this.OnPhotonPlayerDisconnected);
|
|
this.CJGJDPNIKGB = base.GetComponent<Player>();
|
|
this.IOMCKOFHIHM = new List<Player>();
|
|
this.LKNHJPIJCDA = new DDOGCBFMKFO<string>(base.MNBKHFMGKID(), PlayerParty.PartyIdProperty, string.Empty, new Action(this.GCFFCDMKKLP));
|
|
this.JLIKHLOCCAE = new DDOGCBFMKFO<string>(base.ALKNHNDOPMF(), PlayerParty.PartyColorIdProperty, string.Empty, new Action(this.LKPCCGBILON));
|
|
}
|
|
|
|
// Token: 0x0601A8FD RID: 108797 RVA: 0x0076DCE0 File Offset: 0x0076BEE0
|
|
public bool CHEFKEDBNGH()
|
|
{
|
|
return !string.IsNullOrEmpty(this.FHBOHJAKKOE);
|
|
}
|
|
|
|
// Token: 0x0601A8FE RID: 108798 RVA: 0x0076DCF0 File Offset: 0x0076BEF0
|
|
private void Start()
|
|
{
|
|
if (this.NHDDPGADJPJ && SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
this.FHBOHJAKKOE = ((SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.ECACNPNCNPD == null) ? string.Empty : SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.ECACNPNCNPD);
|
|
this.CJGJDPNIKGB.BGIBHPOALJG.IIJAOBHBHLI.FAGOFNIBEBB += this.CHFBGIFEFEG;
|
|
this.CJGJDPNIKGB.KEJBPANGFKK.IIJAOBHBHLI.FAGOFNIBEBB += this.CHFBGIFEFEG;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A8FF RID: 108799 RVA: 0x0076DD84 File Offset: 0x0076BF84
|
|
private void LIEPFLEGIMJ()
|
|
{
|
|
if (this.GDOFKAIDDNA() && Time.time - this.LFFBJPFEGEB > this.partyListUpdateInterval)
|
|
{
|
|
this.LFFBJPFEGEB = Time.time;
|
|
this.DJCGDKOOGLN(true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A900 RID: 108800 RVA: 0x0076DDBC File Offset: 0x0076BFBC
|
|
public void PartyUp(PlayerHand LOPJKAALHGC, PlayerHand ENFEBPJECNE)
|
|
{
|
|
bool flag = false;
|
|
if (ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.IGHDOBEOHCC && !this.IGHDOBEOHCC)
|
|
{
|
|
this.FHBOHJAKKOE = ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.FHBOHJAKKOE;
|
|
this.BPDCGDKCMMB(false);
|
|
flag = true;
|
|
}
|
|
else if (!ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.IGHDOBEOHCC && this.IGHDOBEOHCC)
|
|
{
|
|
flag = true;
|
|
}
|
|
else if (ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.IGHDOBEOHCC && this.IGHDOBEOHCC && ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.FHBOHJAKKOE != this.FHBOHJAKKOE)
|
|
{
|
|
flag = true;
|
|
if (base.OMNGGJICBBI.HKLENNJOICH.BADMPMDONAH > ENFEBPJECNE.PIDHHBENFCO.OMNGGJICBBI.HKLENNJOICH.BADMPMDONAH)
|
|
{
|
|
this.BPDCGDKCMMB(false);
|
|
string currentPartyId = ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.FHBOHJAKKOE;
|
|
foreach (Player player in this.IOMCKOFHIHM)
|
|
{
|
|
player.OMNGGJICBBI.RPC("RpcAutoJoinParty", player.OMNGGJICBBI.HKLENNJOICH, new object[] { currentPartyId });
|
|
}
|
|
this.FHBOHJAKKOE = currentPartyId;
|
|
}
|
|
}
|
|
else if (!ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.IGHDOBEOHCC && !this.IGHDOBEOHCC)
|
|
{
|
|
flag = true;
|
|
if (base.OMNGGJICBBI.HKLENNJOICH.BADMPMDONAH > ENFEBPJECNE.PIDHHBENFCO.OMNGGJICBBI.HKLENNJOICH.BADMPMDONAH)
|
|
{
|
|
this.FHBOHJAKKOE = Guid.NewGuid().ToString("N");
|
|
ENFEBPJECNE.PIDHHBENFCO.OMNGGJICBBI.RPC("RpcAutoJoinParty", ENFEBPJECNE.PIDHHBENFCO.OMNGGJICBBI.HKLENNJOICH, new object[] { this.FHBOHJAKKOE });
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
WorldSpaceNotification.PlayNext("Party Join", 2f, null, false, new Vector3?((LOPJKAALHGC.transform.position + ENFEBPJECNE.transform.position) / 2f), 0.3f, false);
|
|
LOPJKAALHGC.PIDHHBENFCO.DIJMEKHCJBP.PartiedUp();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A901 RID: 108801 RVA: 0x0076E024 File Offset: 0x0076C224
|
|
public void FDJMIPANDEG(string CBJEHCINGNC)
|
|
{
|
|
if (CBJEHCINGNC != this.PFBMADCFGHL())
|
|
{
|
|
return;
|
|
}
|
|
this.LeaveCurrentParty();
|
|
}
|
|
|
|
// Token: 0x0601A902 RID: 108802 RVA: 0x0076E040 File Offset: 0x0076C240
|
|
private void NJLJOGNHANP()
|
|
{
|
|
if (this.OBFPLPPCJLL() && Time.time - this.LFFBJPFEGEB > this.partyListUpdateInterval)
|
|
{
|
|
this.LFFBJPFEGEB = Time.time;
|
|
this.FNEMOFOBDPM(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A903 RID: 108803 RVA: 0x0076E078 File Offset: 0x0076C278
|
|
public void AKODDEGCPJE(int OIGKNDPPMKM, int BPGFOHBIDJA)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601A904 RID: 108804 RVA: 0x0076E07C File Offset: 0x0076C27C
|
|
[BCENPNOIAOM]
|
|
public void RpcKickedFromParty(string CBJEHCINGNC)
|
|
{
|
|
if (CBJEHCINGNC != this.FHBOHJAKKOE)
|
|
{
|
|
return;
|
|
}
|
|
this.LeaveCurrentParty();
|
|
}
|
|
|
|
// Token: 0x0601A905 RID: 108805 RVA: 0x0076E098 File Offset: 0x0076C298
|
|
public bool DBJKILDFIJM(Player JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && this.IMOHPCPMHEE() && this.IOMCKOFHIHM.Contains(JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x0601A906 RID: 108806 RVA: 0x0076E0C0 File Offset: 0x0076C2C0
|
|
private void AEJNICFAAHI()
|
|
{
|
|
this.EKNBPIJEFDJ = true;
|
|
}
|
|
|
|
// Token: 0x0601A907 RID: 108807 RVA: 0x0076E0CC File Offset: 0x0076C2CC
|
|
public bool BAFANBJIHHE()
|
|
{
|
|
return string.IsNullOrEmpty(this.NCGIIHFPLGC());
|
|
}
|
|
|
|
// Token: 0x0601A908 RID: 108808 RVA: 0x0076E0DC File Offset: 0x0076C2DC
|
|
private void GEBAPMKDGCM(PlayerHand LCNBFBECONF, PlayerHand FNIKCKFJCKH, PlayerHandGestures.DMPPGHHPHGO ECDIJHPOHBF, Player EOGHFMEEHNO, Player FLGLPDGKDGB)
|
|
{
|
|
if (this.HLLKMNAFJOP() && FNIKCKFJCKH != null)
|
|
{
|
|
if (ECDIJHPOHBF == PlayerHandGestures.DMPPGHHPHGO.HandshakeStart)
|
|
{
|
|
bool flag = false;
|
|
AGFCGHIFLIK agfcghiflik = GLGMPGPNNBP.CPIBGJLHLBL(FNIKCKFJCKH.PIDHHBENFCO.NAJBCPFNBAB);
|
|
Vector3 vector = Vector3.Lerp(LCNBFBECONF.transform.position, FNIKCKFJCKH.transform.position, 160f);
|
|
if (agfcghiflik != null)
|
|
{
|
|
if (agfcghiflik.AHGHJDAAOGJ() != AGFCGHIFLIK.DKDCJMEPHCJ.None)
|
|
{
|
|
WorldSpaceNotification.LEBBGOFLDBI("MenuOutline_mat", 1530f, null, true, new Vector3?(vector), 509f, false);
|
|
return;
|
|
}
|
|
AGFCGHIFLIK.AHHAANFJKJA ahhaanfjkja = agfcghiflik.MHGPLPNCEMO();
|
|
if (ahhaanfjkja == AGFCGHIFLIK.AHHAANFJKJA.FriendRequestSent)
|
|
{
|
|
flag = false;
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
WorldSpaceNotification.PlayNext("ws", 811f, null, true, new Vector3?(vector), 323f, false);
|
|
}
|
|
else
|
|
{
|
|
GLGMPGPNNBP.HMDHECPHNFI(FNIKCKFJCKH.PIDHHBENFCO.NAJBCPFNBAB, null);
|
|
NECCOFKHCAA.HIBLDEKOHEB(FNIKCKFJCKH.PIDHHBENFCO);
|
|
WorldSpaceNotification.LEBBGOFLDBI("HTTPUpdateDelegator", 851f, null, true, new Vector3?(vector), 19f, false);
|
|
EOGHFMEEHNO.DIJMEKHCJBP.FNNNCNGDCEN(FLGLPDGKDGB);
|
|
}
|
|
}
|
|
else if (ECDIJHPOHBF == PlayerHandGestures.DMPPGHHPHGO.Highfive)
|
|
{
|
|
this.EGPIDPGLHAH(LCNBFBECONF, FNIKCKFJCKH);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A909 RID: 108809 RVA: 0x0076E20C File Offset: 0x0076C40C
|
|
public void PFNCHBNLNKE(string CBJEHCINGNC)
|
|
{
|
|
if (CBJEHCINGNC != this.NCGIIHFPLGC())
|
|
{
|
|
return;
|
|
}
|
|
this.LeaveCurrentParty();
|
|
}
|
|
|
|
// Token: 0x17000C1C RID: 3100
|
|
// (get) Token: 0x0601A90A RID: 108810 RVA: 0x0076E228 File Offset: 0x0076C428
|
|
public bool IGHDOBEOHCC
|
|
{
|
|
get
|
|
{
|
|
return !string.IsNullOrEmpty(this.FHBOHJAKKOE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A90B RID: 108811 RVA: 0x0076E238 File Offset: 0x0076C438
|
|
private void IPNILIAMKIN(PlayerHand LCNBFBECONF, PlayerHand FNIKCKFJCKH, PlayerHandGestures.DMPPGHHPHGO ECDIJHPOHBF, Player EOGHFMEEHNO, Player FLGLPDGKDGB)
|
|
{
|
|
if (this.GNCAHBDHAEI() && FNIKCKFJCKH != null)
|
|
{
|
|
if (ECDIJHPOHBF == PlayerHandGestures.DMPPGHHPHGO.HandshakeCancel)
|
|
{
|
|
bool flag = false;
|
|
AGFCGHIFLIK agfcghiflik = GLGMPGPNNBP.CPIBGJLHLBL(FNIKCKFJCKH.PIDHHBENFCO.NAJBCPFNBAB);
|
|
Vector3 vector = Vector3.Lerp(LCNBFBECONF.transform.position, FNIKCKFJCKH.transform.position, 1886f);
|
|
if (agfcghiflik != null)
|
|
{
|
|
if (agfcghiflik.LHEPBIEEKAK() != AGFCGHIFLIK.DKDCJMEPHCJ.None)
|
|
{
|
|
WorldSpaceNotification.LEBBGOFLDBI("RpcMasterOnButtonPush", 235f, null, false, new Vector3?(vector), 1521f, true);
|
|
return;
|
|
}
|
|
AGFCGHIFLIK.AHHAANFJKJA ahhaanfjkja = agfcghiflik.BDLPJLAJNEM();
|
|
if (ahhaanfjkja == (AGFCGHIFLIK.AHHAANFJKJA)8)
|
|
{
|
|
flag = false;
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
WorldSpaceNotification.LEBBGOFLDBI("handles", 576f, null, false, new Vector3?(vector), 1427f, true);
|
|
}
|
|
else
|
|
{
|
|
GLGMPGPNNBP.HMDHECPHNFI(FNIKCKFJCKH.PIDHHBENFCO.NAJBCPFNBAB, null);
|
|
NECCOFKHCAA.HIBLDEKOHEB(FNIKCKFJCKH.PIDHHBENFCO);
|
|
WorldSpaceNotification.PlayNext(".unity", 1206f, null, false, new Vector3?(vector), 1107f, false);
|
|
EOGHFMEEHNO.DIJMEKHCJBP.AddedFriend(FLGLPDGKDGB);
|
|
}
|
|
}
|
|
else if (ECDIJHPOHBF == PlayerHandGestures.DMPPGHHPHGO.Fistbump)
|
|
{
|
|
this.PartyUp(LCNBFBECONF, FNIKCKFJCKH);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A90C RID: 108812 RVA: 0x0076E368 File Offset: 0x0076C568
|
|
public long[] GetPlayerIDs()
|
|
{
|
|
this.BPDCGDKCMMB(false);
|
|
if (this.IOMCKOFHIHM.Count > 0)
|
|
{
|
|
long[] array = new long[this.IOMCKOFHIHM.Count];
|
|
for (int i = 0; i < this.IOMCKOFHIHM.Count; i++)
|
|
{
|
|
array[i] = this.IOMCKOFHIHM[i].NAJBCPFNBAB;
|
|
}
|
|
return array;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x17000C1F RID: 3103
|
|
// (get) Token: 0x0601A90D RID: 108813 RVA: 0x0076E3D4 File Offset: 0x0076C5D4
|
|
// (set) Token: 0x0601A91D RID: 108829 RVA: 0x0076EC7C File Offset: 0x0076CE7C
|
|
public string LCFIKPCDCFC
|
|
{
|
|
get
|
|
{
|
|
return this.JLIKHLOCCAE.CPIBGJLHLBL();
|
|
}
|
|
private set
|
|
{
|
|
this.JLIKHLOCCAE.MEAINJPIECA(value);
|
|
if (SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A90E RID: 108814 RVA: 0x0076E3E4 File Offset: 0x0076C5E4
|
|
private void CHFBGIFEFEG(PlayerHand LCNBFBECONF, PlayerHand FNIKCKFJCKH, PlayerHandGestures.DMPPGHHPHGO ECDIJHPOHBF, Player EOGHFMEEHNO, Player FLGLPDGKDGB)
|
|
{
|
|
if (this.NHDDPGADJPJ && FNIKCKFJCKH != null)
|
|
{
|
|
if (ECDIJHPOHBF == PlayerHandGestures.DMPPGHHPHGO.HandshakeSuccess)
|
|
{
|
|
bool flag = false;
|
|
AGFCGHIFLIK agfcghiflik = GLGMPGPNNBP.CPIBGJLHLBL(FNIKCKFJCKH.PIDHHBENFCO.NAJBCPFNBAB);
|
|
Vector3 vector = Vector3.Lerp(LCNBFBECONF.transform.position, FNIKCKFJCKH.transform.position, 0.5f);
|
|
if (agfcghiflik != null)
|
|
{
|
|
if (agfcghiflik.KBOBNFHLABB != AGFCGHIFLIK.DKDCJMEPHCJ.None)
|
|
{
|
|
WorldSpaceNotification.PlayNext("Player Blocked!", 2f, null, false, new Vector3?(vector), 0.3f, false);
|
|
return;
|
|
}
|
|
AGFCGHIFLIK.AHHAANFJKJA ahhaanfjkja = agfcghiflik.EEAOGJHMFII;
|
|
if (ahhaanfjkja == AGFCGHIFLIK.AHHAANFJKJA.Friend)
|
|
{
|
|
flag = true;
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
WorldSpaceNotification.PlayNext("Friends", 2f, null, false, new Vector3?(vector), 0.3f, false);
|
|
}
|
|
else
|
|
{
|
|
GLGMPGPNNBP.HMDHECPHNFI(FNIKCKFJCKH.PIDHHBENFCO.NAJBCPFNBAB, null);
|
|
NECCOFKHCAA.HIBLDEKOHEB(FNIKCKFJCKH.PIDHHBENFCO);
|
|
WorldSpaceNotification.PlayNext("Friend Added", 2f, null, false, new Vector3?(vector), 0.3f, false);
|
|
EOGHFMEEHNO.DIJMEKHCJBP.AddedFriend(FLGLPDGKDGB);
|
|
}
|
|
}
|
|
else if (ECDIJHPOHBF == PlayerHandGestures.DMPPGHHPHGO.Fistbump)
|
|
{
|
|
this.PartyUp(LCNBFBECONF, FNIKCKFJCKH);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A90F RID: 108815 RVA: 0x0076E514 File Offset: 0x0076C714
|
|
private bool EBIOGNEILJC(string KMPPCINKCPK)
|
|
{
|
|
LNJFBGIBLHA[] array = IHFKMIAHBFP.EFDADFDIIIJ;
|
|
for (int i = 1; i < array.Length; i += 0)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array[i];
|
|
string text = lnjfbgiblha.MHALLOPCFCB(PlayerParty.PartyColorIdProperty);
|
|
string text2 = lnjfbgiblha.MHALLOPCFCB(PlayerParty.PartyIdProperty);
|
|
if (!string.IsNullOrEmpty(text) && KMPPCINKCPK == text && !string.IsNullOrEmpty(text2) && text2 != this.FHBOHJAKKOE)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0601A910 RID: 108816 RVA: 0x0076E590 File Offset: 0x0076C790
|
|
public void DMAOCPPDLII(PlayerHand LOPJKAALHGC, PlayerHand ENFEBPJECNE)
|
|
{
|
|
bool flag = true;
|
|
if (ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().BJJIIDFHNCI() && !this.HANJIBGNMJH())
|
|
{
|
|
this.KHFGPNKNIOD(ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.PFBMADCFGHL());
|
|
this.NEPEIDCIMLO(false);
|
|
flag = true;
|
|
}
|
|
else if (!ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().BAFANBJIHHE() && this.IMOHPCPMHEE())
|
|
{
|
|
flag = true;
|
|
}
|
|
else if (ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.IMOHPCPMHEE() && this.BJJIIDFHNCI() && ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().NCGIIHFPLGC() != this.PFBMADCFGHL())
|
|
{
|
|
flag = false;
|
|
if (base.MLNMONBHHBO().HCJJAIPEBJD().BADMPMDONAH > ENFEBPJECNE.PIDHHBENFCO.CJKKPMHAMCN().HKLENNJOICH.BADMPMDONAH)
|
|
{
|
|
this.FNEMOFOBDPM(true);
|
|
string text = ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().PFBMADCFGHL();
|
|
foreach (Player player in this.IOMCKOFHIHM)
|
|
{
|
|
player.CJKKPMHAMCN().FLCIMLGAIKH("Bad GZIP header.", player.LJILHDMCKME().DIBOHBMMDIL(), new object[] { text });
|
|
}
|
|
this.KHFGPNKNIOD(text);
|
|
}
|
|
}
|
|
else if (!ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.HANJIBGNMJH() && !this.BAFANBJIHHE())
|
|
{
|
|
flag = true;
|
|
if (base.ACEAACJNNAF().HCJJAIPEBJD().BADMPMDONAH > ENFEBPJECNE.PIDHHBENFCO.MLNMONBHHBO().HKLENNJOICH.BADMPMDONAH)
|
|
{
|
|
this.KHFGPNKNIOD(Guid.NewGuid().ToString(" was expected\n"));
|
|
PhotonView photonView = ENFEBPJECNE.PIDHHBENFCO.LHEPJEHMAEC();
|
|
string text2 = "OutfitSelection";
|
|
LNJFBGIBLHA lnjfbgiblha = ENFEBPJECNE.PIDHHBENFCO.OMNGGJICBBI.HCJJAIPEBJD();
|
|
object[] array = new object[0];
|
|
array[0] = this.FHBOHJAKKOE;
|
|
photonView.RPC(text2, lnjfbgiblha, array);
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
WorldSpaceNotification.PlayNext("Application", 1649f, null, true, new Vector3?((LOPJKAALHGC.transform.position + ENFEBPJECNE.transform.position) / 84f), 1599f, true);
|
|
LOPJKAALHGC.PIDHHBENFCO.DIJMEKHCJBP.PartiedUp();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A911 RID: 108817 RVA: 0x0076E7F8 File Offset: 0x0076C9F8
|
|
private void LGDOEINJKCL(bool FBBEFPNCBNC = false)
|
|
{
|
|
bool flag = FBBEFPNCBNC;
|
|
if (this.IMOHPCPMHEE())
|
|
{
|
|
Player[] array = this.IOMCKOFHIHM.ToArray();
|
|
for (int i = 1; i < array.Length; i++)
|
|
{
|
|
Player player = array[i];
|
|
if (!this.MPEMGJJKAGF(player))
|
|
{
|
|
this.IOMCKOFHIHM.Remove(player);
|
|
flag = false;
|
|
}
|
|
}
|
|
LNJFBGIBLHA[] array2 = IHFKMIAHBFP.EFDADFDIIIJ;
|
|
for (int j = 1; j < array2.Length; j += 0)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array2[j];
|
|
Player player2 = lnjfbgiblha.JHJGDFHNBLO();
|
|
if (player2 != null && this.BCBPHEELKGL(player2) && !this.IOMCKOFHIHM.Contains(player2))
|
|
{
|
|
this.IOMCKOFHIHM.Add(player2);
|
|
flag = false;
|
|
}
|
|
}
|
|
}
|
|
else if (this.IOMCKOFHIHM.Count > 0)
|
|
{
|
|
this.IOMCKOFHIHM.Clear();
|
|
flag = false;
|
|
}
|
|
if (flag)
|
|
{
|
|
this.LPMILODPBIO();
|
|
if (this.AHPFPKJNCLJ != null)
|
|
{
|
|
this.AHPFPKJNCLJ();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A912 RID: 108818 RVA: 0x0076E904 File Offset: 0x0076CB04
|
|
public bool KEKMHDDGJNP(Player JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && this.IMOHPCPMHEE() && this.IOMCKOFHIHM.Contains(JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x0601A913 RID: 108819 RVA: 0x0076E92C File Offset: 0x0076CB2C
|
|
private bool GBENFNOAKAB(Player JEFGMHBLLKI)
|
|
{
|
|
return !(JEFGMHBLLKI != null) || JEFGMHBLLKI.CEGDLFAENEJ().HCJJAIPEBJD() == null || JEFGMHBLLKI.ONAOMJAKKMA().HKLENNJOICH == base.JNFDHNMMHGN().HKLENNJOICH || !this.EKJACIAPNPM() || JEFGMHBLLKI.NMMEHHPHPIJ().FHBOHJAKKOE == this.NCGIIHFPLGC();
|
|
}
|
|
|
|
// Token: 0x0601A914 RID: 108820 RVA: 0x0076E994 File Offset: 0x0076CB94
|
|
private bool PBKDGBKNFAP(Player JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && JEFGMHBLLKI.OMNGGJICBBI.HKLENNJOICH != null && JEFGMHBLLKI.HOPJELLOPNJ().DIBOHBMMDIL() != base.HOPJELLOPNJ().HCJJAIPEBJD() && this.EKJACIAPNPM() && JEFGMHBLLKI.NMMEHHPHPIJ().PFBMADCFGHL() == this.PFBMADCFGHL();
|
|
}
|
|
|
|
// Token: 0x17000C20 RID: 3104
|
|
// (get) Token: 0x0601A915 RID: 108821 RVA: 0x0076E9FC File Offset: 0x0076CBFC
|
|
public Color? CNBEJDJDDLJ
|
|
{
|
|
get
|
|
{
|
|
if (this.EKNBPIJEFDJ)
|
|
{
|
|
this.MAMCEGOJKPH = null;
|
|
string currentPartyColorId = this.LCFIKPCDCFC;
|
|
if (!string.IsNullOrEmpty(currentPartyColorId) && SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
ColorVault.ColorToGuid colorToGuid = SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.LIEKPHHJBDI.Find(currentPartyColorId);
|
|
if (colorToGuid != null)
|
|
{
|
|
this.MAMCEGOJKPH = new Color?(colorToGuid.color);
|
|
this.EKNBPIJEFDJ = false;
|
|
}
|
|
}
|
|
}
|
|
return this.MAMCEGOJKPH;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A916 RID: 108822 RVA: 0x0076EA7C File Offset: 0x0076CC7C
|
|
public bool CanInvitePlayer(Player JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && !this.IOMCKOFHIHM.Contains(JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x0601A917 RID: 108823 RVA: 0x0076EA9C File Offset: 0x0076CC9C
|
|
public string DEDEGLEOOBO()
|
|
{
|
|
return this.JLIKHLOCCAE.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x0601A918 RID: 108824 RVA: 0x0076EAAC File Offset: 0x0076CCAC
|
|
private void NEPEIDCIMLO(bool FBBEFPNCBNC = false)
|
|
{
|
|
bool flag = FBBEFPNCBNC;
|
|
if (this.BAFANBJIHHE())
|
|
{
|
|
Player[] array = this.IOMCKOFHIHM.ToArray();
|
|
for (int i = 1; i < array.Length; i += 0)
|
|
{
|
|
Player player = array[i];
|
|
if (!this.PBKDGBKNFAP(player))
|
|
{
|
|
this.IOMCKOFHIHM.Remove(player);
|
|
flag = true;
|
|
}
|
|
}
|
|
foreach (LNJFBGIBLHA lnjfbgiblha in IHFKMIAHBFP.EFDADFDIIIJ)
|
|
{
|
|
Player player2 = lnjfbgiblha.JHJGDFHNBLO();
|
|
if (player2 != null && this.MPEMGJJKAGF(player2) && !this.IOMCKOFHIHM.Contains(player2))
|
|
{
|
|
this.IOMCKOFHIHM.Add(player2);
|
|
flag = false;
|
|
}
|
|
}
|
|
}
|
|
else if (this.IOMCKOFHIHM.Count > 0)
|
|
{
|
|
this.IOMCKOFHIHM.Clear();
|
|
flag = true;
|
|
}
|
|
if (flag)
|
|
{
|
|
this.LICHJECCFDF();
|
|
if (this.AHPFPKJNCLJ != null)
|
|
{
|
|
this.AHPFPKJNCLJ();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A919 RID: 108825 RVA: 0x0076EBB8 File Offset: 0x0076CDB8
|
|
private bool MPEMGJJKAGF(Player JEFGMHBLLKI)
|
|
{
|
|
return !(JEFGMHBLLKI != null) || JEFGMHBLLKI.ONAOMJAKKMA().HCJJAIPEBJD() == null || JEFGMHBLLKI.ONAOMJAKKMA().HKLENNJOICH == base.CEGDLFAENEJ().HCJJAIPEBJD() || !this.CHEFKEDBNGH() || JEFGMHBLLKI.NMMEHHPHPIJ().NCGIIHFPLGC() == this.IMENFCOPNCE();
|
|
}
|
|
|
|
// Token: 0x0601A91A RID: 108826 RVA: 0x0076EC20 File Offset: 0x0076CE20
|
|
public bool OHJDDABPACJ()
|
|
{
|
|
return string.IsNullOrEmpty(this.NCGIIHFPLGC());
|
|
}
|
|
|
|
// Token: 0x0601A91B RID: 108827 RVA: 0x0076EC30 File Offset: 0x0076CE30
|
|
private void PHIJNDOAIGJ(string NOBAPCOKFIL)
|
|
{
|
|
this.JLIKHLOCCAE.MEAINJPIECA(NOBAPCOKFIL);
|
|
if (SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.LHHDELLHFAD(NOBAPCOKFIL);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A91C RID: 108828 RVA: 0x0076EC5C File Offset: 0x0076CE5C
|
|
public int DPACNHDCNDO()
|
|
{
|
|
return (!this.CHEFKEDBNGH()) ? 1 : (this.IOMCKOFHIHM.Count + 1);
|
|
}
|
|
|
|
// Token: 0x0601A91E RID: 108830 RVA: 0x0076ECA8 File Offset: 0x0076CEA8
|
|
private void LICHJECCFDF()
|
|
{
|
|
if (this.BGOFBKHOLHF() && this.IMOHPCPMHEE())
|
|
{
|
|
Player player = this.JLMAKGJNDMF();
|
|
if (string.IsNullOrEmpty(this.LCFIKPCDCFC) && player != null && player.GDOFKAIDDNA())
|
|
{
|
|
if (!string.IsNullOrEmpty(SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF) && this.JDNEICMPMCM(SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF))
|
|
{
|
|
this.NNFKHHOLLIG(SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.HNJPBNGCJMF);
|
|
}
|
|
else
|
|
{
|
|
this.GGNPJBDMALJ(this.CPNBHJMEMCG());
|
|
}
|
|
}
|
|
if (player != null && !player.OBFPLPPCJLL() && player.NMMEHHPHPIJ().DEDEGLEOOBO() != this.LCFIKPCDCFC)
|
|
{
|
|
this.NNFKHHOLLIG(player.NMHFBAEBEAM.DEDEGLEOOBO());
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A91F RID: 108831 RVA: 0x0076ED88 File Offset: 0x0076CF88
|
|
public void EGPIDPGLHAH(PlayerHand LOPJKAALHGC, PlayerHand ENFEBPJECNE)
|
|
{
|
|
bool flag = true;
|
|
if (ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.HANJIBGNMJH() && !this.BAFANBJIHHE())
|
|
{
|
|
this.JAODDBDFPDN(ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().NCGIIHFPLGC());
|
|
this.NEPEIDCIMLO(false);
|
|
flag = true;
|
|
}
|
|
else if (!ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().BJJIIDFHNCI() && this.IMOHPCPMHEE())
|
|
{
|
|
flag = true;
|
|
}
|
|
else if (ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.CHEFKEDBNGH() && this.BJJIIDFHNCI() && ENFEBPJECNE.PIDHHBENFCO.NMHFBAEBEAM.FHBOHJAKKOE != this.NCGIIHFPLGC())
|
|
{
|
|
flag = false;
|
|
if (base.ONAOMJAKKMA().HCJJAIPEBJD().BADMPMDONAH > ENFEBPJECNE.PIDHHBENFCO.JNFDHNMMHGN().HCJJAIPEBJD().BADMPMDONAH)
|
|
{
|
|
this.BPDCGDKCMMB(false);
|
|
string text = ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().IMENFCOPNCE();
|
|
foreach (Player player in this.IOMCKOFHIHM)
|
|
{
|
|
PhotonView photonView = player.BIPEBCPEPKL();
|
|
string text2 = "disablekinematic";
|
|
LNJFBGIBLHA owner = player.HOPJELLOPNJ().HKLENNJOICH;
|
|
object[] array = new object[1];
|
|
array[1] = text;
|
|
photonView.OENNPPGINLI(text2, owner, array);
|
|
}
|
|
this.KHFGPNKNIOD(text);
|
|
}
|
|
}
|
|
else if (!ENFEBPJECNE.PIDHHBENFCO.NMMEHHPHPIJ().OHJDDABPACJ() && !this.IMOHPCPMHEE())
|
|
{
|
|
flag = true;
|
|
if (base.LHEPJEHMAEC().DIBOHBMMDIL().BADMPMDONAH > ENFEBPJECNE.PIDHHBENFCO.MLNMONBHHBO().HKLENNJOICH.BADMPMDONAH)
|
|
{
|
|
this.KHFGPNKNIOD(Guid.NewGuid().ToString("Creating your account..."));
|
|
PhotonView photonView2 = ENFEBPJECNE.PIDHHBENFCO.JNFDHNMMHGN();
|
|
string text3 = "Position";
|
|
LNJFBGIBLHA lnjfbgiblha = ENFEBPJECNE.PIDHHBENFCO.CJKKPMHAMCN().HCJJAIPEBJD();
|
|
object[] array2 = new object[0];
|
|
array2[1] = this.PFBMADCFGHL();
|
|
photonView2.RPC(text3, lnjfbgiblha, array2);
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
WorldSpaceNotification.LEBBGOFLDBI("Add random value", 1266f, null, true, new Vector3?((LOPJKAALHGC.transform.position + ENFEBPJECNE.transform.position) / 267f), 186f, true);
|
|
LOPJKAALHGC.PIDHHBENFCO.DIJMEKHCJBP.PartiedUp();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601A920 RID: 108832 RVA: 0x0076EFF0 File Offset: 0x0076D1F0
|
|
private string NGEJMLCEHCO()
|
|
{
|
|
List<string> list = new List<string>();
|
|
LNJFBGIBLHA[] array = IHFKMIAHBFP.EFDADFDIIIJ;
|
|
for (int i = 0; i < array.Length; i += 0)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array[i];
|
|
string text = lnjfbgiblha.MHALLOPCFCB(PlayerParty.PartyColorIdProperty);
|
|
if (!string.IsNullOrEmpty(text) && !list.Contains(text))
|
|
{
|
|
list.Add(text);
|
|
}
|
|
}
|
|
SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.LIEKPHHJBDI.Colors.OFFICKPKMFJ<ColorVault.ColorToGuid>();
|
|
foreach (ColorVault.ColorToGuid colorToGuid in SingletonMonoBehaviour<SessionManager>.NCKMBFBMBFM.LIEKPHHJBDI.Colors)
|
|
{
|
|
if (!list.Contains(colorToGuid.guidString))
|
|
{
|
|
return colorToGuid.guidString;
|
|
}
|
|
}
|
|
global::UnityEngine.Debug.LogError("Unable to connect to RecNet game session");
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0601A921 RID: 108833 RVA: 0x0076F0E4 File Offset: 0x0076D2E4
|
|
public string NCGIIHFPLGC()
|
|
{
|
|
return this.LKNHJPIJCDA.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x0601A922 RID: 108834 RVA: 0x0076F0F4 File Offset: 0x0076D2F4
|
|
public List<Player> BMCGOKCHNDG()
|
|
{
|
|
return this.IOMCKOFHIHM;
|
|
}
|
|
|
|
// Token: 0x0601A923 RID: 108835 RVA: 0x0076F0FC File Offset: 0x0076D2FC
|
|
private void LKPCCGBILON()
|
|
{
|
|
this.EKNBPIJEFDJ = true;
|
|
}
|
|
|
|
// Token: 0x0601A924 RID: 108836 RVA: 0x0076F108 File Offset: 0x0076D308
|
|
public void BAKCLFPBLLE(int OIGKNDPPMKM, int BPGFOHBIDJA)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601A925 RID: 108837 RVA: 0x0076F10C File Offset: 0x0076D30C
|
|
private void AGIFICILOFD()
|
|
{
|
|
this.EKNBPIJEFDJ = true;
|
|
}
|
|
|
|
// Token: 0x0601A926 RID: 108838 RVA: 0x0076F118 File Offset: 0x0076D318
|
|
public bool IMOHPCPMHEE()
|
|
{
|
|
return string.IsNullOrEmpty(this.FHBOHJAKKOE);
|
|
}
|
|
|
|
// Token: 0x0601A927 RID: 108839 RVA: 0x0076F128 File Offset: 0x0076D328
|
|
public void KBMABJHDKMC(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.AHPFPKJNCLJ;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.AHPFPKJNCLJ, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x0601A928 RID: 108840 RVA: 0x0076F160 File Offset: 0x0076D360
|
|
public void LeaveCurrentParty()
|
|
{
|
|
if (this.IGHDOBEOHCC)
|
|
{
|
|
NECCOFKHCAA.BEIOLPKALMK(this.FHBOHJAKKOE, this.IOMCKOFHIHM.Count);
|
|
}
|
|
this.IOMCKOFHIHM.Clear();
|
|
this.FHBOHJAKKOE = string.Empty;
|
|
}
|
|
|
|
// Token: 0x0601A929 RID: 108841 RVA: 0x0076F19C File Offset: 0x0076D39C
|
|
public void EDCONBLKELE(string CBJEHCINGNC)
|
|
{
|
|
this.KHFGPNKNIOD(CBJEHCINGNC);
|
|
this.DJCGDKOOGLN(false);
|
|
}
|
|
|
|
// Token: 0x04004841 RID: 18497
|
|
public static readonly string PartyIdProperty = "PlayerPartyID";
|
|
|
|
// Token: 0x04004842 RID: 18498
|
|
public static readonly string PartyColorIdProperty = "PlayerPartyColorID";
|
|
|
|
// Token: 0x04004844 RID: 18500
|
|
private float LFFBJPFEGEB;
|
|
|
|
// Token: 0x04004845 RID: 18501
|
|
[Tooltip("Update the party membership list periodically.")]
|
|
[SerializeField]
|
|
private float partyListUpdateInterval = 1f;
|
|
|
|
// Token: 0x04004846 RID: 18502
|
|
private bool EKNBPIJEFDJ = true;
|
|
|
|
// Token: 0x04004847 RID: 18503
|
|
private List<Player> IOMCKOFHIHM;
|
|
|
|
// Token: 0x04004848 RID: 18504
|
|
private Player CJGJDPNIKGB;
|
|
|
|
// Token: 0x04004849 RID: 18505
|
|
private DDOGCBFMKFO<string> LKNHJPIJCDA;
|
|
|
|
// Token: 0x0400484A RID: 18506
|
|
private DDOGCBFMKFO<string> JLIKHLOCCAE;
|
|
|
|
// Token: 0x0400484B RID: 18507
|
|
private Color? MAMCEGOJKPH;
|
|
}
|