using System; using System.Collections.Generic; using System.Runtime.InteropServices; using Cpp2IlInjected; using Photon.Pun; using RecRoom.Circuits; using UnityEngine; namespace RecRoom.Core.Creation.Circuits { // Token: 0x02002C90 RID: 11408 [Token(Token = "0x2002C90")] [StructLayout(3)] public class LightCircuitNode : CircuitEventNodeDisplayBase { // Token: 0x170035B5 RID: 13749 // (get) Token: 0x060141A7 RID: 82343 RVA: 0x004D3698 File Offset: 0x004D1898 // (set) Token: 0x060141A8 RID: 82344 RVA: 0x004D36AC File Offset: 0x004D18AC [Token(Token = "0x170035B5")] public override InputMetadata[] LKIOMMEBJEC { [Token(Token = "0x60141A7")] [Address(RVA = "0x3CBEE0", Offset = "0x3CA8E0", VA = "0x1803CBEE0", Slot = "36")] get { return this.NMHFGAOFMHD; } [Token(Token = "0x60141A8")] [Address(RVA = "0x6FC800", Offset = "0x6FB200", VA = "0x1806FC800", Slot = "37")] set { this.NMHFGAOFMHD = value; } } // Token: 0x170035B6 RID: 13750 // (get) Token: 0x060141A9 RID: 82345 RVA: 0x004D36C0 File Offset: 0x004D18C0 // (set) Token: 0x060141AA RID: 82346 RVA: 0x004D36D4 File Offset: 0x004D18D4 [Token(Token = "0x170035B6")] public bool GDCDDIEMKHG { [Token(Token = "0x60141A9")] [Address(RVA = "0x10D4990", Offset = "0x10D3390", VA = "0x1810D4990")] get { return this.ADACKCPFECH; } [Token(Token = "0x60141AA")] [Address(RVA = "0x16D1450", Offset = "0x16CFE50", VA = "0x1816D1450")] set { if (this.ADACKCPFECH != value) { this.ADACKCPFECH = value; GameObject gameObject = this.shaftRenderer.gameObject; bool adackcpfech = this.ADACKCPFECH; gameObject.SetActive(adackcpfech); return; } } } // Token: 0x060141AB RID: 82347 RVA: 0x004D3714 File Offset: 0x004D1914 [Token(Token = "0x60141AB")] [Address(RVA = "0x16D0B50", Offset = "0x16CF550", VA = "0x1816D0B50", Slot = "27")] protected override void GPPNKOGIEOP() { base.GPPNKOGIEOP(); Dictionary dictionary = new Dictionary(); int inputSignal = this.MBBJMCDGDMN.GetInputSignal(InputSlot.C); dictionary.Add((uint)3, inputSignal); int inputSignal2 = this.MBBJMCDGDMN.GetInputSignal(InputSlot.M); dictionary.Add((uint)4, inputSignal2); int inputSignal3 = this.MBBJMCDGDMN.GetInputSignal(InputSlot.Y); dictionary.Add((uint)5, inputSignal3); bool isCompleted = ((IAsyncResult)this).IsCompleted; } // Token: 0x060141AC RID: 82348 RVA: 0x004D3780 File Offset: 0x004D1980 [Token(Token = "0x60141AC")] [Address(RVA = "0x16D0A60", Offset = "0x16CF460", VA = "0x1816D0A60", Slot = "13")] protected override void Awake() { MaterialPropertyBlock materialPropertyBlock = new MaterialPropertyBlock(); this.HGMLMLKMNHF = materialPropertyBlock; SandboxColorable sandboxColorable = this.sandboxColorable; Action action = new Action(this.OEJIJENICFE); sandboxColorable.JJCKDBNNKAM += action; base.Awake(); bool isCompleted = ((IAsyncResult)this).IsCompleted; } // Token: 0x060141AD RID: 82349 RVA: 0x004D37C8 File Offset: 0x004D19C8 [Token(Token = "0x60141AD")] [Address(RVA = "0x16D0F30", Offset = "0x16CF930", VA = "0x1816D0F30", Slot = "24")] protected override void NDMHFAFLLOH(PhotonView KFONGPOFCDH) { SandboxColorable sandboxColorable = this.sandboxColorable; Action action = new Action(this.OEJIJENICFE); sandboxColorable.JJCKDBNNKAM -= action; base.NDMHFAFLLOH(KFONGPOFCDH); } // Token: 0x060141AE RID: 82350 RVA: 0x004D3800 File Offset: 0x004D1A00 [Token(Token = "0x60141AE")] [Address(RVA = "0x16D0FD0", Offset = "0x16CF9D0", VA = "0x1816D0FD0")] private void OEJIJENICFE() { if (!base.IsInputConnected(InputSlot.M)) { int makerPenColor = (int)this.sandboxColorable.AKCMFIJGJNK; ShapeColorInfo shapeColorInfo; if (shapeColorInfo != 0) { HolographicColorPair? khkhegcjggd = this.KHKHEGCJGGD; if (makerPenColor != 0) { HolographicColorPair holographicColors = shapeColorInfo.holographicColors; Color shaftColor = shapeColorInfo.holographicColors.ShaftColor; bool flag; if (!flag) { return; } } HolographicColorPair holographicColors2 = shapeColorInfo.holographicColors; int num = 0; Color shaftColor2 = shapeColorInfo.holographicColors.ShaftColor; this.KHKHEGCJGGD = num; this.POHFMOHAGKC(); } } } // Token: 0x060141AF RID: 82351 RVA: 0x004D3878 File Offset: 0x004D1A78 [Token(Token = "0x60141AF")] [Address(RVA = "0x16D0CA0", Offset = "0x16CF6A0", VA = "0x1816D0CA0", Slot = "40")] protected override void HPPOFLEICHA(Dictionary COLKFKBFGNA) { /* An exception occurred when decompiling this method (060141AF) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RecRoom.Core.Creation.Circuits.LightCircuitNode::HPPOFLEICHA(System.Collections.Generic.Dictionary`2) ---> System.ArgumentOutOfRangeException: length ('-1') must be a non-negative value. (Parameter 'length') Actual value was -1. at System.ArgumentOutOfRangeException.ThrowNegative[T](T value, String paramName) at System.Array.CopyImpl(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable) at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length) at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 327 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 117 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: 0x060141B0 RID: 82352 RVA: 0x004D3920 File Offset: 0x004D1B20 [Token(Token = "0x60141B0")] [Address(RVA = "0x16D0C60", Offset = "0x16CF660", VA = "0x1816D0C60")] private void HGJFAHPFEME() { GameObject gameObject = this.shaftRenderer.gameObject; bool adackcpfech = this.ADACKCPFECH; gameObject.SetActive(adackcpfech); } // Token: 0x060141B1 RID: 82353 RVA: 0x004D3950 File Offset: 0x004D1B50 [Token(Token = "0x60141B1")] [Address(RVA = "0x16D1140", Offset = "0x16CFB40", VA = "0x1816D1140")] private void POHFMOHAGKC() { float lbebmkmkmce = this.LBEBMKMKMCE; this.AJBMKHEHJAC.ShaftColor.a = lbebmkmkmce; MaterialPropertyBlock hgmlmlkmnhf = this.HGMLMLKMNHF; Color shaftColor = this.AJBMKHEHJAC.ShaftColor; int cchofpafeho = PAMNDKEGFFG.CCHOFPAFEHO; hgmlmlkmnhf.SetColor(cchofpafeho, shaftColor); Renderer renderer = this.shaftRenderer; MaterialPropertyBlock hgmlmlkmnhf2 = this.HGMLMLKMNHF; renderer.Internal_SetPropertyBlock(hgmlmlkmnhf2); } // Token: 0x060141B2 RID: 82354 RVA: 0x004D39B8 File Offset: 0x004D1BB8 [Token(Token = "0x60141B2")] [Address(RVA = "0x16D12F0", Offset = "0x16CFCF0", VA = "0x1816D12F0")] public LightCircuitNode() { InputMetadata[] array = new InputMetadata[3]; ulong num; array[0] = num; ulong num2; array[2] = num2; ulong num3; array[4] = num3; this.NMHFGAOFMHD = array; this.LBEBMKMKMCE = -1f; Color white = Color.white; Color white2 = Color.white; this.ADACKCPFECH = true; base..ctor(); } // Token: 0x060141B3 RID: 82355 RVA: 0x004D3A24 File Offset: 0x004D1C24 // Note: this type is marked as 'beforefieldinit'. [Token(Token = "0x60141B3")] [Address(RVA = "0x16D1240", Offset = "0x16CFC40", VA = "0x1816D1240")] static LightCircuitNode() { Dictionary dictionary = new Dictionary(); int num = 0; dictionary.Add(3, num); int num2 = 0; dictionary.Add(4, num2); int num3 = 0; dictionary.Add(5, num3); LightCircuitNode.FHBKEDLPHAH = dictionary; } // Token: 0x0400D803 RID: 55299 [Token(Token = "0x400D803")] private const InputSlot INHGGCHKDPG = InputSlot.C; // Token: 0x0400D804 RID: 55300 [Token(Token = "0x400D804")] private const InputSlot DCBAFLCOHHP = InputSlot.M; // Token: 0x0400D805 RID: 55301 [Token(Token = "0x400D805")] private const InputSlot NJJNDHFLIDF = InputSlot.Y; // Token: 0x0400D806 RID: 55302 [global::Cpp2IlInjected.FieldOffset(Offset = "0xF0")] [Token(Token = "0x400D806")] [SerializeField] private Renderer shaftRenderer; // Token: 0x0400D807 RID: 55303 [global::Cpp2IlInjected.FieldOffset(Offset = "0xF8")] [Token(Token = "0x400D807")] [SerializeField] [Range(0f, 1f)] [Tooltip("Max possible alpha for light colors")] private float maxIntensity = 0.2f; // Token: 0x0400D808 RID: 55304 [global::Cpp2IlInjected.FieldOffset(Offset = "0x100")] [Token(Token = "0x400D808")] private InputMetadata[] NMHFGAOFMHD; // Token: 0x0400D809 RID: 55305 [global::Cpp2IlInjected.FieldOffset(Offset = "0x108")] [Token(Token = "0x400D809")] private float LBEBMKMKMCE; // Token: 0x0400D80A RID: 55306 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10C")] [Token(Token = "0x400D80A")] private HolographicColorPair? KHKHEGCJGGD; // Token: 0x0400D80B RID: 55307 [global::Cpp2IlInjected.FieldOffset(Offset = "0x130")] [Token(Token = "0x400D80B")] private HolographicColorPair AJBMKHEHJAC; // Token: 0x0400D80C RID: 55308 [global::Cpp2IlInjected.FieldOffset(Offset = "0x150")] [Token(Token = "0x400D80C")] private HolographicColorPair JMNCGLJMHPC; // Token: 0x0400D80D RID: 55309 [global::Cpp2IlInjected.FieldOffset(Offset = "0x170")] [Token(Token = "0x400D80D")] private MaterialPropertyBlock HGMLMLKMNHF; // Token: 0x0400D80E RID: 55310 [Token(Token = "0x400D80E")] private static Dictionary FHBKEDLPHAH; // Token: 0x0400D80F RID: 55311 [global::Cpp2IlInjected.FieldOffset(Offset = "0x178")] [Token(Token = "0x400D80F")] [SerializeField] [DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)] private SandboxColorable sandboxColorable; // Token: 0x0400D810 RID: 55312 [global::Cpp2IlInjected.FieldOffset(Offset = "0x180")] [Token(Token = "0x400D810")] private bool ADACKCPFECH; } }