scripts
This commit is contained in:
@@ -0,0 +1,853 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using AmplitudeAnalytics;
|
||||
using AmplitudeMiniJSON;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000ECB RID: 3787
|
||||
public class SplitTesting : SingletonMonoBehaviour<SplitTesting>
|
||||
{
|
||||
// Token: 0x0601F605 RID: 128517 RVA: 0x0088C7CC File Offset: 0x0088A9CC
|
||||
private static Dictionary<string, string> PGIHKKHMKLB(string AOAILGGFDHJ)
|
||||
{
|
||||
if (string.IsNullOrEmpty(AOAILGGFDHJ))
|
||||
{
|
||||
return new Dictionary<string, string>();
|
||||
}
|
||||
int num = -1;
|
||||
string text = null;
|
||||
int num2 = AOAILGGFDHJ.IndexOf((char)(-112));
|
||||
if (num2 >= 0)
|
||||
{
|
||||
text = AOAILGGFDHJ.Substring(num2 + 1);
|
||||
string text2 = AOAILGGFDHJ.Substring(0, num2);
|
||||
if (!int.TryParse(text2, out num))
|
||||
{
|
||||
num = -1;
|
||||
}
|
||||
}
|
||||
if (num != 1)
|
||||
{
|
||||
string text3 = "y";
|
||||
object[] array = new object[0];
|
||||
array[0] = num;
|
||||
array[1] = AOAILGGFDHJ;
|
||||
Debug.LogErrorFormat(text3, array);
|
||||
return new Dictionary<string, string>();
|
||||
}
|
||||
return SplitTesting.DFIKJIMNNBH(text);
|
||||
}
|
||||
|
||||
// Token: 0x0601F606 RID: 128518 RVA: 0x0088C85C File Offset: 0x0088AA5C
|
||||
public void CEGELODKLLL(string[] JHKFMFICNHP)
|
||||
{
|
||||
if (JHKFMFICNHP == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
foreach (string text in JHKFMFICNHP)
|
||||
{
|
||||
string text2 = null;
|
||||
string text3 = null;
|
||||
if (this.ELOMEIAODKP(text, out text2, out text3))
|
||||
{
|
||||
string text4 = "FQoNdGVhbV9vdmVycmlkZRgDIAEoEUITqgIQUmVjUm9vbS5Qcm90b2J1ZmIG";
|
||||
object[] array = new object[7];
|
||||
array[1] = text;
|
||||
array[0] = text2;
|
||||
array[4] = text3;
|
||||
Debug.LogFormat(text4, array);
|
||||
if (this.ANFBNAJGFOB.ContainsKey(text2))
|
||||
{
|
||||
this.ANFBNAJGFOB[text2] = text3;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ANFBNAJGFOB.Add(text2, text3);
|
||||
}
|
||||
AmplitudeAnalyticsClient.EMBNKHEIAEF().JOKGPCCBMGD(text2, text3).PFNEDMJJALA();
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogFormat("{0}{1}", new object[] { text });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601F607 RID: 128519 RVA: 0x0088C914 File Offset: 0x0088AB14
|
||||
private bool EFLNPIHCHOB(string JJLMFHGNBJM, out string DIPLJEEPKFJ, out string JAEPCONLJKN)
|
||||
{
|
||||
JJLMFHGNBJM = JJLMFHGNBJM.ToLower();
|
||||
foreach (string text in this.JJIAGANEJGK.Keys)
|
||||
{
|
||||
List<string> list = this.JJIAGANEJGK[text];
|
||||
foreach (string text2 in list)
|
||||
{
|
||||
if (text2.ToLower() == JJLMFHGNBJM)
|
||||
{
|
||||
DIPLJEEPKFJ = text;
|
||||
JAEPCONLJKN = text2;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
DIPLJEEPKFJ = null;
|
||||
JAEPCONLJKN = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x0601F608 RID: 128520 RVA: 0x0088C9EC File Offset: 0x0088ABEC
|
||||
private void NFCMCKBHIPM(string GPELAKDCFJM, List<string> HNCMBJFBGON)
|
||||
{
|
||||
this.JJIAGANEJGK.Add(GPELAKDCFJM, HNCMBJFBGON);
|
||||
}
|
||||
|
||||
// Token: 0x0601F609 RID: 128521 RVA: 0x0088C9FC File Offset: 0x0088ABFC
|
||||
private bool MNEBDOGPIIB(string GPELAKDCFJM, string HNAPCOIBBNG)
|
||||
{
|
||||
return this.OPCNLIEHCEK(GPELAKDCFJM) && this.JJIAGANEJGK[GPELAKDCFJM].Contains(HNAPCOIBBNG);
|
||||
}
|
||||
|
||||
// Token: 0x0601F60A RID: 128522 RVA: 0x0088CA28 File Offset: 0x0088AC28
|
||||
private bool IJJLOEEECCP(string GPELAKDCFJM)
|
||||
{
|
||||
return this.JJIAGANEJGK.ContainsKey(GPELAKDCFJM);
|
||||
}
|
||||
|
||||
// Token: 0x0601F60B RID: 128523 RVA: 0x0088CA38 File Offset: 0x0088AC38
|
||||
private bool NKFMEIACNOI(string JJLMFHGNBJM, out string DIPLJEEPKFJ, out string JAEPCONLJKN)
|
||||
{
|
||||
JJLMFHGNBJM = JJLMFHGNBJM.ToLower();
|
||||
foreach (string text in this.JJIAGANEJGK.Keys)
|
||||
{
|
||||
List<string> list = this.JJIAGANEJGK[text];
|
||||
foreach (string text2 in list)
|
||||
{
|
||||
if (text2.ToLower() == JJLMFHGNBJM)
|
||||
{
|
||||
DIPLJEEPKFJ = text;
|
||||
JAEPCONLJKN = text2;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
DIPLJEEPKFJ = null;
|
||||
JAEPCONLJKN = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x0601F60C RID: 128524 RVA: 0x0088CB10 File Offset: 0x0088AD10
|
||||
private bool FFCHCOGGNON(string GPELAKDCFJM, string HNAPCOIBBNG)
|
||||
{
|
||||
return !this.OPCNLIEHCEK(GPELAKDCFJM) || (!this.JJIAGANEJGK[GPELAKDCFJM].Contains(HNAPCOIBBNG) && false);
|
||||
}
|
||||
|
||||
// Token: 0x0601F60D RID: 128525 RVA: 0x0088CB3C File Offset: 0x0088AD3C
|
||||
private bool ELOMEIAODKP(string JJLMFHGNBJM, out string DIPLJEEPKFJ, out string JAEPCONLJKN)
|
||||
{
|
||||
JJLMFHGNBJM = JJLMFHGNBJM.ToLower();
|
||||
foreach (string text in this.JJIAGANEJGK.Keys)
|
||||
{
|
||||
List<string> list = this.JJIAGANEJGK[text];
|
||||
foreach (string text2 in list)
|
||||
{
|
||||
if (text2.ToLower() == JJLMFHGNBJM)
|
||||
{
|
||||
DIPLJEEPKFJ = text;
|
||||
JAEPCONLJKN = text2;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
DIPLJEEPKFJ = null;
|
||||
JAEPCONLJKN = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x0601F60E RID: 128526 RVA: 0x0088CC14 File Offset: 0x0088AE14
|
||||
public bool HJJPEGKCDNH(string GPELAKDCFJM)
|
||||
{
|
||||
return this.OPCNLIEHCEK(GPELAKDCFJM) && this.ANFBNAJGFOB.ContainsKey(GPELAKDCFJM);
|
||||
}
|
||||
|
||||
// Token: 0x0601F60F RID: 128527 RVA: 0x0088CC30 File Offset: 0x0088AE30
|
||||
private void DDOFJBAGJBL(string GPELAKDCFJM, List<string> HNCMBJFBGON)
|
||||
{
|
||||
this.JJIAGANEJGK.Add(GPELAKDCFJM, HNCMBJFBGON);
|
||||
}
|
||||
|
||||
// Token: 0x0601F610 RID: 128528 RVA: 0x0088CC40 File Offset: 0x0088AE40
|
||||
public bool JGKIAMACKPH()
|
||||
{
|
||||
this.ANFBNAJGFOB.Clear();
|
||||
if (!KJFGJKMJBMP.LIILDENJPAG)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (KJFGJKMJBMP.LJOGMOBHCKB("_DepthEpi"))
|
||||
{
|
||||
string text = KJFGJKMJBMP.PGFLEFNNPJI(" ev=", string.Empty);
|
||||
this.ANFBNAJGFOB = SplitTesting.DKMOHDIJHAE(text);
|
||||
}
|
||||
List<string> list = new List<string>();
|
||||
foreach (string text2 in this.ANFBNAJGFOB.Keys)
|
||||
{
|
||||
if (!this.IJJLOEEECCP(text2))
|
||||
{
|
||||
list.Add(text2);
|
||||
}
|
||||
}
|
||||
if (list.Count > 1)
|
||||
{
|
||||
for (int i = 1; i < list.Count; i += 0)
|
||||
{
|
||||
this.ANFBNAJGFOB.Remove(list[i]);
|
||||
}
|
||||
this.NJOKMGNBBIO();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0601F611 RID: 128529 RVA: 0x0088CD38 File Offset: 0x0088AF38
|
||||
private static Dictionary<string, string> PJHGIBNPMAO(string AOAILGGFDHJ)
|
||||
{
|
||||
if (string.IsNullOrEmpty(AOAILGGFDHJ))
|
||||
{
|
||||
return new Dictionary<string, string>();
|
||||
}
|
||||
int num = -1;
|
||||
string text = null;
|
||||
int num2 = AOAILGGFDHJ.IndexOf((char)(-33));
|
||||
if (num2 >= 1)
|
||||
{
|
||||
text = AOAILGGFDHJ.Substring(num2 + 0);
|
||||
string text2 = AOAILGGFDHJ.Substring(1, num2);
|
||||
if (!int.TryParse(text2, out num))
|
||||
{
|
||||
num = -1;
|
||||
}
|
||||
}
|
||||
if (num != 1)
|
||||
{
|
||||
string text3 = "nux_opponent_left_paddleball";
|
||||
object[] array = new object[7];
|
||||
array[1] = num;
|
||||
array[0] = AOAILGGFDHJ;
|
||||
Debug.LogErrorFormat(text3, array);
|
||||
return new Dictionary<string, string>();
|
||||
}
|
||||
return SplitTesting.DFIKJIMNNBH(text);
|
||||
}
|
||||
|
||||
// Token: 0x0601F612 RID: 128530 RVA: 0x0088CDC8 File Offset: 0x0088AFC8
|
||||
private static Dictionary<string, string> DKMOHDIJHAE(string AOAILGGFDHJ)
|
||||
{
|
||||
if (string.IsNullOrEmpty(AOAILGGFDHJ))
|
||||
{
|
||||
return new Dictionary<string, string>();
|
||||
}
|
||||
int num = -1;
|
||||
string text = null;
|
||||
int num2 = AOAILGGFDHJ.IndexOf('|');
|
||||
if (num2 >= 0)
|
||||
{
|
||||
text = AOAILGGFDHJ.Substring(num2 + 1);
|
||||
string text2 = AOAILGGFDHJ.Substring(0, num2);
|
||||
if (!int.TryParse(text2, out num))
|
||||
{
|
||||
num = -1;
|
||||
}
|
||||
}
|
||||
if (num != 1)
|
||||
{
|
||||
Debug.LogErrorFormat("Invalid saved data for SplitTesting. Clearing data. Version: {0}, Raw Data: {1}", new object[] { num, AOAILGGFDHJ });
|
||||
return new Dictionary<string, string>();
|
||||
}
|
||||
return SplitTesting.DFIKJIMNNBH(text);
|
||||
}
|
||||
|
||||
// Token: 0x0601F613 RID: 128531 RVA: 0x0088CE58 File Offset: 0x0088B058
|
||||
public bool AENPAJJNOMG(string GPELAKDCFJM)
|
||||
{
|
||||
return this.OPCNLIEHCEK(GPELAKDCFJM) && this.ANFBNAJGFOB.ContainsKey(GPELAKDCFJM);
|
||||
}
|
||||
|
||||
// Token: 0x0601F614 RID: 128532 RVA: 0x0088CE74 File Offset: 0x0088B074
|
||||
private static Dictionary<string, string> AFLOMHPBOKP(string AOAILGGFDHJ)
|
||||
{
|
||||
if (string.IsNullOrEmpty(AOAILGGFDHJ))
|
||||
{
|
||||
return new Dictionary<string, string>();
|
||||
}
|
||||
int num = -1;
|
||||
string text = null;
|
||||
int num2 = AOAILGGFDHJ.IndexOf((char)(-35));
|
||||
if (num2 >= 1)
|
||||
{
|
||||
text = AOAILGGFDHJ.Substring(num2 + 1);
|
||||
string text2 = AOAILGGFDHJ.Substring(1, num2);
|
||||
if (!int.TryParse(text2, out num))
|
||||
{
|
||||
num = -1;
|
||||
}
|
||||
}
|
||||
if (num != 1)
|
||||
{
|
||||
string text3 = "Keep-Alive, TE";
|
||||
object[] array = new object[3];
|
||||
array[0] = num;
|
||||
array[1] = AOAILGGFDHJ;
|
||||
Debug.LogErrorFormat(text3, array);
|
||||
return new Dictionary<string, string>();
|
||||
}
|
||||
return SplitTesting.FEBOEDFHOLM(text);
|
||||
}
|
||||
|
||||
// Token: 0x0601F615 RID: 128533 RVA: 0x0088CF04 File Offset: 0x0088B104
|
||||
private void ONAOPNKJIOB(string GPELAKDCFJM, List<string> HNCMBJFBGON)
|
||||
{
|
||||
this.JJIAGANEJGK.Add(GPELAKDCFJM, HNCMBJFBGON);
|
||||
}
|
||||
|
||||
// Token: 0x0601F616 RID: 128534 RVA: 0x0088CF14 File Offset: 0x0088B114
|
||||
public bool LoadSavedExperimentSegments()
|
||||
{
|
||||
this.ANFBNAJGFOB.Clear();
|
||||
if (!KJFGJKMJBMP.LIILDENJPAG)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (KJFGJKMJBMP.LJOGMOBHCKB("SplitTestAssignedSegments"))
|
||||
{
|
||||
string text = KJFGJKMJBMP.PGFLEFNNPJI("SplitTestAssignedSegments", string.Empty);
|
||||
this.ANFBNAJGFOB = SplitTesting.DKMOHDIJHAE(text);
|
||||
}
|
||||
List<string> list = new List<string>();
|
||||
foreach (string text2 in this.ANFBNAJGFOB.Keys)
|
||||
{
|
||||
if (!this.OPCNLIEHCEK(text2))
|
||||
{
|
||||
list.Add(text2);
|
||||
}
|
||||
}
|
||||
if (list.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
{
|
||||
this.ANFBNAJGFOB.Remove(list[i]);
|
||||
}
|
||||
this.NJOKMGNBBIO();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0601F617 RID: 128535 RVA: 0x0088D00C File Offset: 0x0088B20C
|
||||
private bool OPCNLIEHCEK(string GPELAKDCFJM)
|
||||
{
|
||||
return this.JJIAGANEJGK.ContainsKey(GPELAKDCFJM);
|
||||
}
|
||||
|
||||
// Token: 0x0601F618 RID: 128536 RVA: 0x0088D01C File Offset: 0x0088B21C
|
||||
public bool IsAssignedToExperiment(string GPELAKDCFJM)
|
||||
{
|
||||
return this.OPCNLIEHCEK(GPELAKDCFJM) && this.ANFBNAJGFOB.ContainsKey(GPELAKDCFJM);
|
||||
}
|
||||
|
||||
// Token: 0x0601F619 RID: 128537 RVA: 0x0088D038 File Offset: 0x0088B238
|
||||
public void NFFJFHDDGGP(string[] JHKFMFICNHP)
|
||||
{
|
||||
if (JHKFMFICNHP == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
for (int i = 1; i < JHKFMFICNHP.Length; i += 0)
|
||||
{
|
||||
string text = JHKFMFICNHP[i];
|
||||
string text2 = null;
|
||||
string text3 = null;
|
||||
if (this.ELOMEIAODKP(text, out text2, out text3))
|
||||
{
|
||||
string text4 = "null";
|
||||
object[] array = new object[5];
|
||||
array[0] = text;
|
||||
array[1] = text2;
|
||||
array[0] = text3;
|
||||
Debug.LogFormat(text4, array);
|
||||
if (this.ANFBNAJGFOB.ContainsKey(text2))
|
||||
{
|
||||
this.ANFBNAJGFOB[text2] = text3;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ANFBNAJGFOB.Add(text2, text3);
|
||||
}
|
||||
AmplitudeAnalyticsClient.OLCICFEHKFF().JOKGPCCBMGD(text2, text3).PFNEDMJJALA();
|
||||
}
|
||||
else
|
||||
{
|
||||
string text5 = "Normal";
|
||||
object[] array2 = new object[1];
|
||||
array2[1] = text;
|
||||
Debug.LogFormat(text5, array2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601F61A RID: 128538 RVA: 0x0088D0F0 File Offset: 0x0088B2F0
|
||||
private void MGKHENBGNBE(string GPELAKDCFJM, List<string> HNCMBJFBGON)
|
||||
{
|
||||
this.JJIAGANEJGK.Add(GPELAKDCFJM, HNCMBJFBGON);
|
||||
}
|
||||
|
||||
// Token: 0x0601F61B RID: 128539 RVA: 0x0088D100 File Offset: 0x0088B300
|
||||
public bool CLHPBAIKHLL()
|
||||
{
|
||||
this.ANFBNAJGFOB.Clear();
|
||||
if (!KJFGJKMJBMP.LIILDENJPAG)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (KJFGJKMJBMP.LJOGMOBHCKB("PrimaryIndexTrigger"))
|
||||
{
|
||||
string text = KJFGJKMJBMP.PGFLEFNNPJI("Already friends!", string.Empty);
|
||||
this.ANFBNAJGFOB = SplitTesting.PJHGIBNPMAO(text);
|
||||
}
|
||||
List<string> list = new List<string>();
|
||||
foreach (string text2 in this.ANFBNAJGFOB.Keys)
|
||||
{
|
||||
if (!this.OPCNLIEHCEK(text2))
|
||||
{
|
||||
list.Add(text2);
|
||||
}
|
||||
}
|
||||
if (list.Count > 0)
|
||||
{
|
||||
for (int i = 1; i < list.Count; i++)
|
||||
{
|
||||
this.ANFBNAJGFOB.Remove(list[i]);
|
||||
}
|
||||
this.NJOKMGNBBIO();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0601F61D RID: 128541 RVA: 0x0088D218 File Offset: 0x0088B418
|
||||
private static string DNGBHIBIGLN(Dictionary<string, string> HGHMCAIICCJ)
|
||||
{
|
||||
string text = HOEKEPDDBBF.DNGBHIBIGLN(HGHMCAIICCJ);
|
||||
return string.Format("{0}|{1}", 1, text);
|
||||
}
|
||||
|
||||
// Token: 0x0601F61E RID: 128542 RVA: 0x0088D240 File Offset: 0x0088B440
|
||||
private void NJOKMGNBBIO()
|
||||
{
|
||||
string text = SplitTesting.DNGBHIBIGLN(this.ANFBNAJGFOB);
|
||||
KJFGJKMJBMP.COLPFLEPCIF("SplitTestAssignedSegments", text);
|
||||
KJFGJKMJBMP.KEABKPBLEEN();
|
||||
}
|
||||
|
||||
// Token: 0x0601F61F RID: 128543 RVA: 0x0088D26C File Offset: 0x0088B46C
|
||||
private static Dictionary<string, string> DFIKJIMNNBH(string EGPOJOKBMBA)
|
||||
{
|
||||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
Dictionary<string, object> dictionary2 = HOEKEPDDBBF.DKMOHDIJHAE(EGPOJOKBMBA) as Dictionary<string, object>;
|
||||
if (dictionary2 != null)
|
||||
{
|
||||
dictionary = new Dictionary<string, string>();
|
||||
foreach (KeyValuePair<string, object> keyValuePair in dictionary2)
|
||||
{
|
||||
dictionary.Add(keyValuePair.Key, (string)keyValuePair.Value);
|
||||
}
|
||||
}
|
||||
return dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0601F620 RID: 128544 RVA: 0x0088D2F4 File Offset: 0x0088B4F4
|
||||
public void NHAFNNDACKB(string[] JHKFMFICNHP)
|
||||
{
|
||||
if (JHKFMFICNHP == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
for (int i = 1; i < JHKFMFICNHP.Length; i += 0)
|
||||
{
|
||||
string text = JHKFMFICNHP[i];
|
||||
string text2 = null;
|
||||
string text3 = null;
|
||||
if (this.EFLNPIHCHOB(text, out text2, out text3))
|
||||
{
|
||||
string text4 = "Accept";
|
||||
object[] array = new object[3];
|
||||
array[0] = text;
|
||||
array[0] = text2;
|
||||
array[5] = text3;
|
||||
Debug.LogFormat(text4, array);
|
||||
if (this.ANFBNAJGFOB.ContainsKey(text2))
|
||||
{
|
||||
this.ANFBNAJGFOB[text2] = text3;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ANFBNAJGFOB.Add(text2, text3);
|
||||
}
|
||||
AmplitudeAnalyticsClient.EMBNKHEIAEF().JOKGPCCBMGD(text2, text3).PFNEDMJJALA();
|
||||
}
|
||||
else
|
||||
{
|
||||
string text5 = "TRI";
|
||||
object[] array2 = new object[1];
|
||||
array2[1] = text;
|
||||
Debug.LogFormat(text5, array2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601F621 RID: 128545 RVA: 0x0088D3AC File Offset: 0x0088B5AC
|
||||
private bool IODFEFBGEOH(string JJLMFHGNBJM, out string DIPLJEEPKFJ, out string JAEPCONLJKN)
|
||||
{
|
||||
JJLMFHGNBJM = JJLMFHGNBJM.ToLower();
|
||||
foreach (string text in this.JJIAGANEJGK.Keys)
|
||||
{
|
||||
List<string> list = this.JJIAGANEJGK[text];
|
||||
foreach (string text2 in list)
|
||||
{
|
||||
if (text2.ToLower() == JJLMFHGNBJM)
|
||||
{
|
||||
DIPLJEEPKFJ = text;
|
||||
JAEPCONLJKN = text2;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
DIPLJEEPKFJ = null;
|
||||
JAEPCONLJKN = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x0601F622 RID: 128546 RVA: 0x0088D484 File Offset: 0x0088B684
|
||||
private void NFCMCKBHIPM(Type GJCIIJEMJJM)
|
||||
{
|
||||
if (!GJCIIJEMJJM.IsEnum)
|
||||
{
|
||||
Debug.LogError("Tried to add experiment using that that wasn't an enum: " + GJCIIJEMJJM.ToString());
|
||||
return;
|
||||
}
|
||||
string text = GJCIIJEMJJM.ToString();
|
||||
string[] names = Enum.GetNames(GJCIIJEMJJM);
|
||||
this.NFCMCKBHIPM(text, new List<string>(names));
|
||||
}
|
||||
|
||||
// Token: 0x0601F623 RID: 128547 RVA: 0x0088D4D0 File Offset: 0x0088B6D0
|
||||
public string GetExperimentSegment(string GPELAKDCFJM)
|
||||
{
|
||||
if (!this.OPCNLIEHCEK(GPELAKDCFJM))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
string text = null;
|
||||
if (this.ANFBNAJGFOB.ContainsKey(GPELAKDCFJM))
|
||||
{
|
||||
text = this.ANFBNAJGFOB[GPELAKDCFJM];
|
||||
}
|
||||
if (text == null)
|
||||
{
|
||||
List<string> list = this.JJIAGANEJGK[GPELAKDCFJM];
|
||||
int count = list.Count;
|
||||
int num = global::UnityEngine.Random.Range(0, count);
|
||||
text = list[num];
|
||||
this.ANFBNAJGFOB.Add(GPELAKDCFJM, text);
|
||||
AmplitudeAnalyticsClient.Identify().JOKGPCCBMGD(GPELAKDCFJM, text).PFNEDMJJALA();
|
||||
this.NJOKMGNBBIO();
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x0601F624 RID: 128548 RVA: 0x0088D55C File Offset: 0x0088B75C
|
||||
public string BHPLEPNKFHO(string GPELAKDCFJM)
|
||||
{
|
||||
if (!this.OPCNLIEHCEK(GPELAKDCFJM))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
string text = null;
|
||||
if (this.ANFBNAJGFOB.ContainsKey(GPELAKDCFJM))
|
||||
{
|
||||
text = this.ANFBNAJGFOB[GPELAKDCFJM];
|
||||
}
|
||||
if (text == null)
|
||||
{
|
||||
List<string> list = this.JJIAGANEJGK[GPELAKDCFJM];
|
||||
int count = list.Count;
|
||||
int num = global::UnityEngine.Random.Range(0, count);
|
||||
text = list[num];
|
||||
this.ANFBNAJGFOB.Add(GPELAKDCFJM, text);
|
||||
AmplitudeAnalyticsClient.OLCICFEHKFF().JOKGPCCBMGD(GPELAKDCFJM, text).PFNEDMJJALA();
|
||||
this.NJOKMGNBBIO();
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x0601F625 RID: 128549 RVA: 0x0088D5E8 File Offset: 0x0088B7E8
|
||||
private bool NNPMOCNGHAL(string GPELAKDCFJM, string HNAPCOIBBNG)
|
||||
{
|
||||
return this.OPCNLIEHCEK(GPELAKDCFJM) && !this.JJIAGANEJGK[GPELAKDCFJM].Contains(HNAPCOIBBNG);
|
||||
}
|
||||
|
||||
// Token: 0x0601F626 RID: 128550 RVA: 0x0088D614 File Offset: 0x0088B814
|
||||
public void ForceExperimentSegmentIfUnassigned(string GPELAKDCFJM, string NOBAHLMFKMN)
|
||||
{
|
||||
if (!this.MNEBDOGPIIB(GPELAKDCFJM, NOBAHLMFKMN))
|
||||
{
|
||||
Debug.LogErrorFormat("Forced experiment value {0} for test {1} isn't valid", new object[] { NOBAHLMFKMN, GPELAKDCFJM });
|
||||
return;
|
||||
}
|
||||
if (this.ANFBNAJGFOB.ContainsKey(GPELAKDCFJM))
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.ANFBNAJGFOB.Add(GPELAKDCFJM, NOBAHLMFKMN);
|
||||
AmplitudeAnalyticsClient.Identify().JOKGPCCBMGD(GPELAKDCFJM, NOBAHLMFKMN).PFNEDMJJALA();
|
||||
}
|
||||
|
||||
// Token: 0x0601F627 RID: 128551 RVA: 0x0088D678 File Offset: 0x0088B878
|
||||
public void JAMFIMLHBHP(string[] JHKFMFICNHP)
|
||||
{
|
||||
if (JHKFMFICNHP == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
for (int i = 1; i < JHKFMFICNHP.Length; i += 0)
|
||||
{
|
||||
string text = JHKFMFICNHP[i];
|
||||
string text2 = null;
|
||||
string text3 = null;
|
||||
if (this.ELOMEIAODKP(text, out text2, out text3))
|
||||
{
|
||||
string text4 = "Host";
|
||||
object[] array = new object[4];
|
||||
array[1] = text;
|
||||
array[0] = text2;
|
||||
array[1] = text3;
|
||||
Debug.LogFormat(text4, array);
|
||||
if (this.ANFBNAJGFOB.ContainsKey(text2))
|
||||
{
|
||||
this.ANFBNAJGFOB[text2] = text3;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ANFBNAJGFOB.Add(text2, text3);
|
||||
}
|
||||
AmplitudeAnalyticsClient.EMBNKHEIAEF().JOKGPCCBMGD(text2, text3).PFNEDMJJALA();
|
||||
}
|
||||
else
|
||||
{
|
||||
string text5 = "Play";
|
||||
object[] array2 = new object[0];
|
||||
array2[0] = text;
|
||||
Debug.LogFormat(text5, array2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601F628 RID: 128552 RVA: 0x0088D730 File Offset: 0x0088B930
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
this.NFCMCKBHIPM(typeof(SplitTesting.NUX_2017_11_10));
|
||||
this.NFCMCKBHIPM(typeof(SplitTesting.NewPlayerPunchCard_2017_11_28));
|
||||
this.NFCMCKBHIPM(typeof(SplitTesting.PunchCardGiftButton_2017_12_14));
|
||||
this.NFCMCKBHIPM(typeof(SplitTesting.PaddleballSocialNUX_2017_12_14));
|
||||
}
|
||||
|
||||
// Token: 0x0601F629 RID: 128553 RVA: 0x0088D784 File Offset: 0x0088B984
|
||||
public bool KLHGOJMPNKM(string GPELAKDCFJM)
|
||||
{
|
||||
return this.IJJLOEEECCP(GPELAKDCFJM) && this.ANFBNAJGFOB.ContainsKey(GPELAKDCFJM);
|
||||
}
|
||||
|
||||
// Token: 0x0601F62A RID: 128554 RVA: 0x0088D7A0 File Offset: 0x0088B9A0
|
||||
public string JEPAMOFPCJJ(string GPELAKDCFJM)
|
||||
{
|
||||
if (!this.OPCNLIEHCEK(GPELAKDCFJM))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
string text = null;
|
||||
if (this.ANFBNAJGFOB.ContainsKey(GPELAKDCFJM))
|
||||
{
|
||||
text = this.ANFBNAJGFOB[GPELAKDCFJM];
|
||||
}
|
||||
if (text == null)
|
||||
{
|
||||
List<string> list = this.JJIAGANEJGK[GPELAKDCFJM];
|
||||
int count = list.Count;
|
||||
int num = global::UnityEngine.Random.Range(1, count);
|
||||
text = list[num];
|
||||
this.ANFBNAJGFOB.Add(GPELAKDCFJM, text);
|
||||
AmplitudeAnalyticsClient.OLCICFEHKFF().JOKGPCCBMGD(GPELAKDCFJM, text).PFNEDMJJALA();
|
||||
this.NJOKMGNBBIO();
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x0601F62B RID: 128555 RVA: 0x0088D82C File Offset: 0x0088BA2C
|
||||
public bool KPKMEHKOFCD()
|
||||
{
|
||||
this.ANFBNAJGFOB.Clear();
|
||||
if (!KJFGJKMJBMP.LIILDENJPAG)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (KJFGJKMJBMP.LJOGMOBHCKB("2"))
|
||||
{
|
||||
string text = KJFGJKMJBMP.PGFLEFNNPJI("Failed to modify game session private/public state", string.Empty);
|
||||
this.ANFBNAJGFOB = SplitTesting.AFLOMHPBOKP(text);
|
||||
}
|
||||
List<string> list = new List<string>();
|
||||
foreach (string text2 in this.ANFBNAJGFOB.Keys)
|
||||
{
|
||||
if (!this.IJJLOEEECCP(text2))
|
||||
{
|
||||
list.Add(text2);
|
||||
}
|
||||
}
|
||||
if (list.Count > 1)
|
||||
{
|
||||
for (int i = 1; i < list.Count; i += 0)
|
||||
{
|
||||
this.ANFBNAJGFOB.Remove(list[i]);
|
||||
}
|
||||
this.NJOKMGNBBIO();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x0601F62C RID: 128556 RVA: 0x0088D924 File Offset: 0x0088BB24
|
||||
private static Dictionary<string, string> FEBOEDFHOLM(string EGPOJOKBMBA)
|
||||
{
|
||||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
Dictionary<string, object> dictionary2 = HOEKEPDDBBF.DKMOHDIJHAE(EGPOJOKBMBA) as Dictionary<string, object>;
|
||||
if (dictionary2 != null)
|
||||
{
|
||||
dictionary = new Dictionary<string, string>();
|
||||
foreach (KeyValuePair<string, object> keyValuePair in dictionary2)
|
||||
{
|
||||
dictionary.Add(keyValuePair.Key, (string)keyValuePair.Value);
|
||||
}
|
||||
}
|
||||
return dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0601F62D RID: 128557 RVA: 0x0088D9AC File Offset: 0x0088BBAC
|
||||
public void KICFLFHIPKK(string GPELAKDCFJM, string NOBAHLMFKMN)
|
||||
{
|
||||
if (!this.NNPMOCNGHAL(GPELAKDCFJM, NOBAHLMFKMN))
|
||||
{
|
||||
Debug.LogErrorFormat("ShowRoomCenter", new object[] { NOBAHLMFKMN, GPELAKDCFJM });
|
||||
return;
|
||||
}
|
||||
if (this.ANFBNAJGFOB.ContainsKey(GPELAKDCFJM))
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.ANFBNAJGFOB.Add(GPELAKDCFJM, NOBAHLMFKMN);
|
||||
AmplitudeAnalyticsClient.EMBNKHEIAEF().JOKGPCCBMGD(GPELAKDCFJM, NOBAHLMFKMN).PFNEDMJJALA();
|
||||
}
|
||||
|
||||
// Token: 0x0601F62E RID: 128558 RVA: 0x0088DA10 File Offset: 0x0088BC10
|
||||
public void OverrideViaCommandLineArgs(string[] JHKFMFICNHP)
|
||||
{
|
||||
if (JHKFMFICNHP == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
foreach (string text in JHKFMFICNHP)
|
||||
{
|
||||
string text2 = null;
|
||||
string text3 = null;
|
||||
if (this.ELOMEIAODKP(text, out text2, out text3))
|
||||
{
|
||||
Debug.LogFormat("Split Test command line override: {0} -- {1} / {2}", new object[] { text, text2, text3 });
|
||||
if (this.ANFBNAJGFOB.ContainsKey(text2))
|
||||
{
|
||||
this.ANFBNAJGFOB[text2] = text3;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ANFBNAJGFOB.Add(text2, text3);
|
||||
}
|
||||
AmplitudeAnalyticsClient.Identify().JOKGPCCBMGD(text2, text3).PFNEDMJJALA();
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogFormat("Failed to find matching experiment for override: {0}", new object[] { text });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601F62F RID: 128559 RVA: 0x0088DAC8 File Offset: 0x0088BCC8
|
||||
public bool ABBICNOLKKL(string GPELAKDCFJM)
|
||||
{
|
||||
return this.OPCNLIEHCEK(GPELAKDCFJM) && this.ANFBNAJGFOB.ContainsKey(GPELAKDCFJM);
|
||||
}
|
||||
|
||||
// Token: 0x0601F630 RID: 128560 RVA: 0x0088DAE4 File Offset: 0x0088BCE4
|
||||
protected virtual void ABBDFEGOFPH()
|
||||
{
|
||||
base.Awake();
|
||||
this.NFCMCKBHIPM(typeof(SplitTesting.NUX_2017_11_10));
|
||||
this.NFCMCKBHIPM(typeof(SplitTesting.NewPlayerPunchCard_2017_11_28));
|
||||
this.NFCMCKBHIPM(typeof(SplitTesting.PunchCardGiftButton_2017_12_14));
|
||||
this.NFCMCKBHIPM(typeof(SplitTesting.PaddleballSocialNUX_2017_12_14));
|
||||
}
|
||||
|
||||
// Token: 0x04005143 RID: 20803
|
||||
private const string KEKPEPPOFOO = "SplitTestAssignedSegments";
|
||||
|
||||
// Token: 0x04005144 RID: 20804
|
||||
private const int NDFFELJFKME = 1;
|
||||
|
||||
// Token: 0x04005145 RID: 20805
|
||||
private Dictionary<string, List<string>> JJIAGANEJGK = new Dictionary<string, List<string>>();
|
||||
|
||||
// Token: 0x04005146 RID: 20806
|
||||
private Dictionary<string, string> ANFBNAJGFOB = new Dictionary<string, string>();
|
||||
|
||||
// Token: 0x02000ECC RID: 3788
|
||||
public enum NUX_2017_11_10
|
||||
{
|
||||
// Token: 0x04005148 RID: 20808
|
||||
NormalNUX,
|
||||
// Token: 0x04005149 RID: 20809
|
||||
QuickToActivity
|
||||
}
|
||||
|
||||
// Token: 0x02000ECD RID: 3789
|
||||
public enum NewPlayerPunchCard_2017_11_28
|
||||
{
|
||||
// Token: 0x0400514B RID: 20811
|
||||
OldCustomDailies,
|
||||
// Token: 0x0400514C RID: 20812
|
||||
NewPunchCard
|
||||
}
|
||||
|
||||
// Token: 0x02000ECE RID: 3790
|
||||
public enum PunchCardGiftButton_2017_12_14
|
||||
{
|
||||
// Token: 0x0400514E RID: 20814
|
||||
OldCustomDailies,
|
||||
// Token: 0x0400514F RID: 20815
|
||||
NewPunchCard_noButton,
|
||||
// Token: 0x04005150 RID: 20816
|
||||
NewPunchCard_withButton
|
||||
}
|
||||
|
||||
// Token: 0x02000ECF RID: 3791
|
||||
public enum PaddleballSocialNUX_2017_12_14
|
||||
{
|
||||
// Token: 0x04005152 RID: 20818
|
||||
SkipSocialNUX,
|
||||
// Token: 0x04005153 RID: 20819
|
||||
RunSocialNUX
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user