Files
Aug2021-Cpp2IL-Dump/Assembly-CSharp/RecRoom/Core/VR/UI/WatchNotificationVRController.cs
T
2026-04-10 22:50:51 +02:00

263 lines
12 KiB
C#

using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using RecRoom.Players.Watch;
using UnityEngine;
namespace RecRoom.Core.VR.UI
{
// Token: 0x02002EF0 RID: 12016
[Token(Token = "0x2002EF0")]
[Serializable]
public class WatchNotificationVRController
{
// Token: 0x0601463B RID: 83515 RVA: 0x004BB790 File Offset: 0x004B9990
[Token(Token = "0x601463B")]
[Address(RVA = "0x9C7020", Offset = "0x9C5E20", VA = "0x1809C7020")]
public void BALOKJMBNIN(VRPlayerController FINBOONIGDO, Player IEKDDPPNFPF, NotificationManager ABMJMBDDGHM)
{
int num = 0;
if (!(ABMJMBDDGHM == num))
{
int num2 = 0;
if (!(IEKDDPPNFPF == num2))
{
this.COIBPGNNGCO(IEKDDPPNFPF, ABMJMBDDGHM);
}
}
}
// Token: 0x0601463C RID: 83516 RVA: 0x004BB7C0 File Offset: 0x004B99C0
[Token(Token = "0x601463C")]
[Address(RVA = "0x9C7220", Offset = "0x9C6020", VA = "0x1809C7220")]
private void COIBPGNNGCO(Player IEKDDPPNFPF, NotificationManager ABMJMBDDGHM)
{
int num = 0;
PlayerUI playerUI = IEKDDPPNFPF.playerUI;
int num2 = 0;
if (!(playerUI == num2))
{
PlayerHand attachedHand = IEKDDPPNFPF.playerUI.watchMenuProjector.EKKDJEIFGMJ;
int num3 = 0;
if (!(attachedHand == num3))
{
WatchAttractor <DMFKNEOJGIJ>k__BackingField = IEKDDPPNFPF.playerUI.<DMFKNEOJGIJ>k__BackingField;
int num4 = 0;
KHINMMJIENE khinmmjiene;
if (<DMFKNEOJGIJ>k__BackingField == num4 || !ABMJMBDDGHM.TryConsumeWatchNotification(num) || khinmmjiene != 0)
{
}
}
}
}
// Token: 0x0601463D RID: 83517 RVA: 0x004BB838 File Offset: 0x004B9A38
[Token(Token = "0x601463D")]
[Address(RVA = "0x9C7710", Offset = "0x9C6510", VA = "0x1809C7710")]
private void NGEKHDFJAIK(PlayerUI DGKDMIKKKEF, PlayerHand CFLLPGHCBNI, WatchAttractor DLBHAFEEBAN, NotificationManager.GDHBEIJINND NOEDFHOANIO)
{
int num = 0;
RecRoomAudioClip recRoomAudioClip = this.watchNotificationAudio;
Transform transform = CFLLPGHCBNI.transform;
Vector3 vector;
float z = vector.z;
NotificationManager instance = SingletonMonoBehaviour.ONCPNMDGGKG;
if (instance == 0)
{
}
if (instance == 0)
{
}
IDisposable disposable;
KFBABPAPIMB kfbabpapimb;
if (disposable != (ulong)4L)
{
if (this.hapticsCoroutine != 0)
{
this.hapticsCoroutine = num;
}
Scheduler instance2 = SingletonMonoBehaviour.ONCPNMDGGKG;
WatchNotificationVRController.JDFCAMMLMAG jdfcammlmag;
jdfcammlmag.System.IDisposable.Dispose();
jdfcammlmag.<>1__state = num;
jdfcammlmag.watchHand = CFLLPGHCBNI;
int num2 = 0;
kfbabpapimb = instance2.Run(num2, jdfcammlmag);
this.hapticsCoroutine = kfbabpapimb;
}
if (kfbabpapimb != (ulong)2L)
{
int num3 = 0;
DLBHAFEEBAN.NMIKFJDMHAA = num3 != 0;
if (this.attractorEffectCoroutine != 0)
{
this.attractorEffectCoroutine = num;
}
Scheduler instance3 = SingletonMonoBehaviour.ONCPNMDGGKG;
WatchNotificationVRController.HBOKMMNACHF hbokmmnachf;
hbokmmnachf.System.IDisposable.Dispose();
hbokmmnachf.<>1__state = num;
hbokmmnachf.<>4__this = this;
hbokmmnachf.playerUI = DGKDMIKKKEF;
hbokmmnachf.watchAttractor = DLBHAFEEBAN;
int num4 = 0;
KFBABPAPIMB kfbabpapimb2 = instance3.Run(num4, hbokmmnachf);
this.attractorEffectCoroutine = kfbabpapimb2;
}
}
// Token: 0x0601463E RID: 83518 RVA: 0x004BB92C File Offset: 0x004B9B2C
[Token(Token = "0x601463E")]
[Address(RVA = "0x9C70E0", Offset = "0x9C5EE0", VA = "0x1809C70E0")]
private void BHKMIEEBLIL(PlayerUI DGKDMIKKKEF, WatchAttractor DLBHAFEEBAN)
{
int num = 0;
DLBHAFEEBAN.NMIKFJDMHAA = num != 0;
if (this.attractorEffectCoroutine != 0)
{
this.attractorEffectCoroutine = (ulong)0L;
}
Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG;
WatchNotificationVRController.HBOKMMNACHF hbokmmnachf;
hbokmmnachf.System.IDisposable.Dispose();
hbokmmnachf.<>1__state = (int)((ulong)0L);
hbokmmnachf.<>4__this = this;
hbokmmnachf.playerUI = DGKDMIKKKEF;
hbokmmnachf.watchAttractor = DLBHAFEEBAN;
int num2 = 0;
KFBABPAPIMB kfbabpapimb = instance.Run(num2, hbokmmnachf);
this.attractorEffectCoroutine = kfbabpapimb;
}
// Token: 0x0601463F RID: 83519 RVA: 0x004BB998 File Offset: 0x004B9B98
[Token(Token = "0x601463F")]
[Address(RVA = "0x9C7450", Offset = "0x9C6250", VA = "0x1809C7450")]
private void DNMJBNJNPLH(WatchAttractor DLBHAFEEBAN)
{
int num = 0;
DLBHAFEEBAN.NMIKFJDMHAA = num != 0;
if (this.attractorEffectCoroutine != 0)
{
this.attractorEffectCoroutine = (ulong)0L;
}
}
// Token: 0x06014640 RID: 83520 RVA: 0x004BB9C8 File Offset: 0x004B9BC8
[Token(Token = "0x6014640")]
[Address(RVA = "0x9C7630", Offset = "0x9C6430", VA = "0x1809C7630")]
private IEnumerator<KENFJGFMIPM> JFNKLHJHBJH(PlayerUI DGKDMIKKKEF, WatchAttractor DLBHAFEEBAN)
{
/*
An exception occurred when decompiling this method (06014640)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<KENFJGFMIPM> RecRoom.Core.VR.UI.WatchNotificationVRController::JFNKLHJHBJH(PlayerUI,RecRoom.Players.Watch.WatchAttractor)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(HBOKMMNACHF::System.IDisposable.Dispose, ldloc:HBOKMMNACHF(var_0))
stfld:WatchNotificationVRController(HBOKMMNACHF::<>4__this, ldloc:HBOKMMNACHF(var_0), ldloc:WatchNotificationVRController(this))
stfld:PlayerUI(HBOKMMNACHF::playerUI, ldloc:HBOKMMNACHF(var_0), ldloc:PlayerUI(DGKDMIKKKEF))
stfld:int32(HBOKMMNACHF::<>1__state, ldloc:HBOKMMNACHF(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
stfld:WatchAttractor(HBOKMMNACHF::watchAttractor, ldloc:HBOKMMNACHF(var_0), ldloc:WatchAttractor(DLBHAFEEBAN))
}
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: 0x06014641 RID: 83521 RVA: 0x004BB9F8 File Offset: 0x004B9BF8
[Token(Token = "0x6014641")]
[Address(RVA = "0x9C7510", Offset = "0x9C6310", VA = "0x1809C7510")]
private void HJMJDOGMCJF(PlayerHand CFLLPGHCBNI)
{
if (this.hapticsCoroutine != 0)
{
this.hapticsCoroutine = (ulong)0L;
}
Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG;
WatchNotificationVRController.JDFCAMMLMAG jdfcammlmag;
jdfcammlmag.System.IDisposable.Dispose();
jdfcammlmag.<>1__state = (int)((ulong)0L);
jdfcammlmag.watchHand = CFLLPGHCBNI;
int num = 0;
KFBABPAPIMB kfbabpapimb = instance.Run(num, jdfcammlmag);
this.hapticsCoroutine = kfbabpapimb;
}
// Token: 0x06014642 RID: 83522 RVA: 0x004BBA4C File Offset: 0x004B9C4C
[Token(Token = "0x6014642")]
[Address(RVA = "0x9C74C0", Offset = "0x9C62C0", VA = "0x1809C74C0")]
private void GGDLGIPEKLH()
{
if (this.hapticsCoroutine != 0)
{
this.hapticsCoroutine = (ulong)0L;
}
}
// Token: 0x06014643 RID: 83523 RVA: 0x004BBA6C File Offset: 0x004B9C6C
[Token(Token = "0x6014643")]
[Address(RVA = "0x9C76B0", Offset = "0x9C64B0", VA = "0x1809C76B0")]
private IEnumerator<KENFJGFMIPM> JPLPOKDFMAF(PlayerHand CFLLPGHCBNI)
{
/*
An exception occurred when decompiling this method (06014643)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<KENFJGFMIPM> RecRoom.Core.VR.UI.WatchNotificationVRController::JPLPOKDFMAF(PlayerHand)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(JDFCAMMLMAG::System.IDisposable.Dispose, ldloc:JDFCAMMLMAG(var_0))
stfld:int32(JDFCAMMLMAG::<>1__state, ldloc:JDFCAMMLMAG(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
stfld:PlayerHand(JDFCAMMLMAG::watchHand, ldloc:JDFCAMMLMAG(var_0), ldloc:PlayerHand(CFLLPGHCBNI))
}
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: 0x06014644 RID: 83524 RVA: 0x004BBA90 File Offset: 0x004B9C90
[Token(Token = "0x6014644")]
[Address(RVA = "0x9C7B10", Offset = "0x9C6910", VA = "0x1809C7B10")]
public WatchNotificationVRController()
{
}
// Token: 0x0400D48B RID: 54411
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400D48B")]
[SerializeField]
private float watchNotificationDuration = 10f;
// Token: 0x0400D48C RID: 54412
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400D48C")]
[SerializeField]
private RecRoomAudioClip watchNotificationAudio;
// Token: 0x0400D48D RID: 54413
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400D48D")]
private KFBABPAPIMB attractorEffectCoroutine;
// Token: 0x0400D48E RID: 54414
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400D48E")]
private KFBABPAPIMB hapticsCoroutine;
}
}