283 lines
8.9 KiB
C#
283 lines
8.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020001A3 RID: 419
|
|
[Token(Token = "0x20001A3")]
|
|
public class SceneSpawnPoint : SpawnPoint
|
|
{
|
|
// Token: 0x17000218 RID: 536
|
|
// (get) Token: 0x06000D49 RID: 3401 RVA: 0x00039FD8 File Offset: 0x000381D8
|
|
[Token(Token = "0x17000218")]
|
|
public virtual bool ONJINKCJPHN
|
|
{
|
|
[Token(Token = "0x6000D49")]
|
|
[Address(RVA = "0x6B48A0", Offset = "0x6B38A0", VA = "0x1806B48A0", Slot = "20")]
|
|
get
|
|
{
|
|
return this.OJKCNJHOFLF;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000219 RID: 537
|
|
// (get) Token: 0x06000D4A RID: 3402 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x17000219")]
|
|
public virtual IList<long> HIHNIONINGB
|
|
{
|
|
[Token(Token = "0x6000D4A")]
|
|
[Address(RVA = "0x125A640", Offset = "0x1259640", VA = "0x18125A640", Slot = "21")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700021A RID: 538
|
|
// (get) Token: 0x06000D4B RID: 3403 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x1700021A")]
|
|
public virtual IList<long> KCPOGDOHODM
|
|
{
|
|
[Token(Token = "0x6000D4B")]
|
|
[Address(RVA = "0x125A680", Offset = "0x1259680", VA = "0x18125A680", Slot = "22")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700021B RID: 539
|
|
// (get) Token: 0x06000D4C RID: 3404 RVA: 0x00039FEC File Offset: 0x000381EC
|
|
[Token(Token = "0x1700021B")]
|
|
protected override Color FFCPDBLFILO
|
|
{
|
|
[Token(Token = "0x6000D4C")]
|
|
[Address(RVA = "0x1259D60", Offset = "0x1258D60", VA = "0x181259D60", Slot = "17")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06000D4C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Color SceneSpawnPoint::DAEHGOIKLFD()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:Color(var_0_05, callgetter:Color(Color::get_red))
|
|
}
|
|
|
|
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: 0x1700021C RID: 540
|
|
// (get) Token: 0x06000D4D RID: 3405 RVA: 0x0003A000 File Offset: 0x00038200
|
|
// (set) Token: 0x06000D4E RID: 3406 RVA: 0x0003A014 File Offset: 0x00038214
|
|
[Token(Token = "0x1700021C")]
|
|
private List<List<SceneSpawnPoint.EBBGGPDMFIC>> FKMPLIHEGGD
|
|
{
|
|
[Token(Token = "0x6000D4D")]
|
|
[Address(RVA = "0x4C31C0", Offset = "0x4C21C0", VA = "0x1804C31C0")]
|
|
get;
|
|
[Token(Token = "0x6000D4E")]
|
|
[Address(RVA = "0x497020", Offset = "0x496020", VA = "0x180497020")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x06000D4F RID: 3407 RVA: 0x0003A028 File Offset: 0x00038228
|
|
[Token(Token = "0x6000D4F")]
|
|
[Address(RVA = "0x125A190", Offset = "0x1259190", VA = "0x18125A190")]
|
|
private void Start()
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
if ((this.useDoorId ? 1 : 0) != num && !string.IsNullOrEmpty(this.doorQueryID))
|
|
{
|
|
string text = this.doorQueryID;
|
|
string text2 = string.Format("Door.{0}.Query", text);
|
|
num2 += num2;
|
|
num2++;
|
|
JIMCFNAHGJE jimcfnahgje;
|
|
this.roomSelectionQuery = jimcfnahgje;
|
|
}
|
|
bool flag;
|
|
if (!string.IsNullOrEmpty(this.roomSelectionQuery))
|
|
{
|
|
List<List<SceneSpawnPoint.EBBGGPDMFIC>> list = new List();
|
|
this.<EFBMLBONBGM>k__BackingField = list;
|
|
string text3 = this.roomSelectionQuery;
|
|
char[] array = new char[1];
|
|
uint num3;
|
|
num3 += num3;
|
|
uint num4;
|
|
array[0] = (char)num4;
|
|
string[] array2;
|
|
int length = array2.Length;
|
|
if (num2 < length)
|
|
{
|
|
string text4 = array2[num2];
|
|
uint num5;
|
|
string[] array3 = text4.Split(new char[] { (char)num5 }, StringSplitOptions.RemoveEmptyEntries);
|
|
if (array3 != 0 && array3.Length != num2)
|
|
{
|
|
List<SceneSpawnPoint.EBBGGPDMFIC> list2 = new List();
|
|
if (num2 < array3.Length)
|
|
{
|
|
string text5 = array3[num2];
|
|
flag = text5.Contains("#");
|
|
if (flag)
|
|
{
|
|
string text6 = text5.Replace("#", "").Replace("recroomoriginal", "rro");
|
|
if (text6.Contains("-"))
|
|
{
|
|
string text7 = text6.Replace("-", "");
|
|
}
|
|
}
|
|
num2++;
|
|
}
|
|
this.<EFBMLBONBGM>k__BackingField.Add(list2);
|
|
}
|
|
num2++;
|
|
}
|
|
}
|
|
string text8 = this.roomSelectionQuery;
|
|
bool flag2 = !flag;
|
|
this.OJKCNJHOFLF = flag2;
|
|
}
|
|
|
|
// Token: 0x06000D50 RID: 3408 RVA: 0x0003A1AC File Offset: 0x000383AC
|
|
[Token(Token = "0x6000D50")]
|
|
[Address(RVA = "0x1259D90", Offset = "0x1258D90", VA = "0x181259D90")]
|
|
public bool HasValidPreviousRoomConfig(long LGGEHGJPMFN, long OINLJPDAJLF, string AJNFNDCJAEH)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
List<List<SceneSpawnPoint.EBBGGPDMFIC>> list = this.<EFBMLBONBGM>k__BackingField;
|
|
if (list == 0)
|
|
{
|
|
goto IL_83;
|
|
}
|
|
int num2 = 0;
|
|
if (list != 0)
|
|
{
|
|
goto IL_83;
|
|
}
|
|
(new char[num2])[0] = (char)((uint)32);
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
goto IL_95;
|
|
}
|
|
List<List<SceneSpawnPoint.EBBGGPDMFIC>> list2 = this.<EFBMLBONBGM>k__BackingField;
|
|
bool flag2;
|
|
if (flag2)
|
|
{
|
|
int num3 = 0;
|
|
bool flag3;
|
|
bool flag4;
|
|
if (flag3 && (!flag3 || !flag4))
|
|
{
|
|
bool flag5;
|
|
while (flag5)
|
|
{
|
|
}
|
|
}
|
|
if (num != 0)
|
|
{
|
|
goto IL_9B;
|
|
}
|
|
if (1UL != (ulong)(-1L))
|
|
{
|
|
}
|
|
while (num3 == 0)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
while (num != 0);
|
|
if (1UL != (ulong)(-1L))
|
|
{
|
|
string[] array;
|
|
if (array == (ulong)272L)
|
|
{
|
|
return true;
|
|
}
|
|
if (array == (ulong)270L)
|
|
{
|
|
goto IL_95;
|
|
}
|
|
}
|
|
IL_83:
|
|
if (this.ONJINKCJPHN || this.PreviousRooms == 0)
|
|
{
|
|
}
|
|
IL_95:
|
|
throw new NullReferenceException();
|
|
IL_9B:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06000D51 RID: 3409 RVA: 0x0003A260 File Offset: 0x00038460
|
|
[Token(Token = "0x6000D51")]
|
|
[Address(RVA = "0x125A630", Offset = "0x1259630", VA = "0x18125A630")]
|
|
public SceneSpawnPoint()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000A70 RID: 2672
|
|
[Token(Token = "0x4000A70")]
|
|
public static CIEKCAPKBDL<SceneSpawnPoint> Comparer = new CIEKCAPKBDL();
|
|
|
|
// Token: 0x04000A71 RID: 2673
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4000A71")]
|
|
private bool OJKCNJHOFLF;
|
|
|
|
// Token: 0x04000A72 RID: 2674
|
|
[FieldOffset(Offset = "0x71")]
|
|
[Token(Token = "0x4000A72")]
|
|
[Space]
|
|
[SerializeField]
|
|
private bool useDoorId;
|
|
|
|
// Token: 0x04000A73 RID: 2675
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4000A73")]
|
|
[SerializeField]
|
|
[JEAMMEGEDDJ("useDoorId", true)]
|
|
[Tooltip("Use doorId to configure the spawn point based on RecNet Config. This is the same string the TeleportPortal uses.")]
|
|
private string doorQueryID;
|
|
|
|
// Token: 0x04000A74 RID: 2676
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4000A74")]
|
|
[SerializeField]
|
|
[Tooltip("e.g. #pvp #community")]
|
|
[JEAMMEGEDDJ("useDoorId", false)]
|
|
private string roomSelectionQuery;
|
|
|
|
// Token: 0x020001A4 RID: 420
|
|
[Token(Token = "0x20001A4")]
|
|
private struct EBBGGPDMFIC
|
|
{
|
|
// Token: 0x04000A76 RID: 2678
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4000A76")]
|
|
public string NKILHMDECHA;
|
|
|
|
// Token: 0x04000A77 RID: 2679
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4000A77")]
|
|
public bool BEKFIBKFAMB;
|
|
}
|
|
}
|