Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

242 lines
9.5 KiB
C#

using System;
using Cpp2IlInjected;
using Photon.Pun;
using RecRoom.Activities.SubScenes;
using RecRoom.Core.Encounters;
using UnityEngine;
namespace RecRoom.Activities.Orientation
{
// Token: 0x02002D45 RID: 11589
[Token(Token = "0x2002D45")]
[RequireComponent(typeof(PhotonView))]
public class OrientationSubScene : BaseActivitySubScene
{
// Token: 0x17003607 RID: 13831
// (get) Token: 0x060137D1 RID: 79825 RVA: 0x0047F718 File Offset: 0x0047D918
[Token(Token = "0x17003607")]
public bool BICMECLEPLM
{
[Token(Token = "0x60137D1")]
[Address(RVA = "0x162FE10", Offset = "0x162EE10", VA = "0x18162FE10")]
get
{
DJHELPHHAEN eomonbhhcon = this.EOMONBHHCON;
bool flag;
return flag;
}
}
// Token: 0x17003608 RID: 13832
// (get) Token: 0x060137D2 RID: 79826 RVA: 0x0047F734 File Offset: 0x0047D934
[Token(Token = "0x17003608")]
protected override bool HFHFPKJENJD
{
[Token(Token = "0x60137D2")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "15")]
get
{
}
}
// Token: 0x060137D3 RID: 79827 RVA: 0x0047F744 File Offset: 0x0047D944
[Token(Token = "0x60137D3")]
[Address(RVA = "0x162F650", Offset = "0x162E650", VA = "0x18162F650", Slot = "13")]
protected override void Awake()
{
base..ctor();
int num;
DJHELPHHAEN djhelphhaen = new DJHELPHHAEN("SUBSCENE", OHOEENCHJJE.MASTER, num);
int num2 = 0;
num = 0;
this.EOMONBHHCON = djhelphhaen;
int num3 = 0;
int num4 = 0;
int num5 = 0;
djhelphhaen.JEPMLPCOGNM((ushort)num3, num5, num4, num2);
DJHELPHHAEN eomonbhhcon = this.EOMONBHHCON;
DJHELPHHAEN eomonbhhcon2 = this.EOMONBHHCON;
SceneSpawnPoint[] componentsInChildren = base.GetComponentsInChildren<SceneSpawnPoint>(true);
this.NDMFPANDOCB = componentsInChildren;
TeleportationPortal[] componentsInChildren2 = base.GetComponentsInChildren<TeleportationPortal>(true);
this.MFNABBJJAMG = componentsInChildren2;
if (componentsInChildren2 != 0 && componentsInChildren2.Length != num2)
{
int length = componentsInChildren2.Length;
if (num2 < length)
{
TeleportationPortal teleportationPortal = componentsInChildren2[num2];
Action<TeleportationPortal> action = new Action(this.BNKLJNOHAIG);
teleportationPortal.LocalPlayerUseEvent += action;
num2++;
}
}
if (this.NDMFPANDOCB.Length != 0)
{
SceneSpawnManager spawnManager = RecRoomSceneManager.<OCDLBPHJMOP>k__BackingField.spawnManager;
SceneSpawnPoint[] ndmfpandocb = this.NDMFPANDOCB;
spawnManager.LIGHOAFFKIL(ndmfpandocb);
}
}
// Token: 0x060137D4 RID: 79828 RVA: 0x0047F834 File Offset: 0x0047DA34
[Token(Token = "0x60137D4")]
[Address(RVA = "0x162FCC0", Offset = "0x162ECC0", VA = "0x18162FCC0")]
private void Start()
{
GameEncounter[] componentsInChildren = base.GetComponentsInChildren<GameEncounter>();
if (componentsInChildren != 0)
{
int num = 0;
int length = componentsInChildren.Length;
if (num < length)
{
GameEncounter gameEncounter = componentsInChildren[num];
if (gameEncounter != 0)
{
gameEncounter.Initialize();
}
num++;
}
if (KKPBCOOONNK.BNNCCCFFALC)
{
int length2 = componentsInChildren.Length;
if (num < length2)
{
GameEncounter gameEncounter2 = componentsInChildren[num];
if (gameEncounter2 != 0)
{
gameEncounter2.MasterActivate();
}
num++;
}
}
}
DJHELPHHAEN eomonbhhcon = this.EOMONBHHCON;
}
// Token: 0x060137D5 RID: 79829 RVA: 0x0047F8B0 File Offset: 0x0047DAB0
[Token(Token = "0x60137D5")]
[Address(RVA = "0x162F9B0", Offset = "0x162E9B0", VA = "0x18162F9B0", Slot = "14")]
protected override void OnDestroy()
{
base.OnDestroy();
TeleportationPortal[] mfnabbjjamg = this.MFNABBJJAMG;
if (mfnabbjjamg != 0)
{
int num = 0;
int length = mfnabbjjamg.Length;
if (num < length)
{
TeleportationPortal teleportationPortal = mfnabbjjamg[num];
int num2 = 0;
if (teleportationPortal != num2)
{
Action<TeleportationPortal> action = new Action(this.BNKLJNOHAIG);
teleportationPortal.LocalPlayerUseEvent -= action;
}
num++;
}
}
if (this.NDMFPANDOCB.Length != 0)
{
RecRoomSceneManager <OCDLBPHJMOP>k__BackingField = RecRoomSceneManager.<OCDLBPHJMOP>k__BackingField;
int num3 = 0;
if (<OCDLBPHJMOP>k__BackingField != num3)
{
SceneSpawnManager spawnManager = RecRoomSceneManager.<OCDLBPHJMOP>k__BackingField.spawnManager;
SceneSpawnPoint[] ndmfpandocb = this.NDMFPANDOCB;
spawnManager.HPALJOPGFBH(ndmfpandocb);
}
}
}
// Token: 0x060137D6 RID: 79830 RVA: 0x0047F954 File Offset: 0x0047DB54
[Token(Token = "0x60137D6")]
[Address(RVA = "0x162FDE0", Offset = "0x162EDE0", VA = "0x18162FDE0")]
private void Update()
{
this.EOMONBHHCON.OPEMIFENIJM();
}
// Token: 0x060137D7 RID: 79831 RVA: 0x0047F974 File Offset: 0x0047DB74
[Token(Token = "0x60137D7")]
[Address(RVA = "0x162F8C0", Offset = "0x162E8C0", VA = "0x18162F8C0")]
private void BNKLJNOHAIG(TeleportationPortal DIFMJNKHNJH)
{
/*
An exception occurred when decompiling this method (060137D7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RecRoom.Activities.Orientation.OrientationSubScene::BNKLJNOHAIG(TeleportationPortal)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_32:
stloc:Exception(var_3_3C, newobj:Exception(Exception::.ctor, ldstr:string("Orientation door is not configured correctly. \nAll doors must be custom events that route through OrientationManager.")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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: 0x060137D8 RID: 79832 RVA: 0x0047F9C0 File Offset: 0x0047DBC0
[Token(Token = "0x60137D8")]
[Address(RVA = "0x162FC30", Offset = "0x162EC30", VA = "0x18162FC30")]
[NFOMENMAOIA]
private void RpcRequestMasterFinishRoom()
{
if (KKPBCOOONNK.BNNCCCFFALC)
{
DJHELPHHAEN eomonbhhcon = this.EOMONBHHCON;
return;
}
}
// Token: 0x060137D9 RID: 79833 RVA: 0x0047F9E8 File Offset: 0x0047DBE8
[Token(Token = "0x60137D9")]
[Address(RVA = "0x12EEEE0", Offset = "0x12EDEE0", VA = "0x1812EEEE0")]
public OrientationSubScene()
{
}
// Token: 0x0400CA37 RID: 51767
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x400CA37")]
private DJHELPHHAEN EOMONBHHCON;
// Token: 0x0400CA38 RID: 51768
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x400CA38")]
private TeleportationPortal[] MFNABBJJAMG;
// Token: 0x0400CA39 RID: 51769
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x400CA39")]
private SceneSpawnPoint[] NDMFPANDOCB;
// Token: 0x02002D46 RID: 11590
[Token(Token = "0x2002D46")]
private enum KNGILINEPNA
{
// Token: 0x0400CA3B RID: 51771
[Token(Token = "0x400CA3B")]
INVALID,
// Token: 0x0400CA3C RID: 51772
[Token(Token = "0x400CA3C")]
RUNNING,
// Token: 0x0400CA3D RID: 51773
[Token(Token = "0x400CA3D")]
FINISHED
}
}
}