scripts
This commit is contained in:
@@ -0,0 +1,394 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using CodeStage.AntiCheat.ObscuredTypes;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Async;
|
||||
using RecRoom.Core;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Sharing
|
||||
{
|
||||
// Token: 0x02002082 RID: 8322
|
||||
[Token(Token = "0x2002082")]
|
||||
[StructLayout(3)]
|
||||
public class ReferralCode : ActionCode
|
||||
{
|
||||
// Token: 0x0600E5D9 RID: 58841 RVA: 0x003687E0 File Offset: 0x003669E0
|
||||
[Token(Token = "0x600E5D9")]
|
||||
[Address(RVA = "0x14F0060", Offset = "0x14EEA60", VA = "0x1814F0060", Slot = "4")]
|
||||
public override IPromise<ActionCode.HKFNFGGEPMP> Create(object IIFJDCEPNMJ)
|
||||
{
|
||||
int num = 0;
|
||||
string actionLinkData = base.GetActionLinkData(num);
|
||||
ActionCode.Configuration config = this.Config;
|
||||
int validHours = config.validHours;
|
||||
int? maxUses = config.MaxUses;
|
||||
IPromise<string> promise = COFHGNFJMOG.GFOBAOHKJBC(actionLinkData, validHours, maxUses);
|
||||
int num2;
|
||||
Func<string, ActionCode.HKFNFGGEPMP> func = new Func(num2.KGEHHCADCHK);
|
||||
num2 = 0;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600E5DA RID: 58842 RVA: 0x00368830 File Offset: 0x00366A30
|
||||
[Token(Token = "0x600E5DA")]
|
||||
[Address(RVA = "0x14EFEA0", Offset = "0x14EE8A0", VA = "0x1814EFEA0", Slot = "5")]
|
||||
public override IPromise CreateAndShare(object IIFJDCEPNMJ)
|
||||
{
|
||||
string text = this.ToString();
|
||||
Action<ActionCode.HKFNFGGEPMP> action = new Action(this.AHIGDBKEOGK);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600E5DB RID: 58843 RVA: 0x00368858 File Offset: 0x00366A58
|
||||
[Token(Token = "0x600E5DB")]
|
||||
[Address(RVA = "0x14EFF40", Offset = "0x14EE940", VA = "0x1814EFF40", Slot = "6")]
|
||||
public override void CreateButtonPressed()
|
||||
{
|
||||
ProfileWatchUIFlow flowByType = WatchUI.BFPPPLIJIGC.GetFlowByType<ProfileWatchUIFlow>();
|
||||
if (WatchUI.BFPPPLIJIGC.<CBEMGFDBBJA>k__BackingField != flowByType)
|
||||
{
|
||||
WatchUI local = WatchUI.BFPPPLIJIGC;
|
||||
int num = 0;
|
||||
local.PushFlow(flowByType, num);
|
||||
}
|
||||
int num2 = 0;
|
||||
flowByType.OpenReferralSubscreen(num2);
|
||||
}
|
||||
|
||||
// Token: 0x0600E5DC RID: 58844 RVA: 0x003688B0 File Offset: 0x00366AB0
|
||||
[Token(Token = "0x600E5DC")]
|
||||
[Address(RVA = "0x14F0140", Offset = "0x14EEB40", VA = "0x1814F0140", Slot = "7")]
|
||||
public override IPromise Handle(LinkManager.ELGKGFGCNJL JBLKFFDDMJH)
|
||||
{
|
||||
string <GLCPMMJOCEJ>k__BackingField = JBLKFFDDMJH.LIOKHLNNDFL.<GLCPMMJOCEJ>k__BackingField;
|
||||
string actionCode = <GLCPMMJOCEJ>k__BackingField;
|
||||
int <KBFNGJBKEOP>k__BackingField = JBLKFFDDMJH.LIOKHLNNDFL.<KBFNGJBKEOP>k__BackingField;
|
||||
int num = ObscuredInt.FAJDMKOEFLH(PEGGCEDHBOF.DOOHKCANFLO.<IFBPANODIPA>k__BackingField);
|
||||
if (<KBFNGJBKEOP>k__BackingField != num)
|
||||
{
|
||||
IPromise<CCEOLAOLEKJ> promise = PEGGCEDHBOF.NFKMGNHDCMN(<KBFNGJBKEOP>k__BackingField);
|
||||
Func<CCEOLAOLEKJ, IPromise> func = delegate(CCEOLAOLEKJ account)
|
||||
{
|
||||
ReferralCode <>4__this = this;
|
||||
string actionCode2 = actionCode;
|
||||
int? autoRenewHours = <>4__this.Config.AutoRenewHours;
|
||||
IPromise promise3 = ActionCode.ConsumeActionLinkIfValid(actionCode2, autoRenewHours);
|
||||
Action <>9__2;
|
||||
Action action = delegate
|
||||
{
|
||||
Scheduler instance = SingletonMonoBehaviour.Instance;
|
||||
int num3 = 0;
|
||||
IEnumerator<ISchedule> enumerator = LinkManager.WaitForLoginNuxAndWatch(false, num3);
|
||||
ISchedulerPromise schedulerPromise = instance.Run(enumerator);
|
||||
if (<>9__2 == 0)
|
||||
{
|
||||
Action action2 = delegate
|
||||
{
|
||||
ProfileWatchUIFlow flowByType = WatchUI.BFPPPLIJIGC.GetFlowByType<ProfileWatchUIFlow>();
|
||||
int num4 = 0;
|
||||
bool flag = WatchUI.OpenWatchFlow(flowByType, true, num4);
|
||||
CCEOLAOLEKJ account;
|
||||
ReferralSubscreen.COJBOMOEJAG cojbomoejag = new ReferralSubscreen.COJBOMOEJAG(account, true);
|
||||
flowByType.OpenReferralSubscreen(cojbomoejag);
|
||||
ReferralCode <>4__this2 = this;
|
||||
ObscuredString <KHJCEENDAOL>k__BackingField = account.<KHJCEENDAOL>k__BackingField;
|
||||
string text2 = string.Format(<>4__this2.chatFailureTitle, <KHJCEENDAOL>k__BackingField);
|
||||
ReferralCode <>4__this3 = this;
|
||||
ObscuredString <KHJCEENDAOL>k__BackingField2 = account.<KHJCEENDAOL>k__BackingField;
|
||||
string text3 = string.Format(<>4__this3.chatFailureBody, <KHJCEENDAOL>k__BackingField2);
|
||||
account = account;
|
||||
ActionCode.NEIACJEEKFK(text2, text3, account);
|
||||
};
|
||||
<>9__2 = action2;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
};
|
||||
throw new NullReferenceException();
|
||||
};
|
||||
int num2 = 0;
|
||||
num2 += num2;
|
||||
num2++;
|
||||
func += func;
|
||||
num2 += 5;
|
||||
num2 += 19;
|
||||
}
|
||||
string text = this.errorSelfReferral;
|
||||
JBLKFFDDMJH.LBDAAMOAKBA = text;
|
||||
IPromise promise2 = Promise.FromError(this.errorSelfReferral);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600E5DD RID: 58845 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600E5DD")]
|
||||
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "8")]
|
||||
public override void ModifyPreAuthLaunchTarget(BootSequence.IIACGMGMLOB HHBNIDNOLDI, LinkManager.ELGKGFGCNJL JBLKFFDDMJH)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600E5DE RID: 58846 RVA: 0x0036895C File Offset: 0x00366B5C
|
||||
[Token(Token = "0x600E5DE")]
|
||||
[Address(RVA = "0x14F0530", Offset = "0x14EEF30", VA = "0x1814F0530")]
|
||||
public ReferralCode()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600E5DF RID: 58847 RVA: 0x0036899C File Offset: 0x00366B9C
|
||||
[Token(Token = "0x600E5DF")]
|
||||
[Address(RVA = "0x14EFDC0", Offset = "0x14EE7C0", VA = "0x1814EFDC0")]
|
||||
[CompilerGenerated]
|
||||
private void AHIGDBKEOGK(ActionCode.HKFNFGGEPMP GIAOBLMEMMI)
|
||||
{
|
||||
IAFKHONIKPI type = this.Config.type;
|
||||
string text = this.eventInfo;
|
||||
Action action = new Action(this.LHEBAHBIBFM);
|
||||
}
|
||||
|
||||
// Token: 0x0600E5E0 RID: 58848 RVA: 0x003689D4 File Offset: 0x00366BD4
|
||||
[Token(Token = "0x600E5E0")]
|
||||
[Address(RVA = "0x14F03B0", Offset = "0x14EEDB0", VA = "0x1814F03B0")]
|
||||
[CompilerGenerated]
|
||||
private void LHEBAHBIBFM()
|
||||
{
|
||||
string details = "Error loading referral info. Try again later.";
|
||||
IPromise<IJKLNAEBMHP> promise = COFHGNFJMOG.DDHLOCMPNPF();
|
||||
Action<IJKLNAEBMHP> action = delegate(IJKLNAEBMHP dto)
|
||||
{
|
||||
string jfdfpicenal = dto.JFDFPICENAL;
|
||||
details = jfdfpicenal;
|
||||
};
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
Action action2 = delegate
|
||||
{
|
||||
if (Player.HIMJIOGEAGA)
|
||||
{
|
||||
WatchUI local = WatchUI.BFPPPLIJIGC;
|
||||
ReferralCode <>4__this = this;
|
||||
}
|
||||
};
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04009627 RID: 38439
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4009627")]
|
||||
[SerializeField]
|
||||
[Tooltip("This notification shows if the automatic chat message doesn't go through. Use {0} to reference the referrer's username.")]
|
||||
private string chatFailureBody = "You can view @{0}'s profile by selecting 'Profile' below";
|
||||
|
||||
// Token: 0x04009628 RID: 38440
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4009628")]
|
||||
[SerializeField]
|
||||
[Tooltip("This notification shows if the automatic chat message doesn't go through. Use {0} to reference the referrer's username.")]
|
||||
private string chatFailureTitle = "Referral code success!";
|
||||
|
||||
// Token: 0x04009629 RID: 38441
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4009629")]
|
||||
[SerializeField]
|
||||
[Header("UI Strings:")]
|
||||
private string errorSelfReferral = "You can't refer yourself!";
|
||||
|
||||
// Token: 0x0400962A RID: 38442
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400962A")]
|
||||
[SerializeField]
|
||||
private string eventInfo = "Event Info";
|
||||
|
||||
// Token: 0x02002083 RID: 8323
|
||||
[Token(Token = "0x2002083")]
|
||||
[CompilerGenerated]
|
||||
private sealed class KEIOPCPBKNP
|
||||
{
|
||||
// Token: 0x0600E5E1 RID: 58849 RVA: 0x00368A34 File Offset: 0x00366C34
|
||||
[Token(Token = "0x600E5E1")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public KEIOPCPBKNP()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600E5E2 RID: 58850 RVA: 0x00368A48 File Offset: 0x00366C48
|
||||
[Token(Token = "0x600E5E2")]
|
||||
[Address(RVA = "0x14EC8F0", Offset = "0x14EB2F0", VA = "0x1814EC8F0")]
|
||||
internal void <CreateAndShare>b__2(IJKLNAEBMHP dto)
|
||||
{
|
||||
string jfdfpicenal = dto.JFDFPICENAL;
|
||||
this.details = jfdfpicenal;
|
||||
}
|
||||
|
||||
// Token: 0x0600E5E3 RID: 58851 RVA: 0x00368A6C File Offset: 0x00366C6C
|
||||
[Token(Token = "0x600E5E3")]
|
||||
[Address(RVA = "0x14EC910", Offset = "0x14EB310", VA = "0x1814EC910")]
|
||||
internal void <CreateAndShare>b__3()
|
||||
{
|
||||
if (Player.HIMJIOGEAGA)
|
||||
{
|
||||
WatchUI local = WatchUI.BFPPPLIJIGC;
|
||||
ReferralCode referralCode = this.<>4__this;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400962B RID: 38443
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400962B")]
|
||||
public string details;
|
||||
|
||||
// Token: 0x0400962C RID: 38444
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400962C")]
|
||||
public ReferralCode <>4__this;
|
||||
}
|
||||
|
||||
// Token: 0x02002084 RID: 8324
|
||||
[Token(Token = "0x2002084")]
|
||||
[CompilerGenerated]
|
||||
private sealed class NCDIGFLOJPM
|
||||
{
|
||||
// Token: 0x0600E5E4 RID: 58852 RVA: 0x00368A98 File Offset: 0x00366C98
|
||||
[Token(Token = "0x600E5E4")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public NCDIGFLOJPM()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600E5E5 RID: 58853 RVA: 0x00368AAC File Offset: 0x00366CAC
|
||||
[Token(Token = "0x600E5E5")]
|
||||
[Address(RVA = "0x14EEA30", Offset = "0x14ED430", VA = "0x1814EEA30")]
|
||||
internal IPromise <Handle>b__0(CCEOLAOLEKJ account)
|
||||
{
|
||||
ReferralCode.LLCNLEMPPKL llcnlemppkl = new ReferralCode.LLCNLEMPPKL();
|
||||
llcnlemppkl.CS$<>8__locals1 = this;
|
||||
llcnlemppkl.account = account;
|
||||
ReferralCode referralCode = this.<>4__this;
|
||||
string text = this.actionCode;
|
||||
int? autoRenewHours = referralCode.Config.AutoRenewHours;
|
||||
IPromise promise = ActionCode.ConsumeActionLinkIfValid(text, autoRenewHours);
|
||||
Action action = delegate
|
||||
{
|
||||
Scheduler instance = SingletonMonoBehaviour.Instance;
|
||||
int num = 0;
|
||||
IEnumerator<ISchedule> enumerator = LinkManager.WaitForLoginNuxAndWatch(false, num);
|
||||
ISchedulerPromise schedulerPromise = instance.Run(enumerator);
|
||||
if (llcnlemppkl.<>9__2 == 0)
|
||||
{
|
||||
Action action2 = delegate
|
||||
{
|
||||
ProfileWatchUIFlow flowByType = WatchUI.BFPPPLIJIGC.GetFlowByType<ProfileWatchUIFlow>();
|
||||
int num2 = 0;
|
||||
bool flag = WatchUI.OpenWatchFlow(flowByType, true, num2);
|
||||
ReferralSubscreen.COJBOMOEJAG cojbomoejag = new ReferralSubscreen.COJBOMOEJAG(llcnlemppkl.account, true);
|
||||
flowByType.OpenReferralSubscreen(cojbomoejag);
|
||||
ReferralCode referralCode2 = llcnlemppkl.CS$<>8__locals1.<>4__this;
|
||||
ObscuredString <KHJCEENDAOL>k__BackingField = llcnlemppkl.account.<KHJCEENDAOL>k__BackingField;
|
||||
string text2 = string.Format(referralCode2.chatFailureTitle, <KHJCEENDAOL>k__BackingField);
|
||||
ReferralCode referralCode3 = llcnlemppkl.CS$<>8__locals1.<>4__this;
|
||||
ObscuredString <KHJCEENDAOL>k__BackingField2 = llcnlemppkl.account.<KHJCEENDAOL>k__BackingField;
|
||||
string text3 = string.Format(referralCode3.chatFailureBody, <KHJCEENDAOL>k__BackingField2);
|
||||
CCEOLAOLEKJ account2 = llcnlemppkl.account;
|
||||
ActionCode.NEIACJEEKFK(text2, text3, account2);
|
||||
};
|
||||
llcnlemppkl.<>9__2 = action2;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
};
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400962D RID: 38445
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400962D")]
|
||||
public string actionCode;
|
||||
|
||||
// Token: 0x0400962E RID: 38446
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400962E")]
|
||||
public ReferralCode <>4__this;
|
||||
}
|
||||
|
||||
// Token: 0x02002085 RID: 8325
|
||||
[Token(Token = "0x2002085")]
|
||||
[CompilerGenerated]
|
||||
private sealed class LLCNLEMPPKL
|
||||
{
|
||||
// Token: 0x0600E5E6 RID: 58854 RVA: 0x00368B04 File Offset: 0x00366D04
|
||||
[Token(Token = "0x600E5E6")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public LLCNLEMPPKL()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600E5E7 RID: 58855 RVA: 0x00368B18 File Offset: 0x00366D18
|
||||
[Token(Token = "0x600E5E7")]
|
||||
[Address(RVA = "0x14ECE60", Offset = "0x14EB860", VA = "0x1814ECE60")]
|
||||
internal void <Handle>b__1()
|
||||
{
|
||||
Scheduler instance = SingletonMonoBehaviour.Instance;
|
||||
int num = 0;
|
||||
IEnumerator<ISchedule> enumerator = LinkManager.WaitForLoginNuxAndWatch(false, num);
|
||||
ISchedulerPromise schedulerPromise = instance.Run(enumerator);
|
||||
if (this.<>9__2 == 0)
|
||||
{
|
||||
Action action = delegate
|
||||
{
|
||||
ProfileWatchUIFlow flowByType = WatchUI.BFPPPLIJIGC.GetFlowByType<ProfileWatchUIFlow>();
|
||||
int num2 = 0;
|
||||
bool flag = WatchUI.OpenWatchFlow(flowByType, true, num2);
|
||||
ReferralSubscreen.COJBOMOEJAG cojbomoejag = new ReferralSubscreen.COJBOMOEJAG(this.account, true);
|
||||
flowByType.OpenReferralSubscreen(cojbomoejag);
|
||||
ReferralCode <>4__this = this.CS$<>8__locals1.<>4__this;
|
||||
ObscuredString <KHJCEENDAOL>k__BackingField = this.account.<KHJCEENDAOL>k__BackingField;
|
||||
string text = string.Format(<>4__this.chatFailureTitle, <KHJCEENDAOL>k__BackingField);
|
||||
ReferralCode <>4__this2 = this.CS$<>8__locals1.<>4__this;
|
||||
ObscuredString <KHJCEENDAOL>k__BackingField2 = this.account.<KHJCEENDAOL>k__BackingField;
|
||||
string text2 = string.Format(<>4__this2.chatFailureBody, <KHJCEENDAOL>k__BackingField2);
|
||||
CCEOLAOLEKJ cceolaolekj = this.account;
|
||||
ActionCode.NEIACJEEKFK(text, text2, cceolaolekj);
|
||||
};
|
||||
this.<>9__2 = action;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600E5E8 RID: 58856 RVA: 0x00368B64 File Offset: 0x00366D64
|
||||
[Token(Token = "0x600E5E8")]
|
||||
[Address(RVA = "0x14ECF60", Offset = "0x14EB960", VA = "0x1814ECF60")]
|
||||
internal void <Handle>b__2()
|
||||
{
|
||||
ProfileWatchUIFlow flowByType = WatchUI.BFPPPLIJIGC.GetFlowByType<ProfileWatchUIFlow>();
|
||||
int num = 0;
|
||||
bool flag = WatchUI.OpenWatchFlow(flowByType, true, num);
|
||||
ReferralSubscreen.COJBOMOEJAG cojbomoejag = new ReferralSubscreen.COJBOMOEJAG(this.account, true);
|
||||
flowByType.OpenReferralSubscreen(cojbomoejag);
|
||||
ReferralCode <>4__this = this.CS$<>8__locals1.<>4__this;
|
||||
ObscuredString <KHJCEENDAOL>k__BackingField = this.account.<KHJCEENDAOL>k__BackingField;
|
||||
string text = string.Format(<>4__this.chatFailureTitle, <KHJCEENDAOL>k__BackingField);
|
||||
ReferralCode <>4__this2 = this.CS$<>8__locals1.<>4__this;
|
||||
ObscuredString <KHJCEENDAOL>k__BackingField2 = this.account.<KHJCEENDAOL>k__BackingField;
|
||||
string text2 = string.Format(<>4__this2.chatFailureBody, <KHJCEENDAOL>k__BackingField2);
|
||||
CCEOLAOLEKJ cceolaolekj = this.account;
|
||||
ActionCode.NEIACJEEKFK(text, text2, cceolaolekj);
|
||||
}
|
||||
|
||||
// Token: 0x0400962F RID: 38447
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400962F")]
|
||||
public CCEOLAOLEKJ account;
|
||||
|
||||
// Token: 0x04009630 RID: 38448
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4009630")]
|
||||
public ReferralCode.NCDIGFLOJPM CS$<>8__locals1;
|
||||
|
||||
// Token: 0x04009631 RID: 38449
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4009631")]
|
||||
public Action <>9__2;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user