242 lines
9.5 KiB
C#
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: 0x02002C5C RID: 11356
|
|
[Token(Token = "0x2002C5C")]
|
|
[RequireComponent(typeof(PhotonView))]
|
|
public class OrientationSubScene : BaseActivitySubScene
|
|
{
|
|
// Token: 0x17003553 RID: 13651
|
|
// (get) Token: 0x06013390 RID: 78736 RVA: 0x004759BC File Offset: 0x00473BBC
|
|
[Token(Token = "0x17003553")]
|
|
public bool BICMECLEPLM
|
|
{
|
|
[Token(Token = "0x6013390")]
|
|
[Address(RVA = "0xB2FFB0", Offset = "0xB2EDB0", VA = "0x180B2FFB0")]
|
|
get
|
|
{
|
|
DJHELPHHAEN eomonbhhcon = this.EOMONBHHCON;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003554 RID: 13652
|
|
// (get) Token: 0x06013391 RID: 78737 RVA: 0x004759D8 File Offset: 0x00473BD8
|
|
[Token(Token = "0x17003554")]
|
|
protected override bool HFHFPKJENJD
|
|
{
|
|
[Token(Token = "0x6013391")]
|
|
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "15")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013392 RID: 78738 RVA: 0x004759E8 File Offset: 0x00473BE8
|
|
[Token(Token = "0x6013392")]
|
|
[Address(RVA = "0xB2F7F0", Offset = "0xB2E5F0", VA = "0x180B2F7F0", 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: 0x06013393 RID: 78739 RVA: 0x00475AD8 File Offset: 0x00473CD8
|
|
[Token(Token = "0x6013393")]
|
|
[Address(RVA = "0xB2FE60", Offset = "0xB2EC60", VA = "0x180B2FE60")]
|
|
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: 0x06013394 RID: 78740 RVA: 0x00475B54 File Offset: 0x00473D54
|
|
[Token(Token = "0x6013394")]
|
|
[Address(RVA = "0xB2FB50", Offset = "0xB2E950", VA = "0x180B2FB50", 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: 0x06013395 RID: 78741 RVA: 0x00475BF8 File Offset: 0x00473DF8
|
|
[Token(Token = "0x6013395")]
|
|
[Address(RVA = "0xB2FF80", Offset = "0xB2ED80", VA = "0x180B2FF80")]
|
|
private void Update()
|
|
{
|
|
this.EOMONBHHCON.OPEMIFENIJM();
|
|
}
|
|
|
|
// Token: 0x06013396 RID: 78742 RVA: 0x00475C18 File Offset: 0x00473E18
|
|
[Token(Token = "0x6013396")]
|
|
[Address(RVA = "0xB2FA60", Offset = "0xB2E860", VA = "0x180B2FA60")]
|
|
private void BNKLJNOHAIG(TeleportationPortal DIFMJNKHNJH)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06013396)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06013397 RID: 78743 RVA: 0x00475C64 File Offset: 0x00473E64
|
|
[Token(Token = "0x6013397")]
|
|
[Address(RVA = "0xB2FDD0", Offset = "0xB2EBD0", VA = "0x180B2FDD0")]
|
|
[NFOMENMAOIA]
|
|
private void RpcRequestMasterFinishRoom()
|
|
{
|
|
if (KKPBCOOONNK.BNNCCCFFALC)
|
|
{
|
|
DJHELPHHAEN eomonbhhcon = this.EOMONBHHCON;
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013398 RID: 78744 RVA: 0x00475C8C File Offset: 0x00473E8C
|
|
[Token(Token = "0x6013398")]
|
|
[Address(RVA = "0x7FA090", Offset = "0x7F8E90", VA = "0x1807FA090")]
|
|
public OrientationSubScene()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400C823 RID: 51235
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400C823")]
|
|
private DJHELPHHAEN EOMONBHHCON;
|
|
|
|
// Token: 0x0400C824 RID: 51236
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x400C824")]
|
|
private TeleportationPortal[] MFNABBJJAMG;
|
|
|
|
// Token: 0x0400C825 RID: 51237
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x400C825")]
|
|
private SceneSpawnPoint[] NDMFPANDOCB;
|
|
|
|
// Token: 0x02002C5D RID: 11357
|
|
[Token(Token = "0x2002C5D")]
|
|
private enum KNGILINEPNA
|
|
{
|
|
// Token: 0x0400C827 RID: 51239
|
|
[Token(Token = "0x400C827")]
|
|
INVALID,
|
|
// Token: 0x0400C828 RID: 51240
|
|
[Token(Token = "0x400C828")]
|
|
RUNNING,
|
|
// Token: 0x0400C829 RID: 51241
|
|
[Token(Token = "0x400C829")]
|
|
FINISHED
|
|
}
|
|
}
|
|
}
|