Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/WeeklyChallengeBulletinBoardUI.cs
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

275 lines
9.6 KiB
C#

using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using RecRoom.Core;
using TMPro;
using UnityEngine;
// Token: 0x02000055 RID: 85
[Token(Token = "0x2000055")]
public class WeeklyChallengeBulletinBoardUI : MonoBehaviour
{
// Token: 0x06000269 RID: 617 RVA: 0x0000D014 File Offset: 0x0000B214
[Token(Token = "0x6000269")]
[Address(RVA = "0x2035F30", Offset = "0x2034F30", VA = "0x182035F30")]
private void Start()
{
Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG;
WeeklyChallengeBulletinBoardUI.PLCFNNMIHHL plcfnnmihhl;
plcfnnmihhl.System.IDisposable.Dispose();
plcfnnmihhl.<>1__state = (int)((ulong)0L);
plcfnnmihhl.<>4__this = this;
KFBABPAPIMB kfbabpapimb = instance.Run(this, plcfnnmihhl);
}
// Token: 0x0600026A RID: 618 RVA: 0x0000D04C File Offset: 0x0000B24C
[Token(Token = "0x600026A")]
[Address(RVA = "0x2035CA0", Offset = "0x2034CA0", VA = "0x182035CA0")]
private IEnumerator<KENFJGFMIPM> OFFLOPLJBBG()
{
/*
An exception occurred when decompiling this method (0600026A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<KENFJGFMIPM> 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: 0x0600026B RID: 619 RVA: 0x0000D070 File Offset: 0x0000B270
[Token(Token = "0x600026B")]
[Address(RVA = "0x2035D00", Offset = "0x2034D00", VA = "0x182035D00")]
private void OnDestroy()
{
ObjectiveChecklist objectiveChecklist;
Delegate delegate2;
do
{
WeeklyChallengeManager instance = SingletonMonoBehaviour.ONCPNMDGGKG;
int num = 0;
bool flag = instance != num;
if (flag)
{
WeeklyChallengeManager instance2 = SingletonMonoBehaviour.ONCPNMDGGKG;
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: 0x0600026C RID: 620 RVA: 0x0000D114 File Offset: 0x0000B314
[Token(Token = "0x600026C")]
[Address(RVA = "0x20355C0", Offset = "0x20345C0", VA = "0x1820355C0")]
private void EKIJCFBMAIC(GameObject IBKGGHGLIFD)
{
RewardDisplay rewardDisplay = this.rewardDisplay;
SavedExtents componentInChildren = IBKGGHGLIFD.GetComponentInChildren<SavedExtents>();
rewardDisplay.Encompass(componentInChildren);
}
// Token: 0x0600026D RID: 621 RVA: 0x0000D13C File Offset: 0x0000B33C
[Token(Token = "0x600026D")]
[Address(RVA = "0x2036000", Offset = "0x2035000", VA = "0x182036000")]
private void Update()
{
WeeklyChallengeManager instance = SingletonMonoBehaviour.ONCPNMDGGKG;
DateTime? <AJAEFIFJLJG>k__BackingField = instance.<AJAEFIFJLJG>k__BackingField;
if (instance != 0)
{
DateTime? <AJAEFIFJLJG>k__BackingField2 = SingletonMonoBehaviour.ONCPNMDGGKG.<AJAEFIFJLJG>k__BackingField;
DateTime utcNow = DateTime.UtcNow;
TimeSpan? <FNCFACOHAJE>k__BackingField = SingletonMonoBehaviour.ONCPNMDGGKG.<FNCFACOHAJE>k__BackingField;
TimeSpan timeSpan;
DateTime dateTime = utcNow + timeSpan;
DateTime dateTime2;
TimeSpan timeSpan2 = dateTime2 - dateTime;
this.AABIMFBCMNN = timeSpan2;
int num;
if (num != this.PBGIFGLINIO)
{
string text = this.MFBGOHOEAEN();
string text2 = this.weeklyChallengePrefix;
TextMeshProUGUI textMeshProUGUI = this.weeklyChallengeTimeRemaining;
string text3 = text2 + text;
PLDMAFINLJO.FANDNIHFMNM(textMeshProUGUI, text3);
int num2;
this.PBGIFGLINIO = num2;
}
}
}
// Token: 0x0600026E RID: 622 RVA: 0x0000D1E4 File Offset: 0x0000B3E4
[Token(Token = "0x600026E")]
[Address(RVA = "0x2035EF0", Offset = "0x2034EF0", VA = "0x182035EF0")]
private void PDGDCHLPGHA()
{
string text = this.MFBGOHOEAEN();
string text2 = this.weeklyChallengePrefix;
TextMeshProUGUI textMeshProUGUI = this.weeklyChallengeTimeRemaining;
string text3 = text2 + text;
PLDMAFINLJO.FANDNIHFMNM(textMeshProUGUI, text3);
}
// Token: 0x0600026F RID: 623 RVA: 0x0000D218 File Offset: 0x0000B418
[Token(Token = "0x600026F")]
[Address(RVA = "0x20355A0", Offset = "0x20345A0", VA = "0x1820355A0")]
private void BNEBFKLIAKC()
{
bool flag = this.weeklyChecklist.UpdateAllObjectives();
}
// Token: 0x06000270 RID: 624 RVA: 0x0000D238 File Offset: 0x0000B438
[Token(Token = "0x6000270")]
[Address(RVA = "0x2035630", Offset = "0x2034630", VA = "0x182035630")]
private string MFBGOHOEAEN()
{
if (SingletonMonoBehaviour.ONCPNMDGGKG != 0)
{
WeeklyChallengeManager instance = SingletonMonoBehaviour.ONCPNMDGGKG;
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: 0x06000271 RID: 625 RVA: 0x0000D348 File Offset: 0x0000B548
[Token(Token = "0x6000271")]
[Address(RVA = "0x20361D0", Offset = "0x20351D0", VA = "0x1820361D0")]
public WeeklyChallengeBulletinBoardUI()
{
}
// Token: 0x04000203 RID: 515
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000203")]
[SerializeField]
private TextMeshProUGUI weeklyChallengeTimeRemaining;
// Token: 0x04000204 RID: 516
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000204")]
[SerializeField]
private string weeklyChallengePrefix = "New Weekly Challenges in ";
// Token: 0x04000205 RID: 517
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000205")]
[SerializeField]
private TextMeshProUGUI themeText;
// Token: 0x04000206 RID: 518
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000206")]
[SerializeField]
private ObjectiveChecklist weeklyChecklist;
// Token: 0x04000207 RID: 519
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000207")]
[SerializeField]
private RewardDisplay rewardDisplay;
// Token: 0x04000208 RID: 520
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000208")]
private SavedExtents OANBIDIDGMJ;
// Token: 0x04000209 RID: 521
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000209")]
private TimeSpan AABIMFBCMNN;
// Token: 0x0400020A RID: 522
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400020A")]
private int PBGIFGLINIO = (int)((ulong)4294967295L);
}