272 lines
9.7 KiB
C#
272 lines
9.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000075 RID: 117
|
|
[Token(Token = "0x2000075")]
|
|
[StructLayout(3)]
|
|
public class WeeklyChallengeBulletinBoardUI : MonoBehaviour
|
|
{
|
|
// Token: 0x0600034F RID: 847 RVA: 0x00010B6C File Offset: 0x0000ED6C
|
|
[Token(Token = "0x600034F")]
|
|
[Address(RVA = "0x2080F10", Offset = "0x207F910", VA = "0x182080F10")]
|
|
private void Start()
|
|
{
|
|
Scheduler instance = SingletonMonoBehaviour.Instance;
|
|
WeeklyChallengeBulletinBoardUI.PLCFNNMIHHL plcfnnmihhl;
|
|
plcfnnmihhl.System.IDisposable.Dispose();
|
|
plcfnnmihhl.<>1__state = (int)((ulong)0L);
|
|
plcfnnmihhl.<>4__this = this;
|
|
ISchedulerPromise schedulerPromise = instance.Run(this, plcfnnmihhl);
|
|
}
|
|
|
|
// Token: 0x06000350 RID: 848 RVA: 0x00010BA4 File Offset: 0x0000EDA4
|
|
[Token(Token = "0x6000350")]
|
|
[Address(RVA = "0x2080C80", Offset = "0x207F680", VA = "0x182080C80")]
|
|
private IEnumerator<ISchedule> OFFLOPLJBBG()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06000350)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<RecRoom.Core.ISchedule> WeeklyChallengeBulletinBoardUI::OFFLOPLJBBG()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(PLCFNNMIHHL::System.IDisposable.Dispose, ldloc:PLCFNNMIHHL(var_0))
|
|
stfld:int32(PLCFNNMIHHL::<>1__state, ldloc:PLCFNNMIHHL(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:WeeklyChallengeBulletinBoardUI(PLCFNNMIHHL::<>4__this, ldloc:PLCFNNMIHHL(var_0), ldloc:WeeklyChallengeBulletinBoardUI(this))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06000351 RID: 849 RVA: 0x00010BC8 File Offset: 0x0000EDC8
|
|
[Token(Token = "0x6000351")]
|
|
[Address(RVA = "0x2080CE0", Offset = "0x207F6E0", VA = "0x182080CE0")]
|
|
private void OnDestroy()
|
|
{
|
|
ObjectiveChecklist objectiveChecklist;
|
|
Delegate delegate2;
|
|
do
|
|
{
|
|
WeeklyChallengeManager instance = SingletonMonoBehaviour.Instance;
|
|
int num = 0;
|
|
bool flag = instance != num;
|
|
if (flag)
|
|
{
|
|
WeeklyChallengeManager instance2 = SingletonMonoBehaviour.Instance;
|
|
Action action = new Action(this.BNEBFKLIAKC);
|
|
Action mijnejmbboc = instance2.MIJNEJMBBOC;
|
|
Delegate @delegate = Delegate.Remove(mijnejmbboc, action);
|
|
if (@delegate != 0 && @delegate == 0)
|
|
{
|
|
continue;
|
|
}
|
|
while (@delegate != mijnejmbboc)
|
|
{
|
|
}
|
|
}
|
|
objectiveChecklist = this.weeklyChecklist;
|
|
Action<GameObject> onRewardObjectSpawned = objectiveChecklist.OnRewardObjectSpawned;
|
|
Action<GameObject> action2 = new Action(this.EKIJCFBMAIC);
|
|
delegate2 = Delegate.Remove(onRewardObjectSpawned, action2);
|
|
}
|
|
while (delegate2 != 0 && delegate2 == 0);
|
|
objectiveChecklist.OnRewardObjectSpawned = delegate2;
|
|
}
|
|
|
|
// Token: 0x06000352 RID: 850 RVA: 0x00010C6C File Offset: 0x0000EE6C
|
|
[Token(Token = "0x6000352")]
|
|
[Address(RVA = "0x20805A0", Offset = "0x207EFA0", VA = "0x1820805A0")]
|
|
private void EKIJCFBMAIC(GameObject IBKGGHGLIFD)
|
|
{
|
|
RewardDisplay rewardDisplay = this.rewardDisplay;
|
|
SavedExtents componentInChildren = IBKGGHGLIFD.GetComponentInChildren<SavedExtents>();
|
|
rewardDisplay.Encompass(componentInChildren);
|
|
}
|
|
|
|
// Token: 0x06000353 RID: 851 RVA: 0x00010C94 File Offset: 0x0000EE94
|
|
[Token(Token = "0x6000353")]
|
|
[Address(RVA = "0x2080FE0", Offset = "0x207F9E0", VA = "0x182080FE0")]
|
|
private void Update()
|
|
{
|
|
WeeklyChallengeManager instance = SingletonMonoBehaviour.Instance;
|
|
DateTime? <AJAEFIFJLJG>k__BackingField = instance.<AJAEFIFJLJG>k__BackingField;
|
|
if (instance != 0)
|
|
{
|
|
DateTime? <AJAEFIFJLJG>k__BackingField2 = SingletonMonoBehaviour.Instance.<AJAEFIFJLJG>k__BackingField;
|
|
DateTime utcNow = DateTime.UtcNow;
|
|
TimeSpan? <FNCFACOHAJE>k__BackingField = SingletonMonoBehaviour.Instance.<FNCFACOHAJE>k__BackingField;
|
|
TimeSpan timeSpan;
|
|
this.AABIMFBCMNN = timeSpan;
|
|
if (timeSpan != this.PBGIFGLINIO)
|
|
{
|
|
string text = this.MFBGOHOEAEN();
|
|
string text2 = this.weeklyChallengePrefix;
|
|
TextMeshProUGUI textMeshProUGUI = this.weeklyChallengeTimeRemaining;
|
|
string text3 = text2 + text;
|
|
PLDMAFINLJO.FANDNIHFMNM(textMeshProUGUI, text3);
|
|
this.PBGIFGLINIO = text3;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000354 RID: 852 RVA: 0x00010D24 File Offset: 0x0000EF24
|
|
[Token(Token = "0x6000354")]
|
|
[Address(RVA = "0x2080ED0", Offset = "0x207F8D0", VA = "0x182080ED0")]
|
|
private void PDGDCHLPGHA()
|
|
{
|
|
string text = this.MFBGOHOEAEN();
|
|
string text2 = this.weeklyChallengePrefix;
|
|
TextMeshProUGUI textMeshProUGUI = this.weeklyChallengeTimeRemaining;
|
|
string text3 = text2 + text;
|
|
PLDMAFINLJO.FANDNIHFMNM(textMeshProUGUI, text3);
|
|
}
|
|
|
|
// Token: 0x06000355 RID: 853 RVA: 0x00010D58 File Offset: 0x0000EF58
|
|
[Token(Token = "0x6000355")]
|
|
[Address(RVA = "0x2080580", Offset = "0x207EF80", VA = "0x182080580")]
|
|
private void BNEBFKLIAKC()
|
|
{
|
|
bool flag = this.weeklyChecklist.UpdateAllObjectives();
|
|
}
|
|
|
|
// Token: 0x06000356 RID: 854 RVA: 0x00010D78 File Offset: 0x0000EF78
|
|
[Token(Token = "0x6000356")]
|
|
[Address(RVA = "0x2080610", Offset = "0x207F010", VA = "0x182080610")]
|
|
private string MFBGOHOEAEN()
|
|
{
|
|
if (SingletonMonoBehaviour.Instance != 0)
|
|
{
|
|
WeeklyChallengeManager instance = SingletonMonoBehaviour.Instance;
|
|
if (instance != 0)
|
|
{
|
|
if (instance <= 0)
|
|
{
|
|
object[] array = new object[4];
|
|
int num;
|
|
if (num != 0)
|
|
{
|
|
}
|
|
array[0] = num;
|
|
int num2;
|
|
if (num2 != 0)
|
|
{
|
|
}
|
|
array[1] = num2;
|
|
if (num2 != 0)
|
|
{
|
|
}
|
|
array[2] = num2;
|
|
if (num2 != 0)
|
|
{
|
|
}
|
|
array[3] = num2;
|
|
return string.Format("{0:D2}:{1:D2}:{2:D2}:{3:D2}", array);
|
|
}
|
|
object[] array2 = new object[4];
|
|
int num3;
|
|
if (num3 != 0)
|
|
{
|
|
}
|
|
array2[0] = num3;
|
|
if (num3 != 0)
|
|
{
|
|
}
|
|
array2[1] = num3;
|
|
if (num3 != 0)
|
|
{
|
|
}
|
|
array2[2] = num3;
|
|
if (num3 != 0)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
object[] array3 = new object[4];
|
|
int num4;
|
|
if (num4 != 0)
|
|
{
|
|
}
|
|
array3[0] = num4;
|
|
int num5;
|
|
if (num5 != 0)
|
|
{
|
|
}
|
|
array3[1] = num5;
|
|
if (num5 != 0)
|
|
{
|
|
}
|
|
array3[2] = num5;
|
|
if (num5 != 0)
|
|
{
|
|
}
|
|
array3[3] = num5;
|
|
return string.Format("{0:D2}:{1:D2}:{2:D2}:{0:D2}", array3);
|
|
}
|
|
|
|
// Token: 0x06000357 RID: 855 RVA: 0x00010E80 File Offset: 0x0000F080
|
|
[Token(Token = "0x6000357")]
|
|
[Address(RVA = "0x20811B0", Offset = "0x207FBB0", VA = "0x1820811B0")]
|
|
public WeeklyChallengeBulletinBoardUI()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040002E8 RID: 744
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40002E8")]
|
|
[SerializeField]
|
|
private TextMeshProUGUI weeklyChallengeTimeRemaining;
|
|
|
|
// Token: 0x040002E9 RID: 745
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40002E9")]
|
|
[SerializeField]
|
|
private string weeklyChallengePrefix = "New Weekly Challenges in ";
|
|
|
|
// Token: 0x040002EA RID: 746
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40002EA")]
|
|
[SerializeField]
|
|
private TextMeshProUGUI themeText;
|
|
|
|
// Token: 0x040002EB RID: 747
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40002EB")]
|
|
[SerializeField]
|
|
private ObjectiveChecklist weeklyChecklist;
|
|
|
|
// Token: 0x040002EC RID: 748
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40002EC")]
|
|
[SerializeField]
|
|
private RewardDisplay rewardDisplay;
|
|
|
|
// Token: 0x040002ED RID: 749
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40002ED")]
|
|
private SavedExtents OANBIDIDGMJ;
|
|
|
|
// Token: 0x040002EE RID: 750
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x40002EE")]
|
|
private TimeSpan AABIMFBCMNN;
|
|
|
|
// Token: 0x040002EF RID: 751
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40002EF")]
|
|
private int PBGIFGLINIO = (int)((ulong)4294967295L);
|
|
}
|