268 lines
9.6 KiB
C#
268 lines
9.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core.Creation;
|
|
using RecRoom.Core.Creation.Circuits;
|
|
|
|
// Token: 0x02002A94 RID: 10900
|
|
[Token(Token = "0x2002A94")]
|
|
public static class KCPNMEMDCAB
|
|
{
|
|
// Token: 0x060124E5 RID: 74981 RVA: 0x00430704 File Offset: 0x0042E904
|
|
[Token(Token = "0x60124E5")]
|
|
[Address(RVA = "0x115D7C0", Offset = "0x115C5C0", VA = "0x18115D7C0")]
|
|
public static bool OACIANBCPOG(CreationContext OLFNCDHDFPF)
|
|
{
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
List<CreationObject> chmmbnihbja = OLFNCDHDFPF.CHMMBNIHBJA;
|
|
int num2 = 0;
|
|
StateMachineCircuitNodeDisplay stateMachineCircuitNodeDisplay;
|
|
if (stateMachineCircuitNodeDisplay != num2)
|
|
{
|
|
IEnumerable<StateMachineState> allStates = stateMachineCircuitNodeDisplay.AllStates;
|
|
if (allStates != 0)
|
|
{
|
|
int num3 = 0;
|
|
CreationObject creationObject;
|
|
if (!(creationObject != num3) || Enumerable.Contains<CreationObject>(OLFNCDHDFPF.CHMMBNIHBJA, creationObject))
|
|
{
|
|
continue;
|
|
}
|
|
}
|
|
if (allStates != 0)
|
|
{
|
|
}
|
|
if (num != 0)
|
|
{
|
|
goto IL_118;
|
|
}
|
|
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
|
{
|
|
}
|
|
}
|
|
int num4 = 0;
|
|
StateMachineState stateMachineState;
|
|
if (stateMachineState != num4)
|
|
{
|
|
StateMachineCircuitNodeDisplay stateMachineOwner = stateMachineState.CLBGBCFNAII;
|
|
int num5 = 0;
|
|
if (stateMachineOwner != num5)
|
|
{
|
|
CreationObject component = stateMachineState.CLBGBCFNAII.GetComponent<CreationObject>();
|
|
int num6 = 0;
|
|
if (!(component != num6) || !Enumerable.Contains<CreationObject>(OLFNCDHDFPF.CHMMBNIHBJA, component))
|
|
{
|
|
}
|
|
IEnumerable<StateMachineState> allStates2 = stateMachineState.CLBGBCFNAII.AllStates;
|
|
if (allStates2 != 0)
|
|
{
|
|
int num7 = 0;
|
|
CreationObject creationObject2;
|
|
if (!(creationObject2 != num7) || Enumerable.Contains<CreationObject>(OLFNCDHDFPF.CHMMBNIHBJA, creationObject2))
|
|
{
|
|
continue;
|
|
}
|
|
}
|
|
if (allStates2 != 0)
|
|
{
|
|
}
|
|
if (num != 0)
|
|
{
|
|
goto IL_148;
|
|
}
|
|
while ((ulong)((uint)(-1)) == (ulong)(-1L))
|
|
{
|
|
}
|
|
if (num == 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
bool flag;
|
|
return flag;
|
|
IL_118:
|
|
throw new NullReferenceException();
|
|
IL_148:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060124E6 RID: 74982 RVA: 0x00430884 File Offset: 0x0042EA84
|
|
[Token(Token = "0x60124E6")]
|
|
[Address(RVA = "0x115B8C0", Offset = "0x115A6C0", VA = "0x18115B8C0")]
|
|
public static int EDHGJGAOFPL(IEnumerable<CreationObject> INDOBHBBLCP)
|
|
{
|
|
int i;
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
CircuitGroup circuitGroup;
|
|
if (circuitGroup != num2)
|
|
{
|
|
i = circuitGroup.<CGBNOHOLDGN>k__BackingField;
|
|
while (i <= num)
|
|
{
|
|
}
|
|
if (num == 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
// Token: 0x060124E7 RID: 74983 RVA: 0x004308C8 File Offset: 0x0042EAC8
|
|
[Token(Token = "0x60124E7")]
|
|
[Address(RVA = "0x115BF20", Offset = "0x115AD20", VA = "0x18115BF20")]
|
|
public static void LECILJBEPEP(IEnumerable<CreationObject> MKGIKJCPBII, CircuitGroup ILEBIPDBPGB, bool LHGCDMMDHON, out int KMFECBLIDKA, out int AOHNKHLMDGC)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060124E7)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void KCPNMEMDCAB::LECILJBEPEP(System.Collections.Generic.IEnumerable`1<RecRoom.Core.Creation.CreationObject>,RecRoom.Core.Creation.Circuits.CircuitGroup,System.Boolean,System.Int32&,System.Int32&)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_301:
|
|
brtrue(IL_301, cne:bool(ldloc:bool(var_75), ldc.i4:bool(0)))
|
|
}
|
|
|
|
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: 0x060124E8 RID: 74984 RVA: 0x00430BDC File Offset: 0x0042EDDC
|
|
[Token(Token = "0x60124E8")]
|
|
[Address(RVA = "0x115DF90", Offset = "0x115CD90", VA = "0x18115DF90")]
|
|
private static void OJFPJMHFPBC(CreationObject OCIJDLJLCON, IEnumerable<CreationObject> MKGIKJCPBII, CreationObject AJLLFDHFEIO, bool IILJHEIPHKH, bool LHGCDMMDHON, ref int KMFECBLIDKA, ref int AOHNKHLMDGC)
|
|
{
|
|
if (OCIJDLJLCON == AJLLFDHFEIO)
|
|
{
|
|
goto IL_18;
|
|
}
|
|
if (Enumerable.Contains<CreationObject>(MKGIKJCPBII, OCIJDLJLCON))
|
|
{
|
|
return;
|
|
}
|
|
if (!IILJHEIPHKH)
|
|
{
|
|
goto IL_18;
|
|
}
|
|
IL_34:
|
|
while (!IILJHEIPHKH)
|
|
{
|
|
}
|
|
return;
|
|
IL_18:
|
|
if (IILJHEIPHKH)
|
|
{
|
|
if (OCIJDLJLCON == AJLLFDHFEIO)
|
|
{
|
|
goto IL_34;
|
|
}
|
|
if (!Enumerable.Contains<CreationObject>(MKGIKJCPBII, OCIJDLJLCON))
|
|
{
|
|
while (IILJHEIPHKH)
|
|
{
|
|
}
|
|
goto IL_34;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060124E9 RID: 74985 RVA: 0x00430C24 File Offset: 0x0042EE24
|
|
[Token(Token = "0x60124E9")]
|
|
[Address(RVA = "0x115BA30", Offset = "0x115A830", VA = "0x18115BA30")]
|
|
public static string HMMCAGMKGOH()
|
|
{
|
|
NotificationManager instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
int num;
|
|
string text = string.Format("Max {0} external input connections!", num);
|
|
return "Too many external input connections";
|
|
}
|
|
|
|
// Token: 0x060124EA RID: 74986 RVA: 0x00430C54 File Offset: 0x0042EE54
|
|
[Token(Token = "0x60124EA")]
|
|
[Address(RVA = "0x115BD80", Offset = "0x115AB80", VA = "0x18115BD80")]
|
|
public static string KOHJIJEDCNH()
|
|
{
|
|
NotificationManager instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
int num;
|
|
string text = string.Format("Max {0} external output connections!", num);
|
|
return "Too many external output connections";
|
|
}
|
|
|
|
// Token: 0x060124EB RID: 74987 RVA: 0x00430C84 File Offset: 0x0042EE84
|
|
[Token(Token = "0x60124EB")]
|
|
[Address(RVA = "0x115BE50", Offset = "0x115AC50", VA = "0x18115BE50")]
|
|
public static string LDLOKHBMJCD()
|
|
{
|
|
NotificationManager instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
int num;
|
|
string text = string.Format("Max {0} circuit boards deep!", num);
|
|
return "Too many nested circuit boards";
|
|
}
|
|
|
|
// Token: 0x060124EC RID: 74988 RVA: 0x00430CB4 File Offset: 0x0042EEB4
|
|
[Token(Token = "0x60124EC")]
|
|
[Address(RVA = "0x115BB00", Offset = "0x115A900", VA = "0x18115BB00")]
|
|
public static bool KODPGJMKFAJ(ConnectionPoint OGBKOIJJKIE, ConnectionCreationContext DGKLJLAHDKC)
|
|
{
|
|
if (OGBKOIJJKIE != 0)
|
|
{
|
|
if (OGBKOIJJKIE == 0)
|
|
{
|
|
if (OGBKOIJJKIE == 0)
|
|
{
|
|
goto IL_47;
|
|
}
|
|
LFBMEDEMGHA activeObjectGroup = DGKLJLAHDKC.AADIMJNJDEC;
|
|
bool flag = OGBKOIJJKIE == activeObjectGroup;
|
|
}
|
|
LFBMEDEMGHA activeObjectGroup2 = DGKLJLAHDKC.AADIMJNJDEC;
|
|
if (DGKLJLAHDKC.AADIMJNJDEC == 0)
|
|
{
|
|
}
|
|
LFBMEDEMGHA activeObjectGroup3 = DGKLJLAHDKC.AADIMJNJDEC;
|
|
bool flag2;
|
|
if (!flag2)
|
|
{
|
|
}
|
|
}
|
|
IL_47:
|
|
if (DGKLJLAHDKC.AADIMJNJDEC == 0)
|
|
{
|
|
}
|
|
LFBMEDEMGHA activeObjectGroup4 = DGKLJLAHDKC.AADIMJNJDEC;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060124ED RID: 74989 RVA: 0x00430D20 File Offset: 0x0042EF20
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x60124ED")]
|
|
[Address(RVA = "0x115E0A0", Offset = "0x115CEA0", VA = "0x18115E0A0")]
|
|
static KCPNMEMDCAB()
|
|
{
|
|
HashSet<CreationObject> hashSet = new HashSet();
|
|
}
|
|
|
|
// Token: 0x0400BD00 RID: 48384
|
|
[Token(Token = "0x400BD00")]
|
|
private static readonly HashSet<CreationObject> BNAGJKDBLJP;
|
|
}
|