Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

275 lines
12 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
using RecRoom.Core.Creation;
using RecRoom.Core.Creation.Shapes;
using RecRoom.QuickActions;
using RecRoom.Tools;
// Token: 0x02003065 RID: 12389
[Token(Token = "0x2003065")]
public class HMEGEAFMOIK : BKDJMIMMHNJ<OEDBBBJJACD>
{
// Token: 0x06015195 RID: 86421 RVA: 0x004F0564 File Offset: 0x004EE764
[Token(Token = "0x6015195")]
[Address(RVA = "0x10277F0", Offset = "0x10265F0", VA = "0x1810277F0")]
public HMEGEAFMOIK(int NPKCAEOBEMO = 16)
: base(NPKCAEOBEMO)
{
}
// Token: 0x17003A29 RID: 14889
// (get) Token: 0x06015196 RID: 86422 RVA: 0x004F0578 File Offset: 0x004EE778
[Token(Token = "0x17003A29")]
public override bool KKPJELKJLEH
{
[Token(Token = "0x6015196")]
[Address(RVA = "0x10270C0", Offset = "0x1025EC0", VA = "0x1810270C0", Slot = "8")]
get
{
List<OEDBBBJJACD> list = this.EKAAOIMDGHH();
this.GAIJKBGEMAB = list;
return Enumerable.Any<OEDBBBJJACD>(list);
}
}
// Token: 0x17003A2A RID: 14890
// (get) Token: 0x06015197 RID: 86423 RVA: 0x004F059C File Offset: 0x004EE79C
[Token(Token = "0x17003A2A")]
public override QuickActionMenu.OAJKEMAMLBI EIMNCODIIMI
{
[Token(Token = "0x6015197")]
[Address(RVA = "0x460DB0", Offset = "0x45FBB0", VA = "0x180460DB0", Slot = "9")]
get
{
return QuickActionMenu.OAJKEMAMLBI.Eyedropper;
}
}
// Token: 0x17003A2B RID: 14891
// (get) Token: 0x06015198 RID: 86424 RVA: 0x004F05AC File Offset: 0x004EE7AC
[Token(Token = "0x17003A2B")]
public override string NMGGGANPHGM
{
[Token(Token = "0x6015198")]
[Address(RVA = "0x10277C0", Offset = "0x10265C0", VA = "0x1810277C0", Slot = "10")]
get
{
return "Eyedropper";
}
}
// Token: 0x06015199 RID: 86425 RVA: 0x004F05C0 File Offset: 0x004EE7C0
[Token(Token = "0x6015199")]
[Address(RVA = "0x10274A0", Offset = "0x10262A0", VA = "0x1810274A0", Slot = "12")]
protected override PMGCJEPKFOF<string> GOFIOAFJCPG()
{
/*
An exception occurred when decompiling this method (06015199)
ICSharpCode.Decompiler.DecompilerException: Error decompiling PMGCJEPKFOF<System.String> HMEGEAFMOIK::GOFIOAFJCPG()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_3:
brtrue(IL_00, ceq:bool(ldloc:DABKFAIHBBP(var_14_C7), ldc.i4:int32[exp:DABKFAIHBBP](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.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.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: 0x0601519A RID: 86426 RVA: 0x004F06A8 File Offset: 0x004EE8A8
[Token(Token = "0x601519A")]
[Address(RVA = "0x1027360", Offset = "0x1026160", VA = "0x181027360")]
private List<OEDBBBJJACD> EKAAOIMDGHH()
{
IEnumerable<OEDBBBJJACD> enumerable = this.DFNOLDNHIDC();
if (enumerable == 0)
{
return new List();
}
Func<OEDBBBJJACD, bool> func;
if (HMEGEAFMOIK.<>c.<>9__9_0 == 0)
{
func = delegate(OEDBBBJJACD s)
{
if (s != 0)
{
return s.FBLEJONFPAK;
}
};
HMEGEAFMOIK.<>c.<>9__9_0 = func;
}
return Enumerable.ToList<OEDBBBJJACD>(Enumerable.Distinct<OEDBBBJJACD>(Enumerable.Where<OEDBBBJJACD>(enumerable, func)));
}
// Token: 0x0601519B RID: 86427 RVA: 0x004F06F8 File Offset: 0x004EE8F8
[Token(Token = "0x601519B")]
[Address(RVA = "0x1027110", Offset = "0x1025F10", VA = "0x181027110")]
[CompilerGenerated]
private IEnumerable<OEDBBBJJACD> DFNOLDNHIDC()
{
CreationContext creationContext = base.KMGKLDDLGDL;
int num = 0;
if (!(creationContext == num))
{
MakerPen.HJPIHGIFKEO currentTargetMode = base.IHABCAKIPCD.CHCJAGKENGF;
if (currentTargetMode == MakerPen.HJPIHGIFKEO.Object)
{
if (creationContext.IPJFJGPPJMH)
{
List<CreationObject> chmmbnihbja = creationContext.CHMMBNIHBJA;
Func<CreationObject, IEnumerable<OEDBBBJJACD>> <>9__9_ = HMEGEAFMOIK.<>c.<>9__9_3;
if (<>9__9_ == 0)
{
HMEGEAFMOIK.<>c.<>9__9_3 = delegate(CreationObject creationObject)
{
int num2 = 0;
if (creationObject != num2)
{
SandboxColorable component = creationObject.GetComponent<SandboxColorable>();
int num3 = 0;
if (!(component != num3))
{
StandaloneShapeContainer component2 = creationObject.GetComponent<StandaloneShapeContainer>();
StandaloneShapeContainer container = component2;
int num4 = 0;
if (!(component2 != num4) || container.MMHCGGAJFGD <= 0)
{
goto IL_9A;
}
IReadOnlyList<Guid> allShapes = container.AllShapes;
Func<Guid, OEDBBBJJACD> func2 = delegate(Guid s)
{
StandaloneShapeContainer container2 = container;
OEDBBBJJACD oedbbbjjacd2;
return oedbbbjjacd2;
};
IEnumerable<Guid> enumerable = Enumerable.Select<Guid, OEDBBBJJACD>(allShapes, func2);
}
OEDBBBJJACD[] array = new OEDBBBJJACD[1];
OEDBBBJJACD oedbbbjjacd = new OEDBBBJJACD(component);
if (oedbbbjjacd != 0)
{
}
array[0] = oedbbbjjacd;
}
IL_9A:
OEDBBBJJACD[] array2 = new OEDBBBJJACD[0];
throw new ArrayTypeMismatchException();
};
}
return Enumerable.SelectMany<CreationObject, OEDBBBJJACD>(chmmbnihbja, <>9__9_);
}
}
else if (currentTargetMode == MakerPen.HJPIHGIFKEO.Shape && creationContext.shapeCreationContext.FACMDIMLMMD)
{
CreationShapeContainer creationShapeContainer3 = creationContext.shapeCreationContext.creationShapeContainer;
CreationShapeContainer creationShapeContainer = creationShapeContainer3;
IReadOnlyList<Guid> readOnlyList = creationContext.shapeCreationContext.ABNCFJMLCMP();
Func<Guid, OEDBBBJJACD> func = delegate(Guid s)
{
CreationShapeContainer creationShapeContainer2 = creationShapeContainer;
OEDBBBJJACD oedbbbjjacd3;
return oedbbbjjacd3;
};
return Enumerable.Select<Guid, OEDBBBJJACD>(readOnlyList, func);
}
}
throw new NullReferenceException();
}
// Token: 0x0601519C RID: 86428 RVA: 0x004F07C8 File Offset: 0x004EE9C8
[Token(Token = "0x601519C")]
[Address(RVA = "0x1027700", Offset = "0x1026500", VA = "0x181027700")]
[CompilerGenerated]
internal static OEDBBBJJACD KOKGONKJOMI(ShapeContainer MLFENGCPKCM, Guid IHFGNPJIFLC)
{
int num = 0;
bool flag;
if (!flag)
{
}
return new OEDBBBJJACD((LNBGEMHOKFN)num, (CLKCBCAGDDK)num);
}
// Token: 0x0400DFAB RID: 57259
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400DFAB")]
private List<OEDBBBJJACD> GAIJKBGEMAB;
// Token: 0x02003066 RID: 12390
[Token(Token = "0x2003066")]
[CompilerGenerated]
private sealed class OPNJCLHOJIJ
{
// Token: 0x0601519D RID: 86429 RVA: 0x004F07EC File Offset: 0x004EE9EC
[Token(Token = "0x601519D")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public OPNJCLHOJIJ()
{
}
// Token: 0x0601519E RID: 86430 RVA: 0x004F0800 File Offset: 0x004EEA00
[Token(Token = "0x601519E")]
[Address(RVA = "0x10250D0", Offset = "0x1023ED0", VA = "0x1810250D0")]
internal OEDBBBJJACD <GatherCurrentSelectionColorableSnapshots>b__4(Guid s)
{
StandaloneShapeContainer standaloneShapeContainer = this.container;
OEDBBBJJACD oedbbbjjacd;
return oedbbbjjacd;
}
// Token: 0x0400DFAC RID: 57260
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400DFAC")]
public StandaloneShapeContainer container;
}
// Token: 0x02003067 RID: 12391
[Token(Token = "0x2003067")]
[CompilerGenerated]
private sealed class GCLGKDKNCIH
{
// Token: 0x0601519F RID: 86431 RVA: 0x004F0818 File Offset: 0x004EEA18
[Token(Token = "0x601519F")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public GCLGKDKNCIH()
{
}
// Token: 0x060151A0 RID: 86432 RVA: 0x004F082C File Offset: 0x004EEA2C
[Token(Token = "0x60151A0")]
[Address(RVA = "0x10250D0", Offset = "0x1023ED0", VA = "0x1810250D0")]
internal OEDBBBJJACD <GatherCurrentSelectionColorableSnapshots>b__5(Guid s)
{
CreationShapeContainer creationShapeContainer = this.creationShapeContainer;
OEDBBBJJACD oedbbbjjacd;
return oedbbbjjacd;
}
// Token: 0x0400DFAD RID: 57261
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400DFAD")]
public CreationShapeContainer creationShapeContainer;
}
}