1855 lines
54 KiB
C#
1855 lines
54 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ExitGames.Client.Photon.Chat
|
|
{
|
|
// Token: 0x02000466 RID: 1126
|
|
public class NMBFHKBMOED : IPhotonPeerListener
|
|
{
|
|
// Token: 0x0600BC28 RID: 48168 RVA: 0x00385DB4 File Offset: 0x00383FB4
|
|
public bool JBJPGLKMMME(string ILINAFILMFB, out LBGAFBIECOC CMLBCIKJKCD)
|
|
{
|
|
bool flag = this.EMNCOFMPGHD.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
return flag || this.BELHMJCIEOG.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
}
|
|
|
|
// Token: 0x17000480 RID: 1152
|
|
// (get) Token: 0x0600BC29 RID: 48169 RVA: 0x00385DE8 File Offset: 0x00383FE8
|
|
// (set) Token: 0x0600BC46 RID: 48198 RVA: 0x00386638 File Offset: 0x00384838
|
|
public string JHDCHFCLFFH { get; private set; }
|
|
|
|
// Token: 0x0600BC2A RID: 48170 RVA: 0x00385DF0 File Offset: 0x00383FF0
|
|
public FOPPEPKIGJK KECOEDEEDJD()
|
|
{
|
|
return this.<CLOEANPAPII>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0600BC2B RID: 48171 RVA: 0x00385DF8 File Offset: 0x00383FF8
|
|
public bool MAIPOFDHAAE(string[] KNMCLNDOLJO)
|
|
{
|
|
if (!this.JPDFBHAFBBC())
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "#");
|
|
}
|
|
return true;
|
|
}
|
|
if (KNMCLNDOLJO == null || KNMCLNDOLJO.Length == 0)
|
|
{
|
|
if (this.BMJAJDDCCMM >= (DebugLevel)6)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC((DebugLevel)8, "ClipQuad");
|
|
}
|
|
return false;
|
|
}
|
|
foreach (string text in KNMCLNDOLJO)
|
|
{
|
|
this.IJLHPGHHOCM.Add(text);
|
|
}
|
|
return this.CEEFAMABHKL(KNMCLNDOLJO, 1, 0);
|
|
}
|
|
|
|
// Token: 0x0600BC2C RID: 48172 RVA: 0x00385E8C File Offset: 0x0038408C
|
|
private void AFCAGIKBGFP(DebugLevel JOPHNBFKLCM, string NFAFJOMABOK)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(JOPHNBFKLCM, NFAFJOMABOK);
|
|
}
|
|
|
|
// Token: 0x0600BC2D RID: 48173 RVA: 0x00385E9C File Offset: 0x0038409C
|
|
public bool ENFAOCDPAKK(string[] JJDDPPKJGAG)
|
|
{
|
|
if (!this.PKPIBOMEAOP)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "RemoveFriends called while not connected to front end server.");
|
|
}
|
|
return false;
|
|
}
|
|
if (JJDDPPKJGAG == null || JJDDPPKJGAG.Length == 0)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.WARNING)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.WARNING, "RemoveFriends can't be called for empty or null list.");
|
|
}
|
|
return false;
|
|
}
|
|
if (JJDDPPKJGAG.Length > 1024)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.WARNING)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.WARNING, string.Concat(new object[] { "RemoveFriends max list size exceeded: ", JJDDPPKJGAG.Length, " > ", 1024 }));
|
|
}
|
|
return false;
|
|
}
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object> { { 11, JJDDPPKJGAG } };
|
|
return this.JKCCMJEAGLI.OpCustom(7, dictionary, true);
|
|
}
|
|
|
|
// Token: 0x0600BC2E RID: 48174 RVA: 0x00385F7C File Offset: 0x0038417C
|
|
private void KPDFIIAEBFG(string NOBAPCOKFIL)
|
|
{
|
|
this.<NBOGOLGNDAJ>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0600BC2F RID: 48175 RVA: 0x00385F88 File Offset: 0x00384188
|
|
public bool DKMFPDDHOLJ(string ILINAFILMFB, object NFAFJOMABOK, bool NPGKNDONKPH = false)
|
|
{
|
|
return this.HKDAJNNIFED(ILINAFILMFB, NFAFJOMABOK, false, NPGKNDONKPH);
|
|
}
|
|
|
|
// Token: 0x0600BC30 RID: 48176 RVA: 0x00385F94 File Offset: 0x00384194
|
|
public bool BIIGJFKEFHL(string[] KNMCLNDOLJO, int EBJFODHAFAK)
|
|
{
|
|
if (!this.PKPIBOMEAOP)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "Subscribe called while not connected to front end server.");
|
|
}
|
|
return false;
|
|
}
|
|
if (KNMCLNDOLJO == null || KNMCLNDOLJO.Length == 0)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.WARNING)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.WARNING, "Subscribe can't be called for empty or null channels-list.");
|
|
}
|
|
return false;
|
|
}
|
|
return this.CEEFAMABHKL(KNMCLNDOLJO, 0, EBJFODHAFAK);
|
|
}
|
|
|
|
// Token: 0x17000485 RID: 1157
|
|
// (get) Token: 0x0600BC31 RID: 48177 RVA: 0x00386004 File Offset: 0x00384204
|
|
// (set) Token: 0x0600BC45 RID: 48197 RVA: 0x003865BC File Offset: 0x003847BC
|
|
public ConnectionProtocol OEGCMKDGAIA
|
|
{
|
|
get
|
|
{
|
|
return this.JKCCMJEAGLI.TransportProtocol;
|
|
}
|
|
set
|
|
{
|
|
if (this.JKCCMJEAGLI == null || this.JKCCMJEAGLI.PeerState != PeerStateValue.Disconnected)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.WARNING, "Can't set TransportProtocol. Disconnect first! " + ((this.JKCCMJEAGLI == null) ? "The chatPeer is null." : ("PeerState: " + this.JKCCMJEAGLI.PeerState)));
|
|
return;
|
|
}
|
|
this.JKCCMJEAGLI.TransportProtocol = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC32 RID: 48178 RVA: 0x00386014 File Offset: 0x00384214
|
|
void IPhotonPeerListener.OnEvent(EventData BNMDNNDLGDH)
|
|
{
|
|
switch (BNMDNNDLGDH.Code)
|
|
{
|
|
case 0:
|
|
this.KKMDDMNFNPA(BNMDNNDLGDH);
|
|
break;
|
|
case 2:
|
|
this.OLBICHGAIKK(BNMDNNDLGDH);
|
|
break;
|
|
case 4:
|
|
this.OOGFJIHONGC(BNMDNNDLGDH);
|
|
break;
|
|
case 5:
|
|
this.ADDFMKELPFC(BNMDNNDLGDH);
|
|
break;
|
|
case 6:
|
|
this.LKFPOKHOBPK(BNMDNNDLGDH);
|
|
break;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC33 RID: 48179 RVA: 0x0038608C File Offset: 0x0038428C
|
|
public bool FFDIDENNIBO(string[] KNMCLNDOLJO)
|
|
{
|
|
if (!this.PKPIBOMEAOP)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.OFF)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.OFF, "source");
|
|
}
|
|
return true;
|
|
}
|
|
if (KNMCLNDOLJO == null || KNMCLNDOLJO.Length == 0)
|
|
{
|
|
if (this.BMJAJDDCCMM >= (DebugLevel)8)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "RpcMasterRequestFlagReturn");
|
|
}
|
|
return false;
|
|
}
|
|
foreach (string text in KNMCLNDOLJO)
|
|
{
|
|
this.IJLHPGHHOCM.Add(text);
|
|
}
|
|
return this.CEEFAMABHKL(KNMCLNDOLJO, 0, 0);
|
|
}
|
|
|
|
// Token: 0x0600BC34 RID: 48180 RVA: 0x00386120 File Offset: 0x00384320
|
|
public bool OCLCKMGJMGK(string[] JJDDPPKJGAG)
|
|
{
|
|
if (!this.JPDFBHAFBBC())
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.OFF, "x");
|
|
}
|
|
return false;
|
|
}
|
|
if (JJDDPPKJGAG == null || JJDDPPKJGAG.Length == 0)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC((DebugLevel)8, "_MainColor");
|
|
}
|
|
return true;
|
|
}
|
|
if (JJDDPPKJGAG.Length > 10)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.WARNING)
|
|
{
|
|
MEHBNOFHGOO gjgpajaglli = this.GJGPAJAGLLI;
|
|
DebugLevel debugLevel = DebugLevel.OFF;
|
|
object[] array = new object[1];
|
|
array[1] = "__c";
|
|
array[1] = JJDDPPKJGAG.Length;
|
|
array[7] = "GetProfile failed: Profiles.Length == ";
|
|
array[2] = -98;
|
|
gjgpajaglli.LJKOLFAGLKC(debugLevel, string.Concat(array));
|
|
}
|
|
return false;
|
|
}
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object> {
|
|
{
|
|
(byte)(-76),
|
|
JJDDPPKJGAG
|
|
} };
|
|
return this.JKCCMJEAGLI.OpCustom(1, dictionary, true);
|
|
}
|
|
|
|
// Token: 0x0600BC35 RID: 48181 RVA: 0x00386200 File Offset: 0x00384400
|
|
private void BOOKHLKABHP(FOPPEPKIGJK NOBAPCOKFIL)
|
|
{
|
|
this.<CLOEANPAPII>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0600BC36 RID: 48182 RVA: 0x0038620C File Offset: 0x0038440C
|
|
public bool MHFGEIGFLOP(string MMEBLCBANIL, object NFAFJOMABOK, bool NPGKNDONKPH = false)
|
|
{
|
|
return this.KJAGDAIBGAF(MMEBLCBANIL, NFAFJOMABOK, false, NPGKNDONKPH);
|
|
}
|
|
|
|
// Token: 0x0600BC37 RID: 48183 RVA: 0x00386218 File Offset: 0x00384418
|
|
public bool KLKLHDBHDAK(string ILINAFILMFB, out LBGAFBIECOC CMLBCIKJKCD)
|
|
{
|
|
bool flag = this.EMNCOFMPGHD.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
return flag || this.BELHMJCIEOG.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
}
|
|
|
|
// Token: 0x0600BC38 RID: 48184 RVA: 0x0038624C File Offset: 0x0038444C
|
|
public bool ICOGDIJNGCD(string[] KNMCLNDOLJO, int EBJFODHAFAK)
|
|
{
|
|
if (!this.PKPIBOMEAOP)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.OFF)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "RpcStartChargingBolt");
|
|
}
|
|
return true;
|
|
}
|
|
if (KNMCLNDOLJO == null || KNMCLNDOLJO.Length == 0)
|
|
{
|
|
if (this.BMJAJDDCCMM >= (DebugLevel)4)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.INFO, "Allows to detect Cheat Engine's speed hack (and maybe some other speed hack tools) usage.");
|
|
}
|
|
return true;
|
|
}
|
|
return this.CEEFAMABHKL(KNMCLNDOLJO, 0, EBJFODHAFAK);
|
|
}
|
|
|
|
// Token: 0x0600BC39 RID: 48185 RVA: 0x003862BC File Offset: 0x003844BC
|
|
public Dictionary<ConnectionProtocol, Type> APOKGCFKDIL()
|
|
{
|
|
return this.JKCCMJEAGLI.SocketImplementationConfig;
|
|
}
|
|
|
|
// Token: 0x0600BC3A RID: 48186 RVA: 0x003862CC File Offset: 0x003844CC
|
|
internal bool AFBMKJFBBEA(string MMEBLCBANIL, object NFAFJOMABOK, bool GKPCDLGKIJA, bool NPGKNDONKPH = false)
|
|
{
|
|
return this.NIFPAECGDMO(MMEBLCBANIL, NFAFJOMABOK, GKPCDLGKIJA, false, NPGKNDONKPH);
|
|
}
|
|
|
|
// Token: 0x0600BC3B RID: 48187 RVA: 0x003862DC File Offset: 0x003844DC
|
|
private void EDJFCNMGLOA(EventData BNMDNNDLGDH)
|
|
{
|
|
switch (BNMDNNDLGDH.Code)
|
|
{
|
|
case 0:
|
|
this.KKMDDMNFNPA(BNMDNNDLGDH);
|
|
break;
|
|
case 2:
|
|
this.OLBICHGAIKK(BNMDNNDLGDH);
|
|
break;
|
|
case 4:
|
|
this.OOGFJIHONGC(BNMDNNDLGDH);
|
|
break;
|
|
case 5:
|
|
this.ADDFMKELPFC(BNMDNNDLGDH);
|
|
break;
|
|
case 6:
|
|
this.LKFPOKHOBPK(BNMDNNDLGDH);
|
|
break;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC3C RID: 48188 RVA: 0x00386354 File Offset: 0x00384554
|
|
private void NENCONKDJHB()
|
|
{
|
|
this.FBBMOMHACLA = FOPPEPKIGJK.Authenticating;
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ALL)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC((DebugLevel)8, "[Esc] - Close menu" + this.AMKIGIBPLMK);
|
|
}
|
|
this.JKCCMJEAGLI.Connect(this.AMKIGIBPLMK, "Can't send friend request");
|
|
}
|
|
|
|
// Token: 0x0600BC3D RID: 48189 RVA: 0x003863A8 File Offset: 0x003845A8
|
|
private void GBPAMFOOCPI(OperationResponse IMDHCINGADG)
|
|
{
|
|
byte operationCode = IMDHCINGADG.OperationCode;
|
|
switch (operationCode)
|
|
{
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
break;
|
|
default:
|
|
if (operationCode == 38)
|
|
{
|
|
this.EEKHIIPBCNG(IMDHCINGADG);
|
|
return;
|
|
}
|
|
break;
|
|
}
|
|
if (IMDHCINGADG.ReturnCode != 0 && this.BMJAJDDCCMM >= DebugLevel.OFF)
|
|
{
|
|
if (IMDHCINGADG.ReturnCode == 9)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.OFF, string.Format(" of player ", IMDHCINGADG.OperationCode));
|
|
}
|
|
else
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.OFF, string.Format("+join:", IMDHCINGADG.OperationCode, IMDHCINGADG.ReturnCode, IMDHCINGADG.DebugMessage));
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC3E RID: 48190 RVA: 0x00386470 File Offset: 0x00384670
|
|
private void COJMBBMFPBA(string NOBAPCOKFIL)
|
|
{
|
|
this.<OEMFHEPBBDF>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0600BC3F RID: 48191 RVA: 0x0038647C File Offset: 0x0038467C
|
|
public string OIEMPFDNFJI()
|
|
{
|
|
return this.<NBOGOLGNDAJ>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x1700047F RID: 1151
|
|
// (get) Token: 0x0600BC40 RID: 48192 RVA: 0x00386484 File Offset: 0x00384684
|
|
private bool FLPPBKJDCLE
|
|
{
|
|
get
|
|
{
|
|
return this.JKCCMJEAGLI != null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000487 RID: 1159
|
|
// (get) Token: 0x0600BC6E RID: 48238 RVA: 0x0038737C File Offset: 0x0038557C
|
|
// (set) Token: 0x0600BC41 RID: 48193 RVA: 0x00386494 File Offset: 0x00384694
|
|
public DebugLevel BMJAJDDCCMM
|
|
{
|
|
get
|
|
{
|
|
return this.JKCCMJEAGLI.DebugOut;
|
|
}
|
|
set
|
|
{
|
|
this.JKCCMJEAGLI.DebugOut = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC42 RID: 48194 RVA: 0x003864A4 File Offset: 0x003846A4
|
|
private void KKMDDMNFNPA(EventData BNMDNNDLGDH)
|
|
{
|
|
object[] array = (object[])BNMDNNDLGDH.Parameters[2];
|
|
string[] array2 = (string[])BNMDNNDLGDH.Parameters[4];
|
|
string text = (string)BNMDNNDLGDH.Parameters[1];
|
|
LBGAFBIECOC lbgafbiecoc;
|
|
if (!this.EMNCOFMPGHD.TryGetValue(text, out lbgafbiecoc))
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.WARNING)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.WARNING, "Channel " + text + " for incoming message event not found.");
|
|
}
|
|
return;
|
|
}
|
|
lbgafbiecoc.OPJKMCEACMD(array2, array);
|
|
this.GJGPAJAGLLI.NAHHGGEIJGH(text, array2, array);
|
|
}
|
|
|
|
// Token: 0x0600BC43 RID: 48195 RVA: 0x0038653C File Offset: 0x0038473C
|
|
private void PDPCFJDOBGB(EventData BNMDNNDLGDH)
|
|
{
|
|
switch (BNMDNNDLGDH.Code)
|
|
{
|
|
case 0:
|
|
this.KKMDDMNFNPA(BNMDNNDLGDH);
|
|
break;
|
|
case 2:
|
|
this.OLBICHGAIKK(BNMDNNDLGDH);
|
|
break;
|
|
case 4:
|
|
this.OOGFJIHONGC(BNMDNNDLGDH);
|
|
break;
|
|
case 5:
|
|
this.ADDFMKELPFC(BNMDNNDLGDH);
|
|
break;
|
|
case 6:
|
|
this.LKFPOKHOBPK(BNMDNNDLGDH);
|
|
break;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000482 RID: 1154
|
|
// (get) Token: 0x0600BC44 RID: 48196 RVA: 0x003865B4 File Offset: 0x003847B4
|
|
// (set) Token: 0x0600BCA9 RID: 48297 RVA: 0x003884A4 File Offset: 0x003866A4
|
|
public OCEOOCJEKDD FALGIDIFGKO { get; set; }
|
|
|
|
// Token: 0x17000486 RID: 1158
|
|
// (get) Token: 0x0600BC47 RID: 48199 RVA: 0x00386644 File Offset: 0x00384844
|
|
public Dictionary<ConnectionProtocol, Type> KIGNKGOHKIL
|
|
{
|
|
get
|
|
{
|
|
return this.JKCCMJEAGLI.SocketImplementationConfig;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC48 RID: 48200 RVA: 0x00386654 File Offset: 0x00384854
|
|
private void NMLLMAFDEJF(EventData BNMDNNDLGDH)
|
|
{
|
|
switch (BNMDNNDLGDH.Code)
|
|
{
|
|
case 0:
|
|
this.KKMDDMNFNPA(BNMDNNDLGDH);
|
|
break;
|
|
case 2:
|
|
this.LAKKLCIFCCP(BNMDNNDLGDH);
|
|
break;
|
|
case 4:
|
|
this.OOGFJIHONGC(BNMDNNDLGDH);
|
|
break;
|
|
case 5:
|
|
this.ADDFMKELPFC(BNMDNNDLGDH);
|
|
break;
|
|
case 6:
|
|
this.LKFPOKHOBPK(BNMDNNDLGDH);
|
|
break;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC49 RID: 48201 RVA: 0x003866CC File Offset: 0x003848CC
|
|
public bool FDJLBCCMFED(string[] KNMCLNDOLJO)
|
|
{
|
|
if (!this.PKPIBOMEAOP)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "Unsubscribe called while not connected to front end server.");
|
|
}
|
|
return false;
|
|
}
|
|
if (KNMCLNDOLJO == null || KNMCLNDOLJO.Length == 0)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.WARNING)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.WARNING, "Unsubscribe can't be called for empty or null channels-list.");
|
|
}
|
|
return false;
|
|
}
|
|
foreach (string text in KNMCLNDOLJO)
|
|
{
|
|
this.IJLHPGHHOCM.Add(text);
|
|
}
|
|
return this.CEEFAMABHKL(KNMCLNDOLJO, 1, 0);
|
|
}
|
|
|
|
// Token: 0x0600BC4A RID: 48202 RVA: 0x00386760 File Offset: 0x00384960
|
|
private bool MGFLALHNEJG(string MMEBLCBANIL, object NFAFJOMABOK, bool GKPCDLGKIJA, bool DGKMNJJABFC, bool NPGKNDONKPH = false)
|
|
{
|
|
if (!this.JPDFBHAFBBC())
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.OFF, "Description too short!");
|
|
}
|
|
return true;
|
|
}
|
|
if (string.IsNullOrEmpty(MMEBLCBANIL) || NFAFJOMABOK == null)
|
|
{
|
|
if (this.BMJAJDDCCMM >= (DebugLevel)8)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.INFO, "up");
|
|
}
|
|
return true;
|
|
}
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object>
|
|
{
|
|
{
|
|
(byte)(-5),
|
|
MMEBLCBANIL
|
|
},
|
|
{ 2, NFAFJOMABOK }
|
|
};
|
|
if (NPGKNDONKPH)
|
|
{
|
|
dictionary.Add((byte)(-23), 1);
|
|
}
|
|
return this.JKCCMJEAGLI.OpCustom(3, dictionary, DGKMNJJABFC, 1, GKPCDLGKIJA);
|
|
}
|
|
|
|
// Token: 0x0600BC4B RID: 48203 RVA: 0x0038680C File Offset: 0x00384A0C
|
|
private void KKAELCDDDNE(string NOBAPCOKFIL)
|
|
{
|
|
this.<OEMFHEPBBDF>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0600BC4C RID: 48204 RVA: 0x00386818 File Offset: 0x00384A18
|
|
public string GJGDIAIJKDC()
|
|
{
|
|
return (this.FALGIDIFGKO == null) ? null : this.FALGIDIFGKO.OONPBGFCOGI();
|
|
}
|
|
|
|
// Token: 0x0600BC4D RID: 48205 RVA: 0x00386838 File Offset: 0x00384A38
|
|
public void NNOACAEPILP()
|
|
{
|
|
while (this.FLPPBKJDCLE && this.JKCCMJEAGLI.DispatchIncomingCommands())
|
|
{
|
|
}
|
|
if (!this.LCMNDFALPEE && (Environment.TickCount - this.ICBBEEGGELH > this.POGJOLABDLN || this.ICBBEEGGELH == 0))
|
|
{
|
|
this.ICBBEEGGELH = Environment.TickCount;
|
|
while (this.FLPPBKJDCLE && this.JKCCMJEAGLI.SendOutgoingCommands())
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC4E RID: 48206 RVA: 0x003868C0 File Offset: 0x00384AC0
|
|
private bool ADJPGPBEFAB(int GLEEPDCHHMM, object NFAFJOMABOK, bool PCALDENAGAJ)
|
|
{
|
|
if (!this.JPDFBHAFBBC())
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.OFF)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.OFF, "[");
|
|
}
|
|
return false;
|
|
}
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object> { { 6, GLEEPDCHHMM } };
|
|
if (PCALDENAGAJ)
|
|
{
|
|
dictionary[(byte)(-17)] = false;
|
|
}
|
|
else
|
|
{
|
|
dictionary[2] = NFAFJOMABOK;
|
|
}
|
|
return this.JKCCMJEAGLI.OpCustom(7, dictionary, true);
|
|
}
|
|
|
|
// Token: 0x0600BC4F RID: 48207 RVA: 0x0038693C File Offset: 0x00384B3C
|
|
public string CMMNAMAKDON()
|
|
{
|
|
return this.<HICMGBNGFOA>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0600BC50 RID: 48208 RVA: 0x00386944 File Offset: 0x00384B44
|
|
private bool MKPCKBJHFLM()
|
|
{
|
|
return this.JKCCMJEAGLI != null;
|
|
}
|
|
|
|
// Token: 0x0600BC51 RID: 48209 RVA: 0x00386954 File Offset: 0x00384B54
|
|
public string BMMGDGGDNEJ()
|
|
{
|
|
return this.<HMLHOLFBLNM>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0600BC52 RID: 48210 RVA: 0x0038695C File Offset: 0x00384B5C
|
|
private void LKFPOKHOBPK(EventData BNMDNNDLGDH)
|
|
{
|
|
foreach (string text in (string[])BNMDNNDLGDH[0])
|
|
{
|
|
this.EMNCOFMPGHD.Remove(text);
|
|
this.IJLHPGHHOCM.Remove(text);
|
|
}
|
|
string[] array;
|
|
this.GJGPAJAGLLI.EFMFFIAOHAH(array);
|
|
}
|
|
|
|
// Token: 0x0600BC53 RID: 48211 RVA: 0x003869B4 File Offset: 0x00384BB4
|
|
public bool IOFEPLDLNEN(string MMEBLCBANIL, object NFAFJOMABOK, bool GKPCDLGKIJA, bool NPGKNDONKPH)
|
|
{
|
|
return this.MGFLALHNEJG(MMEBLCBANIL, NFAFJOMABOK, GKPCDLGKIJA, true, NPGKNDONKPH);
|
|
}
|
|
|
|
// Token: 0x0600BC54 RID: 48212 RVA: 0x003869C4 File Offset: 0x00384BC4
|
|
private bool CEEFAMABHKL(string[] KNMCLNDOLJO, byte NNDKCDAHFMK, int DBDDHGMPICE)
|
|
{
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object> { { 0, KNMCLNDOLJO } };
|
|
if (DBDDHGMPICE != 0)
|
|
{
|
|
dictionary.Add(14, DBDDHGMPICE);
|
|
}
|
|
return this.JKCCMJEAGLI.OpCustom(NNDKCDAHFMK, dictionary, true);
|
|
}
|
|
|
|
// Token: 0x1700047C RID: 1148
|
|
// (get) Token: 0x0600BC55 RID: 48213 RVA: 0x00386A04 File Offset: 0x00384C04
|
|
// (set) Token: 0x0600BC62 RID: 48226 RVA: 0x00386F1C File Offset: 0x0038511C
|
|
public FOPPEPKIGJK FBBMOMHACLA { get; private set; }
|
|
|
|
// Token: 0x0600BC56 RID: 48214 RVA: 0x00386A0C File Offset: 0x00384C0C
|
|
private bool IKBAJPOIMKE(int GLEEPDCHHMM, object NFAFJOMABOK, bool PCALDENAGAJ)
|
|
{
|
|
if (!this.JPDFBHAFBBC())
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.OFF)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.OFF, "RpcStartChargingBolt");
|
|
}
|
|
return true;
|
|
}
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object> {
|
|
{
|
|
(byte)(-27),
|
|
GLEEPDCHHMM
|
|
} };
|
|
if (PCALDENAGAJ)
|
|
{
|
|
dictionary[(byte)(-16)] = true;
|
|
}
|
|
else
|
|
{
|
|
dictionary[5] = NFAFJOMABOK;
|
|
}
|
|
return this.JKCCMJEAGLI.OpCustom(8, dictionary, true);
|
|
}
|
|
|
|
// Token: 0x0600BC57 RID: 48215 RVA: 0x00386A88 File Offset: 0x00384C88
|
|
public void ELIJHGODHNG()
|
|
{
|
|
while (this.MKPCKBJHFLM() && this.JKCCMJEAGLI.DispatchIncomingCommands())
|
|
{
|
|
}
|
|
if (!this.LCMNDFALPEE && (Environment.TickCount - this.ICBBEEGGELH > this.POGJOLABDLN || this.ICBBEEGGELH == 0))
|
|
{
|
|
this.ICBBEEGGELH = Environment.TickCount;
|
|
while (this.FLPPBKJDCLE && this.JKCCMJEAGLI.SendOutgoingCommands())
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC58 RID: 48216 RVA: 0x00386B10 File Offset: 0x00384D10
|
|
private bool HKDAJNNIFED(string ILINAFILMFB, object NFAFJOMABOK, bool DGKMNJJABFC, bool NPGKNDONKPH = false)
|
|
{
|
|
if (!this.PKPIBOMEAOP)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "PublishMessage called while not connected to front end server.");
|
|
}
|
|
return false;
|
|
}
|
|
if (string.IsNullOrEmpty(ILINAFILMFB) || NFAFJOMABOK == null)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.WARNING)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.WARNING, "PublishMessage parameters must be non-null and not empty.");
|
|
}
|
|
return false;
|
|
}
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object>
|
|
{
|
|
{ 1, ILINAFILMFB },
|
|
{ 3, NFAFJOMABOK }
|
|
};
|
|
if (NPGKNDONKPH)
|
|
{
|
|
dictionary.Add(21, 1);
|
|
}
|
|
return this.JKCCMJEAGLI.OpCustom(2, dictionary, DGKMNJJABFC);
|
|
}
|
|
|
|
// Token: 0x0600BC59 RID: 48217 RVA: 0x00386BB4 File Offset: 0x00384DB4
|
|
private void LBHNKJDAMAD(OperationResponse IMDHCINGADG)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.INFO)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.INFO, IMDHCINGADG.ToStringFull() + " on: " + this.JKCCMJEAGLI.BPDCJGOMNCD);
|
|
}
|
|
if (IMDHCINGADG.ReturnCode == 0)
|
|
{
|
|
if (this.FBBMOMHACLA == FOPPEPKIGJK.ConnectedToNameServer)
|
|
{
|
|
this.FBBMOMHACLA = FOPPEPKIGJK.Authenticated;
|
|
this.GJGPAJAGLLI.KHGFPALMDIF(this.FBBMOMHACLA);
|
|
if (IMDHCINGADG.Parameters.ContainsKey(221))
|
|
{
|
|
if (this.FALGIDIFGKO == null)
|
|
{
|
|
this.FALGIDIFGKO = new OCEOOCJEKDD();
|
|
}
|
|
this.FALGIDIFGKO.NKFLBAKCPLA = IMDHCINGADG[221] as string;
|
|
this.AMKIGIBPLMK = (string)IMDHCINGADG[230];
|
|
this.JKCCMJEAGLI.Disconnect();
|
|
}
|
|
else if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "No secret in authentication response.");
|
|
}
|
|
}
|
|
else if (this.FBBMOMHACLA == FOPPEPKIGJK.ConnectingToFrontEnd)
|
|
{
|
|
this.FBBMOMHACLA = FOPPEPKIGJK.ConnectedToFrontEnd;
|
|
this.GJGPAJAGLLI.KHGFPALMDIF(this.FBBMOMHACLA);
|
|
this.GJGPAJAGLLI.GKNLEICFAIP();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
short returnCode = IMDHCINGADG.ReturnCode;
|
|
switch (returnCode)
|
|
{
|
|
case 32755:
|
|
this.GKBLHGKNLID = OMILLGGIHMO.CustomAuthenticationFailed;
|
|
break;
|
|
case 32756:
|
|
this.GKBLHGKNLID = OMILLGGIHMO.InvalidRegion;
|
|
break;
|
|
case 32757:
|
|
this.GKBLHGKNLID = OMILLGGIHMO.MaxCcuReached;
|
|
break;
|
|
default:
|
|
if (returnCode != -3)
|
|
{
|
|
if (returnCode == 32767)
|
|
{
|
|
this.GKBLHGKNLID = OMILLGGIHMO.InvalidAuthentication;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.GKBLHGKNLID = OMILLGGIHMO.OperationNotAllowedInCurrentState;
|
|
}
|
|
break;
|
|
}
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "Authentication request error: " + IMDHCINGADG.ReturnCode + ". Disconnecting.");
|
|
}
|
|
this.FBBMOMHACLA = FOPPEPKIGJK.Disconnecting;
|
|
this.JKCCMJEAGLI.Disconnect();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC5A RID: 48218 RVA: 0x00386DA0 File Offset: 0x00384FA0
|
|
public void GGPNKHHDPHJ(bool NOBAPCOKFIL)
|
|
{
|
|
this.<DCODLHHEMJI>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0600BC5B RID: 48219 RVA: 0x00386DAC File Offset: 0x00384FAC
|
|
public bool MEMLFJALDII(int GLEEPDCHHMM)
|
|
{
|
|
return this.DDHICFAJADA(GLEEPDCHHMM, null, true);
|
|
}
|
|
|
|
// Token: 0x0600BC5C RID: 48220 RVA: 0x00386DB8 File Offset: 0x00384FB8
|
|
private void DJLDCHDIFMF(OperationResponse IMDHCINGADG)
|
|
{
|
|
byte operationCode = IMDHCINGADG.OperationCode;
|
|
switch (operationCode)
|
|
{
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
break;
|
|
default:
|
|
if (operationCode == 9)
|
|
{
|
|
this.LBHNKJDAMAD(IMDHCINGADG);
|
|
return;
|
|
}
|
|
break;
|
|
}
|
|
if (IMDHCINGADG.ReturnCode != 0 && this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
if (IMDHCINGADG.ReturnCode == 58)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.OFF, string.Format(" crash dumps", IMDHCINGADG.OperationCode));
|
|
}
|
|
else
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.OFF, string.Format("{0}v2/phone", IMDHCINGADG.OperationCode, IMDHCINGADG.ReturnCode, IMDHCINGADG.DebugMessage));
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC5D RID: 48221 RVA: 0x00386E80 File Offset: 0x00385080
|
|
public bool BIIGJFKEFHL(string[] KNMCLNDOLJO)
|
|
{
|
|
return this.BIIGJFKEFHL(KNMCLNDOLJO, 0);
|
|
}
|
|
|
|
// Token: 0x0600BC5E RID: 48222 RVA: 0x00386E8C File Offset: 0x0038508C
|
|
public bool LEGANNCDFNC(string ILINAFILMFB, out LBGAFBIECOC CMLBCIKJKCD)
|
|
{
|
|
bool flag = this.EMNCOFMPGHD.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
return flag || this.BELHMJCIEOG.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
}
|
|
|
|
// Token: 0x0600BC5F RID: 48223 RVA: 0x00386EC0 File Offset: 0x003850C0
|
|
public void FMOJKDEIGDJ(DebugLevel NOBAPCOKFIL)
|
|
{
|
|
this.JKCCMJEAGLI.DebugOut = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0600BC60 RID: 48224 RVA: 0x00386ED0 File Offset: 0x003850D0
|
|
public void FNINAFJOAIA()
|
|
{
|
|
if (this.FLPPBKJDCLE)
|
|
{
|
|
this.JKCCMJEAGLI.StopThread();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC61 RID: 48225 RVA: 0x00386EE8 File Offset: 0x003850E8
|
|
public bool PCOGEKJFCDO(string ILINAFILMFB, out LBGAFBIECOC CMLBCIKJKCD)
|
|
{
|
|
bool flag = this.EMNCOFMPGHD.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
return flag || this.BELHMJCIEOG.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
}
|
|
|
|
// Token: 0x0600BC63 RID: 48227 RVA: 0x00386F28 File Offset: 0x00385128
|
|
public bool NBILCKAGOLE(string ILINAFILMFB, bool AFAOIIDBHJJ, out LBGAFBIECOC CMLBCIKJKCD)
|
|
{
|
|
if (!AFAOIIDBHJJ)
|
|
{
|
|
return this.EMNCOFMPGHD.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
}
|
|
return this.BELHMJCIEOG.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
}
|
|
|
|
// Token: 0x0600BC64 RID: 48228 RVA: 0x00386F4C File Offset: 0x0038514C
|
|
private void GBCMKAMFGBH(StatusCode CBIONIJKCEP)
|
|
{
|
|
if (CBIONIJKCEP != (StatusCode)(-124))
|
|
{
|
|
if (CBIONIJKCEP != (StatusCode)104)
|
|
{
|
|
if (CBIONIJKCEP != (StatusCode)(-86))
|
|
{
|
|
if (CBIONIJKCEP == (StatusCode)(-31))
|
|
{
|
|
this.FBBMOMHACLA = (FOPPEPKIGJK)104;
|
|
this.JKCCMJEAGLI.Disconnect();
|
|
}
|
|
}
|
|
else if (!this.GJJEPCJBKBH)
|
|
{
|
|
this.GJJEPCJBKBH = this.JKCCMJEAGLI.HKENFPOADJK(this.HCOKFNGPDDJ(), this.CMMNAMAKDON(), this.BMKOJEKMPCF, this.FALGIDIFGKO);
|
|
if (!this.GJJEPCJBKBH && this.BMJAJDDCCMM >= DebugLevel.OFF)
|
|
{
|
|
((IPhotonPeerListener)this).DebugReturn(DebugLevel.OFF, "{0} - Failed to read Status Line! Retry is enabled, returning with false." + this.KKLFHDMBCKD());
|
|
}
|
|
}
|
|
}
|
|
else if (this.POHFEELDFOP() == FOPPEPKIGJK.DisconnectingFromNameServer)
|
|
{
|
|
this.CJFODEJCGOD();
|
|
}
|
|
else
|
|
{
|
|
this.FBBMOMHACLA = (FOPPEPKIGJK)(-20);
|
|
this.GJGPAJAGLLI.KHGFPALMDIF((FOPPEPKIGJK)15);
|
|
this.GJGPAJAGLLI.JEMJJCGHMPA();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (!this.JKCCMJEAGLI.GECFMLKMFHG())
|
|
{
|
|
this.JKCCMJEAGLI.EstablishEncryption();
|
|
}
|
|
else if (!this.GJJEPCJBKBH)
|
|
{
|
|
this.GJJEPCJBKBH = this.JKCCMJEAGLI.JBNCHIBGNGO(this.HCOKFNGPDDJ(), this.NJNMDNBKBOB(), this.BMKOJEKMPCF, this.FALGIDIFGKO);
|
|
if (!this.GJJEPCJBKBH && this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
((IPhotonPeerListener)this).DebugReturn(DebugLevel.OFF, "FULL_SCREEN_DESATURATION" + this.KECOEDEEDJD());
|
|
}
|
|
}
|
|
if (this.KKLFHDMBCKD() == FOPPEPKIGJK.Uninitialized)
|
|
{
|
|
this.BOOKHLKABHP(FOPPEPKIGJK.DisconnectingFromFrontEnd);
|
|
this.GJGPAJAGLLI.KHGFPALMDIF(this.KKLFHDMBCKD());
|
|
}
|
|
else if (this.POHFEELDFOP() == FOPPEPKIGJK.Authenticating)
|
|
{
|
|
this.CCPACFFNBLC();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC65 RID: 48229 RVA: 0x00387114 File Offset: 0x00385314
|
|
void IPhotonPeerListener.OnOperationResponse(OperationResponse IMDHCINGADG)
|
|
{
|
|
byte operationCode = IMDHCINGADG.OperationCode;
|
|
switch (operationCode)
|
|
{
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
break;
|
|
default:
|
|
if (operationCode == 230)
|
|
{
|
|
this.LBHNKJDAMAD(IMDHCINGADG);
|
|
return;
|
|
}
|
|
break;
|
|
}
|
|
if (IMDHCINGADG.ReturnCode != 0 && this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
if (IMDHCINGADG.ReturnCode == -2)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, string.Format("Chat Operation {0} unknown on server. Check your AppId and make sure it's for a Chat application.", IMDHCINGADG.OperationCode));
|
|
}
|
|
else
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, string.Format("Chat Operation {0} failed (Code: {1}). Debug Message: {2}", IMDHCINGADG.OperationCode, IMDHCINGADG.ReturnCode, IMDHCINGADG.DebugMessage));
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700047D RID: 1149
|
|
// (get) Token: 0x0600BC66 RID: 48230 RVA: 0x003871DC File Offset: 0x003853DC
|
|
// (set) Token: 0x0600BC6C RID: 48236 RVA: 0x00387364 File Offset: 0x00385564
|
|
public OMILLGGIHMO GKBLHGKNLID { get; private set; }
|
|
|
|
// Token: 0x0600BC67 RID: 48231 RVA: 0x003871E4 File Offset: 0x003853E4
|
|
public void LCLMOMNGDCD(string NOBAPCOKFIL)
|
|
{
|
|
this.BMKOJEKMPCF = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0600BC68 RID: 48232 RVA: 0x003871F0 File Offset: 0x003853F0
|
|
public bool NOBIALMDOFF(string[] JJDDPPKJGAG)
|
|
{
|
|
if (!this.PKPIBOMEAOP)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "AddFriends called while not connected to front end server.");
|
|
}
|
|
return false;
|
|
}
|
|
if (JJDDPPKJGAG == null || JJDDPPKJGAG.Length == 0)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.WARNING)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.WARNING, "AddFriends can't be called for empty or null list.");
|
|
}
|
|
return false;
|
|
}
|
|
if (JJDDPPKJGAG.Length > 1024)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.WARNING)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.WARNING, string.Concat(new object[] { "AddFriends max list size exceeded: ", JJDDPPKJGAG.Length, " > ", 1024 }));
|
|
}
|
|
return false;
|
|
}
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object> { { 11, JJDDPPKJGAG } };
|
|
return this.JKCCMJEAGLI.OpCustom(6, dictionary, true);
|
|
}
|
|
|
|
// Token: 0x0600BC69 RID: 48233 RVA: 0x003872D0 File Offset: 0x003854D0
|
|
void IPhotonPeerListener.DebugReturn(DebugLevel JOPHNBFKLCM, string NFAFJOMABOK)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(JOPHNBFKLCM, NFAFJOMABOK);
|
|
}
|
|
|
|
// Token: 0x17000483 RID: 1155
|
|
// (get) Token: 0x0600BC6A RID: 48234 RVA: 0x003872E0 File Offset: 0x003854E0
|
|
// (set) Token: 0x0600BC70 RID: 48240 RVA: 0x003873B4 File Offset: 0x003855B4
|
|
public string OCAHLHMIPMG
|
|
{
|
|
get
|
|
{
|
|
return (this.FALGIDIFGKO == null) ? null : this.FALGIDIFGKO.OCAHLHMIPMG;
|
|
}
|
|
private set
|
|
{
|
|
if (this.FALGIDIFGKO == null)
|
|
{
|
|
this.FALGIDIFGKO = new OCEOOCJEKDD();
|
|
}
|
|
this.FALGIDIFGKO.OCAHLHMIPMG = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC6B RID: 48235 RVA: 0x00387300 File Offset: 0x00385500
|
|
public NMBFHKBMOED(MEHBNOFHGOO GJGPAJAGLLI, ConnectionProtocol AGAMAAHGMIM = ConnectionProtocol.Udp)
|
|
{
|
|
this.GJGPAJAGLLI = GJGPAJAGLLI;
|
|
this.FBBMOMHACLA = FOPPEPKIGJK.Uninitialized;
|
|
this.JKCCMJEAGLI = new IJPLDNOJLMO(this, AGAMAAHGMIM);
|
|
this.EMNCOFMPGHD = new Dictionary<string, LBGAFBIECOC>();
|
|
this.BELHMJCIEOG = new Dictionary<string, LBGAFBIECOC>();
|
|
this.IJLHPGHHOCM = new HashSet<string>();
|
|
}
|
|
|
|
// Token: 0x0600BC6D RID: 48237 RVA: 0x00387370 File Offset: 0x00385570
|
|
private void PLENAOKALKL(string NOBAPCOKFIL)
|
|
{
|
|
this.<OEMFHEPBBDF>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0600BC6F RID: 48239 RVA: 0x0038738C File Offset: 0x0038558C
|
|
public void GENDDEPPEDM()
|
|
{
|
|
if (this.FLPPBKJDCLE && this.JKCCMJEAGLI.PeerState != PeerStateValue.Disconnected)
|
|
{
|
|
this.JKCCMJEAGLI.Disconnect();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC71 RID: 48241 RVA: 0x003873D8 File Offset: 0x003855D8
|
|
private bool FMAEABPEFKG()
|
|
{
|
|
while (this.FLPPBKJDCLE && this.JKCCMJEAGLI.SendOutgoingCommands())
|
|
{
|
|
}
|
|
return this.FBBMOMHACLA != FOPPEPKIGJK.Disconnected;
|
|
}
|
|
|
|
// Token: 0x0600BC72 RID: 48242 RVA: 0x00387408 File Offset: 0x00385608
|
|
public void EGKAOGDJCJA()
|
|
{
|
|
if (this.MKPCKBJHFLM() && this.JKCCMJEAGLI.PeerState != PeerStateValue.Disconnected)
|
|
{
|
|
this.JKCCMJEAGLI.Disconnect();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC73 RID: 48243 RVA: 0x00387430 File Offset: 0x00385630
|
|
public bool AKHDAFMEEOG(string ILINAFILMFB)
|
|
{
|
|
return this.PKPIBOMEAOP && this.EMNCOFMPGHD.ContainsKey(ILINAFILMFB) && !this.IJLHPGHHOCM.Contains(ILINAFILMFB);
|
|
}
|
|
|
|
// Token: 0x0600BC74 RID: 48244 RVA: 0x00387460 File Offset: 0x00385660
|
|
public bool LEGMHJDICHB(string ILINAFILMFB, out LBGAFBIECOC CMLBCIKJKCD)
|
|
{
|
|
bool flag = this.EMNCOFMPGHD.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
return !flag && this.BELHMJCIEOG.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
}
|
|
|
|
// Token: 0x0600BC75 RID: 48245 RVA: 0x00387494 File Offset: 0x00385694
|
|
internal bool HMHBBKGCFLP(string MMEBLCBANIL, object NFAFJOMABOK, bool GKPCDLGKIJA, bool NPGKNDONKPH = false)
|
|
{
|
|
return this.BNABJLJDPBP(MMEBLCBANIL, NFAFJOMABOK, GKPCDLGKIJA, false, NPGKNDONKPH);
|
|
}
|
|
|
|
// Token: 0x0600BC76 RID: 48246 RVA: 0x003874A4 File Offset: 0x003856A4
|
|
public bool JPDFBHAFBBC()
|
|
{
|
|
return this.POHFEELDFOP() != FOPPEPKIGJK.Authenticating || this.FLPPBKJDCLE;
|
|
}
|
|
|
|
// Token: 0x0600BC77 RID: 48247 RVA: 0x003874BC File Offset: 0x003856BC
|
|
public bool DDHICFAJADA(int GLEEPDCHHMM)
|
|
{
|
|
return this.DDHICFAJADA(GLEEPDCHHMM, null, true);
|
|
}
|
|
|
|
// Token: 0x1700047E RID: 1150
|
|
// (get) Token: 0x0600BC78 RID: 48248 RVA: 0x003874C8 File Offset: 0x003856C8
|
|
public bool PKPIBOMEAOP
|
|
{
|
|
get
|
|
{
|
|
return this.FBBMOMHACLA == FOPPEPKIGJK.ConnectedToFrontEnd && this.FLPPBKJDCLE;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC79 RID: 48249 RVA: 0x003874E0 File Offset: 0x003856E0
|
|
public FOPPEPKIGJK KKLFHDMBCKD()
|
|
{
|
|
return this.<CLOEANPAPII>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0600BC7A RID: 48250 RVA: 0x003874E8 File Offset: 0x003856E8
|
|
private void ACNGENHCOBD(OMILLGGIHMO NOBAPCOKFIL)
|
|
{
|
|
this.<HNBJJHLBNII>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0600BC7B RID: 48251 RVA: 0x003874F4 File Offset: 0x003856F4
|
|
public void BCIMHPNDOOL()
|
|
{
|
|
if (this.FLPPBKJDCLE && this.JKCCMJEAGLI.PeerState != PeerStateValue.Disconnected)
|
|
{
|
|
this.JKCCMJEAGLI.Disconnect();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC7C RID: 48252 RVA: 0x0038751C File Offset: 0x0038571C
|
|
private void LCEDNLCEDFI()
|
|
{
|
|
this.FBBMOMHACLA = FOPPEPKIGJK.ConnectingToFrontEnd;
|
|
if (this.BMJAJDDCCMM >= DebugLevel.INFO)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.INFO, "Connecting to frontend " + this.AMKIGIBPLMK);
|
|
}
|
|
this.JKCCMJEAGLI.Connect(this.AMKIGIBPLMK, "chat");
|
|
}
|
|
|
|
// Token: 0x0600BC7D RID: 48253 RVA: 0x00387570 File Offset: 0x00385770
|
|
private bool FFIJFAHIDEE(int GLEEPDCHHMM, object NFAFJOMABOK, bool PCALDENAGAJ)
|
|
{
|
|
if (!this.JPDFBHAFBBC())
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.OFF)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.OFF, "I LOVE MY GIRLz");
|
|
}
|
|
return false;
|
|
}
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object> {
|
|
{
|
|
(byte)(-120),
|
|
GLEEPDCHHMM
|
|
} };
|
|
if (PCALDENAGAJ)
|
|
{
|
|
dictionary[(byte)(-84)] = false;
|
|
}
|
|
else
|
|
{
|
|
dictionary[6] = NFAFJOMABOK;
|
|
}
|
|
return this.JKCCMJEAGLI.OpCustom(0, dictionary, false);
|
|
}
|
|
|
|
// Token: 0x1700047B RID: 1147
|
|
// (get) Token: 0x0600BC7E RID: 48254 RVA: 0x003875EC File Offset: 0x003857EC
|
|
// (set) Token: 0x0600BC7F RID: 48255 RVA: 0x003875F4 File Offset: 0x003857F4
|
|
public string DJNFKDNGLOJ
|
|
{
|
|
get
|
|
{
|
|
return this.BMKOJEKMPCF;
|
|
}
|
|
set
|
|
{
|
|
this.BMKOJEKMPCF = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC80 RID: 48256 RVA: 0x00387600 File Offset: 0x00385800
|
|
public bool OLPMBKNAEND(string[] KNMCLNDOLJO)
|
|
{
|
|
if (!this.JPDFBHAFBBC())
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.OFF)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.OFF, "jQuery");
|
|
}
|
|
return true;
|
|
}
|
|
if (KNMCLNDOLJO == null || KNMCLNDOLJO.Length == 0)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ALL)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.WARNING, "Ecommerce");
|
|
}
|
|
return false;
|
|
}
|
|
foreach (string text in KNMCLNDOLJO)
|
|
{
|
|
this.IJLHPGHHOCM.Add(text);
|
|
}
|
|
return this.CEEFAMABHKL(KNMCLNDOLJO, 0, 0);
|
|
}
|
|
|
|
// Token: 0x17000479 RID: 1145
|
|
// (get) Token: 0x0600BCA7 RID: 48295 RVA: 0x00388490 File Offset: 0x00386690
|
|
// (set) Token: 0x0600BC81 RID: 48257 RVA: 0x00387694 File Offset: 0x00385894
|
|
public string BPDCJGOMNCD { get; private set; }
|
|
|
|
// Token: 0x0600BC82 RID: 48258 RVA: 0x003876A0 File Offset: 0x003858A0
|
|
public bool JKMHMJAPOOD(string ILINAFILMFB)
|
|
{
|
|
return this.PKPIBOMEAOP && this.EMNCOFMPGHD.ContainsKey(ILINAFILMFB) && !this.IJLHPGHHOCM.Contains(ILINAFILMFB);
|
|
}
|
|
|
|
// Token: 0x0600BC83 RID: 48259 RVA: 0x003876D0 File Offset: 0x003858D0
|
|
private void LAKKLCIFCCP(EventData BNMDNNDLGDH)
|
|
{
|
|
object obj = BNMDNNDLGDH.Parameters[6];
|
|
string text = (string)BNMDNNDLGDH.Parameters[7];
|
|
string text3;
|
|
if (this.OCAHLHMIPMG != null && this.GJGDIAIJKDC().Equals(text))
|
|
{
|
|
string text2 = (string)BNMDNNDLGDH.Parameters[(byte)(-9)];
|
|
text3 = this.BEKJEEBMNJM(text2);
|
|
}
|
|
else
|
|
{
|
|
text3 = this.BEKJEEBMNJM(text);
|
|
}
|
|
LBGAFBIECOC lbgafbiecoc;
|
|
if (!this.BELHMJCIEOG.TryGetValue(text3, out lbgafbiecoc))
|
|
{
|
|
lbgafbiecoc = new LBGAFBIECOC(text3);
|
|
lbgafbiecoc.DCANDHFNGDG(true);
|
|
lbgafbiecoc.OPNONHKCELF = this.OPNONHKCELF;
|
|
this.BELHMJCIEOG.Add(lbgafbiecoc.GDIECAFDIMC, lbgafbiecoc);
|
|
}
|
|
lbgafbiecoc.DBAGOJCKDIM(text, obj);
|
|
this.GJGPAJAGLLI.BIJGNPLLGMD(text, obj, text3);
|
|
}
|
|
|
|
// Token: 0x17000481 RID: 1153
|
|
// (get) Token: 0x0600BC86 RID: 48262 RVA: 0x003877CC File Offset: 0x003859CC
|
|
// (set) Token: 0x0600BC84 RID: 48260 RVA: 0x003877A0 File Offset: 0x003859A0
|
|
public string FFHFHKHJFOI { get; private set; }
|
|
|
|
// Token: 0x0600BC85 RID: 48261 RVA: 0x003877AC File Offset: 0x003859AC
|
|
public string CDBBFAENAIK()
|
|
{
|
|
return (this.FALGIDIFGKO == null) ? null : this.FALGIDIFGKO.GJIKNLPHKDB();
|
|
}
|
|
|
|
// Token: 0x0600BC87 RID: 48263 RVA: 0x003877D4 File Offset: 0x003859D4
|
|
private void EEKHIIPBCNG(OperationResponse IMDHCINGADG)
|
|
{
|
|
if (this.BMJAJDDCCMM >= (DebugLevel)4)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.WARNING, IMDHCINGADG.ToStringFull() + "CachedView Master Objects" + this.JKCCMJEAGLI.HDPDEHBLDJK());
|
|
}
|
|
if (IMDHCINGADG.ReturnCode == 0)
|
|
{
|
|
if (this.POHFEELDFOP() == FOPPEPKIGJK.ConnectingToFrontEnd)
|
|
{
|
|
this.BOOKHLKABHP(FOPPEPKIGJK.DisconnectingFromNameServer);
|
|
this.GJGPAJAGLLI.KHGFPALMDIF(this.KECOEDEEDJD());
|
|
if (IMDHCINGADG.Parameters.ContainsKey((byte)(-68)))
|
|
{
|
|
if (this.FALGIDIFGKO == null)
|
|
{
|
|
this.FALGIDIFGKO = new OCEOOCJEKDD();
|
|
}
|
|
this.FALGIDIFGKO.BHICKBPMFGJ(IMDHCINGADG[(byte)(-115)] as string);
|
|
this.COJMBBMFPBA((string)IMDHCINGADG[152]);
|
|
this.JKCCMJEAGLI.Disconnect();
|
|
}
|
|
else if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "ROOM");
|
|
}
|
|
}
|
|
else if (this.POHFEELDFOP() == FOPPEPKIGJK.ConnectedToNameServer)
|
|
{
|
|
this.BOOKHLKABHP(FOPPEPKIGJK.Authenticating);
|
|
this.GJGPAJAGLLI.KHGFPALMDIF(this.KECOEDEEDJD());
|
|
this.GJGPAJAGLLI.GKNLEICFAIP();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
short returnCode = IMDHCINGADG.ReturnCode;
|
|
switch (returnCode)
|
|
{
|
|
case 0:
|
|
this.GKBLHGKNLID = (OMILLGGIHMO)87;
|
|
break;
|
|
case 1:
|
|
this.ACNGENHCOBD(OMILLGGIHMO.InvalidAuthentication);
|
|
break;
|
|
case 2:
|
|
this.GKBLHGKNLID = OMILLGGIHMO.TimeoutDisconnect;
|
|
break;
|
|
default:
|
|
if (returnCode != -83)
|
|
{
|
|
if (returnCode == -73)
|
|
{
|
|
this.ACNGENHCOBD(OMILLGGIHMO.DisconnectByServerUserLimit);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.ACNGENHCOBD((OMILLGGIHMO)114);
|
|
}
|
|
break;
|
|
}
|
|
if (this.BMJAJDDCCMM >= DebugLevel.OFF)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "crash_dumps_found" + IMDHCINGADG.ReturnCode + "LogStats");
|
|
}
|
|
this.BOOKHLKABHP((FOPPEPKIGJK)(-105));
|
|
this.JKCCMJEAGLI.Disconnect();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC88 RID: 48264 RVA: 0x003879C0 File Offset: 0x00385BC0
|
|
public bool CKJCOEOOMDK(int GLEEPDCHHMM, object NFAFJOMABOK)
|
|
{
|
|
return this.ADJPGPBEFAB(GLEEPDCHHMM, NFAFJOMABOK, false);
|
|
}
|
|
|
|
// Token: 0x0600BC89 RID: 48265 RVA: 0x003879CC File Offset: 0x00385BCC
|
|
internal bool IHBNBPHLAGO(string ILINAFILMFB, object NFAFJOMABOK, bool NPGKNDONKPH = false)
|
|
{
|
|
return this.HKDAJNNIFED(ILINAFILMFB, NFAFJOMABOK, false, NPGKNDONKPH);
|
|
}
|
|
|
|
// Token: 0x0600BC8A RID: 48266 RVA: 0x003879D8 File Offset: 0x00385BD8
|
|
private bool CCPACFFNBLC()
|
|
{
|
|
if (this.FALGIDIFGKO == null)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "Can't authenticate on front end server. Authentication Values are not set");
|
|
}
|
|
return false;
|
|
}
|
|
if (this.FALGIDIFGKO.NKFLBAKCPLA == null || this.FALGIDIFGKO.NKFLBAKCPLA == string.Empty)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "Can't authenticate on front end server. Secret is not set");
|
|
}
|
|
return false;
|
|
}
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object> {
|
|
{
|
|
221,
|
|
this.FALGIDIFGKO.NKFLBAKCPLA
|
|
} };
|
|
return this.JKCCMJEAGLI.OpCustom(230, dictionary, true);
|
|
}
|
|
|
|
// Token: 0x0600BC8B RID: 48267 RVA: 0x00387A88 File Offset: 0x00385C88
|
|
private bool BNABJLJDPBP(string MMEBLCBANIL, object NFAFJOMABOK, bool GKPCDLGKIJA, bool DGKMNJJABFC, bool NPGKNDONKPH = false)
|
|
{
|
|
if (!this.PKPIBOMEAOP)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "SendPrivateMessage called while not connected to front end server.");
|
|
}
|
|
return false;
|
|
}
|
|
if (string.IsNullOrEmpty(MMEBLCBANIL) || NFAFJOMABOK == null)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.WARNING)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.WARNING, "SendPrivateMessage parameters must be non-null and not empty.");
|
|
}
|
|
return false;
|
|
}
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object>
|
|
{
|
|
{ 225, MMEBLCBANIL },
|
|
{ 3, NFAFJOMABOK }
|
|
};
|
|
if (NPGKNDONKPH)
|
|
{
|
|
dictionary.Add(21, 1);
|
|
}
|
|
return this.JKCCMJEAGLI.OpCustom(3, dictionary, DGKMNJJABFC, 0, GKPCDLGKIJA);
|
|
}
|
|
|
|
// Token: 0x0600BC8C RID: 48268 RVA: 0x00387B34 File Offset: 0x00385D34
|
|
public bool NHHBNCKICGL(string MCOFHNPOEDN, string DNGHIIFIDHA, OCEOOCJEKDD OPHMFNLINBP)
|
|
{
|
|
this.JKCCMJEAGLI.TimePingInterval = 3000;
|
|
this.GKBLHGKNLID = OMILLGGIHMO.None;
|
|
if (OPHMFNLINBP == null)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "Connect failed: no authentication values specified");
|
|
}
|
|
return false;
|
|
}
|
|
this.FALGIDIFGKO = OPHMFNLINBP;
|
|
if (string.IsNullOrEmpty(this.FALGIDIFGKO.OCAHLHMIPMG))
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "Connect failed: no UserId specified in authentication values.");
|
|
}
|
|
return false;
|
|
}
|
|
this.FFHFHKHJFOI = MCOFHNPOEDN;
|
|
this.JHDCHFCLFFH = DNGHIIFIDHA;
|
|
this.GJJEPCJBKBH = false;
|
|
this.JKCCMJEAGLI.QuickResendAttempts = 2;
|
|
this.JKCCMJEAGLI.SentCountAllowance = 7;
|
|
this.EMNCOFMPGHD.Clear();
|
|
this.BELHMJCIEOG.Clear();
|
|
this.IJLHPGHHOCM.Clear();
|
|
this.BPDCJGOMNCD = this.JKCCMJEAGLI.BPDCJGOMNCD;
|
|
bool flag = this.JKCCMJEAGLI.NHHBNCKICGL();
|
|
if (flag)
|
|
{
|
|
this.FBBMOMHACLA = FOPPEPKIGJK.ConnectingToNameServer;
|
|
}
|
|
if (this.LCMNDFALPEE)
|
|
{
|
|
SupportClass.StartBackgroundCalls(new Func<bool>(this.FMAEABPEFKG), this.POGJOLABDLN, "ChatClient Service Thread");
|
|
}
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x0600BC8D RID: 48269 RVA: 0x00387C60 File Offset: 0x00385E60
|
|
private void OLBICHGAIKK(EventData BNMDNNDLGDH)
|
|
{
|
|
object obj = BNMDNNDLGDH.Parameters[3];
|
|
string text = (string)BNMDNNDLGDH.Parameters[5];
|
|
string text3;
|
|
if (this.OCAHLHMIPMG != null && this.OCAHLHMIPMG.Equals(text))
|
|
{
|
|
string text2 = (string)BNMDNNDLGDH.Parameters[225];
|
|
text3 = this.BEKJEEBMNJM(text2);
|
|
}
|
|
else
|
|
{
|
|
text3 = this.BEKJEEBMNJM(text);
|
|
}
|
|
LBGAFBIECOC lbgafbiecoc;
|
|
if (!this.BELHMJCIEOG.TryGetValue(text3, out lbgafbiecoc))
|
|
{
|
|
lbgafbiecoc = new LBGAFBIECOC(text3);
|
|
lbgafbiecoc.KOMLIDCKNJA = true;
|
|
lbgafbiecoc.OPNONHKCELF = this.OPNONHKCELF;
|
|
this.BELHMJCIEOG.Add(lbgafbiecoc.GDIECAFDIMC, lbgafbiecoc);
|
|
}
|
|
lbgafbiecoc.OPJKMCEACMD(text, obj);
|
|
this.GJGPAJAGLLI.BIJGNPLLGMD(text, obj, text3);
|
|
}
|
|
|
|
// Token: 0x0600BC8E RID: 48270 RVA: 0x00387D30 File Offset: 0x00385F30
|
|
private bool DGEFCBBKPEC()
|
|
{
|
|
while (this.MKPCKBJHFLM() && this.JKCCMJEAGLI.SendOutgoingCommands())
|
|
{
|
|
}
|
|
return this.KKLFHDMBCKD() != (FOPPEPKIGJK)(-46);
|
|
}
|
|
|
|
// Token: 0x0600BC8F RID: 48271 RVA: 0x00387D60 File Offset: 0x00385F60
|
|
public void CIGKJBNAHIO()
|
|
{
|
|
if (this.MKPCKBJHFLM() && this.JKCCMJEAGLI.PeerState != PeerStateValue.Disconnected)
|
|
{
|
|
this.JKCCMJEAGLI.Disconnect();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC90 RID: 48272 RVA: 0x00387D88 File Offset: 0x00385F88
|
|
private bool DDHICFAJADA(int GLEEPDCHHMM, object NFAFJOMABOK, bool PCALDENAGAJ)
|
|
{
|
|
if (!this.PKPIBOMEAOP)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, "SetOnlineStatus called while not connected to front end server.");
|
|
}
|
|
return false;
|
|
}
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object> { { 10, GLEEPDCHHMM } };
|
|
if (PCALDENAGAJ)
|
|
{
|
|
dictionary[12] = true;
|
|
}
|
|
else
|
|
{
|
|
dictionary[3] = NFAFJOMABOK;
|
|
}
|
|
return this.JKCCMJEAGLI.OpCustom(5, dictionary, true);
|
|
}
|
|
|
|
// Token: 0x0600BC91 RID: 48273 RVA: 0x00387E04 File Offset: 0x00386004
|
|
private void CJFODEJCGOD()
|
|
{
|
|
this.BOOKHLKABHP(FOPPEPKIGJK.DisconnectingFromNameServer);
|
|
if (this.BMJAJDDCCMM >= DebugLevel.INFO)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC((DebugLevel)7, "Highlighted" + this.AMKIGIBPLMK);
|
|
}
|
|
this.JKCCMJEAGLI.Connect(this.AMKIGIBPLMK, "ZWNyb29tLlRvb2xIb2xkZXJEYXRhEjcKE3JlbW90ZV9jb250cm9sX2RhdGEY");
|
|
}
|
|
|
|
// Token: 0x17000484 RID: 1156
|
|
// (get) Token: 0x0600BC92 RID: 48274 RVA: 0x00387E58 File Offset: 0x00386058
|
|
// (set) Token: 0x0600BC97 RID: 48279 RVA: 0x003880A0 File Offset: 0x003862A0
|
|
public bool LCMNDFALPEE { get; set; }
|
|
|
|
// Token: 0x0600BC93 RID: 48275 RVA: 0x00387E60 File Offset: 0x00386060
|
|
void IPhotonPeerListener.OnStatusChanged(StatusCode CBIONIJKCEP)
|
|
{
|
|
if (CBIONIJKCEP != StatusCode.Connect)
|
|
{
|
|
if (CBIONIJKCEP != StatusCode.Disconnect)
|
|
{
|
|
if (CBIONIJKCEP != StatusCode.EncryptionEstablished)
|
|
{
|
|
if (CBIONIJKCEP == StatusCode.EncryptionFailedToEstablish)
|
|
{
|
|
this.FBBMOMHACLA = FOPPEPKIGJK.Disconnecting;
|
|
this.JKCCMJEAGLI.Disconnect();
|
|
}
|
|
}
|
|
else if (!this.GJJEPCJBKBH)
|
|
{
|
|
this.GJJEPCJBKBH = this.JKCCMJEAGLI.FAFNBOFBPBE(this.FFHFHKHJFOI, this.JHDCHFCLFFH, this.BMKOJEKMPCF, this.FALGIDIFGKO);
|
|
if (!this.GJJEPCJBKBH && this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
((IPhotonPeerListener)this).DebugReturn(DebugLevel.ERROR, "Error calling OpAuthenticate! Did not work. Check log output, AuthValues and if you're connected. State: " + this.FBBMOMHACLA);
|
|
}
|
|
}
|
|
}
|
|
else if (this.FBBMOMHACLA == FOPPEPKIGJK.Authenticated)
|
|
{
|
|
this.LCEDNLCEDFI();
|
|
}
|
|
else
|
|
{
|
|
this.FBBMOMHACLA = FOPPEPKIGJK.Disconnected;
|
|
this.GJGPAJAGLLI.KHGFPALMDIF(FOPPEPKIGJK.Disconnected);
|
|
this.GJGPAJAGLLI.JEMJJCGHMPA();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (!this.JKCCMJEAGLI.IOFBCEAKFGH)
|
|
{
|
|
this.JKCCMJEAGLI.EstablishEncryption();
|
|
}
|
|
else if (!this.GJJEPCJBKBH)
|
|
{
|
|
this.GJJEPCJBKBH = this.JKCCMJEAGLI.FAFNBOFBPBE(this.FFHFHKHJFOI, this.JHDCHFCLFFH, this.BMKOJEKMPCF, this.FALGIDIFGKO);
|
|
if (!this.GJJEPCJBKBH && this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
((IPhotonPeerListener)this).DebugReturn(DebugLevel.ERROR, "Error calling OpAuthenticate! Did not work. Check log output, AuthValues and if you're connected. State: " + this.FBBMOMHACLA);
|
|
}
|
|
}
|
|
if (this.FBBMOMHACLA == FOPPEPKIGJK.ConnectingToNameServer)
|
|
{
|
|
this.FBBMOMHACLA = FOPPEPKIGJK.ConnectedToNameServer;
|
|
this.GJGPAJAGLLI.KHGFPALMDIF(this.FBBMOMHACLA);
|
|
}
|
|
else if (this.FBBMOMHACLA == FOPPEPKIGJK.ConnectingToFrontEnd)
|
|
{
|
|
this.CCPACFFNBLC();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC94 RID: 48276 RVA: 0x00388028 File Offset: 0x00386228
|
|
public string NJNMDNBKBOB()
|
|
{
|
|
return this.<HICMGBNGFOA>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x1700047A RID: 1146
|
|
// (get) Token: 0x0600BC99 RID: 48281 RVA: 0x003880C4 File Offset: 0x003862C4
|
|
// (set) Token: 0x0600BC95 RID: 48277 RVA: 0x00388030 File Offset: 0x00386230
|
|
public string AMKIGIBPLMK { get; private set; }
|
|
|
|
// Token: 0x0600BC96 RID: 48278 RVA: 0x0038803C File Offset: 0x0038623C
|
|
private void OOGFJIHONGC(EventData BNMDNNDLGDH)
|
|
{
|
|
string text = (string)BNMDNNDLGDH.Parameters[5];
|
|
int num = (int)BNMDNNDLGDH.Parameters[10];
|
|
object obj = null;
|
|
bool flag = BNMDNNDLGDH.Parameters.ContainsKey(3);
|
|
if (flag)
|
|
{
|
|
obj = BNMDNNDLGDH.Parameters[3];
|
|
}
|
|
this.GJGPAJAGLLI.GIAHEDOIIKP(text, num, flag, obj);
|
|
}
|
|
|
|
// Token: 0x0600BC98 RID: 48280 RVA: 0x003880AC File Offset: 0x003862AC
|
|
public void DFAJOKOIOHA()
|
|
{
|
|
if (this.FLPPBKJDCLE)
|
|
{
|
|
this.JKCCMJEAGLI.StopThread();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC9A RID: 48282 RVA: 0x003880CC File Offset: 0x003862CC
|
|
public bool DOOPIBNBBBH(string ILINAFILMFB, object NFAFJOMABOK, bool NPGKNDONKPH = false)
|
|
{
|
|
return this.HKDAJNNIFED(ILINAFILMFB, NFAFJOMABOK, true, NPGKNDONKPH);
|
|
}
|
|
|
|
// Token: 0x0600BC9B RID: 48283 RVA: 0x003880D8 File Offset: 0x003862D8
|
|
public FOPPEPKIGJK POHFEELDFOP()
|
|
{
|
|
return this.<CLOEANPAPII>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0600BC9C RID: 48284 RVA: 0x003880E0 File Offset: 0x003862E0
|
|
public bool DDHICFAJADA(int GLEEPDCHHMM, object NFAFJOMABOK)
|
|
{
|
|
return this.DDHICFAJADA(GLEEPDCHHMM, NFAFJOMABOK, false);
|
|
}
|
|
|
|
// Token: 0x0600BC9D RID: 48285 RVA: 0x003880EC File Offset: 0x003862EC
|
|
public string BEKJEEBMNJM(string BIDLKPHAIPK)
|
|
{
|
|
return string.Format("{0}:{1}", this.OCAHLHMIPMG, BIDLKPHAIPK);
|
|
}
|
|
|
|
// Token: 0x0600BC9E RID: 48286 RVA: 0x00388100 File Offset: 0x00386300
|
|
private void OLHEKDAFEOC(StatusCode CBIONIJKCEP)
|
|
{
|
|
if (CBIONIJKCEP != (StatusCode)151)
|
|
{
|
|
if (CBIONIJKCEP != (StatusCode)59)
|
|
{
|
|
if (CBIONIJKCEP != (StatusCode)(-102))
|
|
{
|
|
if (CBIONIJKCEP == (StatusCode)5)
|
|
{
|
|
this.FBBMOMHACLA = (FOPPEPKIGJK)115;
|
|
this.JKCCMJEAGLI.Disconnect();
|
|
}
|
|
}
|
|
else if (!this.GJJEPCJBKBH)
|
|
{
|
|
this.GJJEPCJBKBH = this.JKCCMJEAGLI.BDFCPKAKOLK(this.OIEMPFDNFJI(), this.JHDCHFCLFFH, this.BMKOJEKMPCF, this.FALGIDIFGKO);
|
|
if (!this.GJJEPCJBKBH && this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
((IPhotonPeerListener)this).DebugReturn(DebugLevel.ERROR, "amount" + this.KECOEDEEDJD());
|
|
}
|
|
}
|
|
}
|
|
else if (this.KECOEDEEDJD() == FOPPEPKIGJK.ConnectingToFrontEnd)
|
|
{
|
|
this.NENCONKDJHB();
|
|
}
|
|
else
|
|
{
|
|
this.FBBMOMHACLA = (FOPPEPKIGJK)(-109);
|
|
this.GJGPAJAGLLI.KHGFPALMDIF((FOPPEPKIGJK)91);
|
|
this.GJGPAJAGLLI.JEMJJCGHMPA();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (!this.JKCCMJEAGLI.JENEJOIEDCD())
|
|
{
|
|
this.JKCCMJEAGLI.EstablishEncryption();
|
|
}
|
|
else if (!this.GJJEPCJBKBH)
|
|
{
|
|
this.GJJEPCJBKBH = this.JKCCMJEAGLI.AGNBFOJCGEA(this.FFHFHKHJFOI, this.NJNMDNBKBOB(), this.BMKOJEKMPCF, this.FALGIDIFGKO);
|
|
if (!this.GJJEPCJBKBH && this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
((IPhotonPeerListener)this).DebugReturn(DebugLevel.OFF, "__b" + this.POHFEELDFOP());
|
|
}
|
|
}
|
|
if (this.FBBMOMHACLA == FOPPEPKIGJK.ConnectingToNameServer)
|
|
{
|
|
this.FBBMOMHACLA = FOPPEPKIGJK.ConnectingToNameServer;
|
|
this.GJGPAJAGLLI.KHGFPALMDIF(this.KKLFHDMBCKD());
|
|
}
|
|
else if (this.FBBMOMHACLA == FOPPEPKIGJK.Authenticating)
|
|
{
|
|
this.CCPACFFNBLC();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BC9F RID: 48287 RVA: 0x003882C8 File Offset: 0x003864C8
|
|
private bool NIFPAECGDMO(string MMEBLCBANIL, object NFAFJOMABOK, bool GKPCDLGKIJA, bool DGKMNJJABFC, bool NPGKNDONKPH = false)
|
|
{
|
|
if (!this.PKPIBOMEAOP)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.ERROR)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC(DebugLevel.ERROR, " [WITH YOU]");
|
|
}
|
|
return false;
|
|
}
|
|
if (string.IsNullOrEmpty(MMEBLCBANIL) || NFAFJOMABOK == null)
|
|
{
|
|
if (this.BMJAJDDCCMM >= DebugLevel.OFF)
|
|
{
|
|
this.GJGPAJAGLLI.LJKOLFAGLKC((DebugLevel)7, "type");
|
|
}
|
|
return true;
|
|
}
|
|
Dictionary<byte, object> dictionary = new Dictionary<byte, object>
|
|
{
|
|
{
|
|
(byte)(-100),
|
|
MMEBLCBANIL
|
|
},
|
|
{ 1, NFAFJOMABOK }
|
|
};
|
|
if (NPGKNDONKPH)
|
|
{
|
|
dictionary.Add((byte)(-88), 1);
|
|
}
|
|
return this.JKCCMJEAGLI.OpCustom(0, dictionary, DGKMNJJABFC, 1, GKPCDLGKIJA);
|
|
}
|
|
|
|
// Token: 0x0600BCA0 RID: 48288 RVA: 0x00388374 File Offset: 0x00386574
|
|
public string HCOKFNGPDDJ()
|
|
{
|
|
return this.<NBOGOLGNDAJ>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0600BCA1 RID: 48289 RVA: 0x0038837C File Offset: 0x0038657C
|
|
public bool ADAGBMIDMKA(string[] KNMCLNDOLJO)
|
|
{
|
|
return this.ICOGDIJNGCD(KNMCLNDOLJO, 1);
|
|
}
|
|
|
|
// Token: 0x0600BCA2 RID: 48290 RVA: 0x00388388 File Offset: 0x00386588
|
|
[Obsolete("Better use UseBackgroundWorkerForSending and Service().")]
|
|
public void JOPLPNFNLID()
|
|
{
|
|
if (this.FLPPBKJDCLE)
|
|
{
|
|
this.JKCCMJEAGLI.SendAcksOnly();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BCA3 RID: 48291 RVA: 0x003883A4 File Offset: 0x003865A4
|
|
private void ADDFMKELPFC(EventData BNMDNNDLGDH)
|
|
{
|
|
string[] array = (string[])BNMDNNDLGDH.Parameters[0];
|
|
bool[] array2 = (bool[])BNMDNNDLGDH.Parameters[15];
|
|
for (int i = 0; i < array.Length; i++)
|
|
{
|
|
if (array2[i])
|
|
{
|
|
string text = array[i];
|
|
if (!this.EMNCOFMPGHD.ContainsKey(text))
|
|
{
|
|
LBGAFBIECOC lbgafbiecoc = new LBGAFBIECOC(text);
|
|
lbgafbiecoc.OPNONHKCELF = this.OPNONHKCELF;
|
|
this.EMNCOFMPGHD.Add(lbgafbiecoc.GDIECAFDIMC, lbgafbiecoc);
|
|
}
|
|
}
|
|
}
|
|
this.GJGPAJAGLLI.PNDFNFCNJCG(array, array2);
|
|
}
|
|
|
|
// Token: 0x0600BCA4 RID: 48292 RVA: 0x00388440 File Offset: 0x00386640
|
|
public bool KJAGDAIBGAF(string MMEBLCBANIL, object NFAFJOMABOK, bool GKPCDLGKIJA, bool NPGKNDONKPH)
|
|
{
|
|
return this.BNABJLJDPBP(MMEBLCBANIL, NFAFJOMABOK, GKPCDLGKIJA, true, NPGKNDONKPH);
|
|
}
|
|
|
|
// Token: 0x0600BCA5 RID: 48293 RVA: 0x00388450 File Offset: 0x00386650
|
|
public void EJJADDDEPFF()
|
|
{
|
|
if (this.FLPPBKJDCLE)
|
|
{
|
|
this.JKCCMJEAGLI.SendAcksOnly();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BCA6 RID: 48294 RVA: 0x0038846C File Offset: 0x0038666C
|
|
public bool KLKLHDBHDAK(string ILINAFILMFB, bool AFAOIIDBHJJ, out LBGAFBIECOC CMLBCIKJKCD)
|
|
{
|
|
if (!AFAOIIDBHJJ)
|
|
{
|
|
return this.EMNCOFMPGHD.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
}
|
|
return this.BELHMJCIEOG.TryGetValue(ILINAFILMFB, out CMLBCIKJKCD);
|
|
}
|
|
|
|
// Token: 0x0600BCA8 RID: 48296 RVA: 0x00388498 File Offset: 0x00386698
|
|
public bool KJAGDAIBGAF(string MMEBLCBANIL, object NFAFJOMABOK, bool NPGKNDONKPH = false)
|
|
{
|
|
return this.KJAGDAIBGAF(MMEBLCBANIL, NFAFJOMABOK, false, NPGKNDONKPH);
|
|
}
|
|
|
|
// Token: 0x04001962 RID: 6498
|
|
private const int IIJBEIMFLMB = 1024;
|
|
|
|
// Token: 0x04001965 RID: 6501
|
|
private string BMKOJEKMPCF = "EU";
|
|
|
|
// Token: 0x0400196B RID: 6507
|
|
public int OPNONHKCELF;
|
|
|
|
// Token: 0x0400196C RID: 6508
|
|
public readonly Dictionary<string, LBGAFBIECOC> EMNCOFMPGHD;
|
|
|
|
// Token: 0x0400196D RID: 6509
|
|
public readonly Dictionary<string, LBGAFBIECOC> BELHMJCIEOG;
|
|
|
|
// Token: 0x0400196E RID: 6510
|
|
private readonly HashSet<string> IJLHPGHHOCM;
|
|
|
|
// Token: 0x0400196F RID: 6511
|
|
private readonly MEHBNOFHGOO GJGPAJAGLLI;
|
|
|
|
// Token: 0x04001970 RID: 6512
|
|
public IJPLDNOJLMO JKCCMJEAGLI;
|
|
|
|
// Token: 0x04001971 RID: 6513
|
|
private const string GACDJHDCNDH = "chat";
|
|
|
|
// Token: 0x04001972 RID: 6514
|
|
private bool GJJEPCJBKBH;
|
|
|
|
// Token: 0x04001973 RID: 6515
|
|
private int POGJOLABDLN = 50;
|
|
|
|
// Token: 0x04001974 RID: 6516
|
|
private int ICBBEEGGELH;
|
|
}
|
|
}
|