284 lines
10 KiB
C#
284 lines
10 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.Circuits;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core.Creation.Circuits
|
|
{
|
|
// Token: 0x02003251 RID: 12881
|
|
[Token(Token = "0x2003251")]
|
|
public class LightCircuitNode : CircuitEventNodeDisplayBase
|
|
{
|
|
// Token: 0x17003D17 RID: 15639
|
|
// (get) Token: 0x06016210 RID: 90640 RVA: 0x00529D64 File Offset: 0x00527F64
|
|
// (set) Token: 0x06016211 RID: 90641 RVA: 0x00529D78 File Offset: 0x00527F78
|
|
[Token(Token = "0x17003D17")]
|
|
public override InputMetadata[] LKIOMMEBJEC
|
|
{
|
|
[Token(Token = "0x6016210")]
|
|
[Address(RVA = "0x7B5590", Offset = "0x7B4390", VA = "0x1807B5590", Slot = "37")]
|
|
get
|
|
{
|
|
return this.NMHFGAOFMHD;
|
|
}
|
|
[Token(Token = "0x6016211")]
|
|
[Address(RVA = "0x7B58B0", Offset = "0x7B46B0", VA = "0x1807B58B0", Slot = "38")]
|
|
set
|
|
{
|
|
this.NMHFGAOFMHD = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003D18 RID: 15640
|
|
// (get) Token: 0x06016212 RID: 90642 RVA: 0x00529D8C File Offset: 0x00527F8C
|
|
// (set) Token: 0x06016213 RID: 90643 RVA: 0x00529DA0 File Offset: 0x00527FA0
|
|
[Token(Token = "0x17003D18")]
|
|
public bool GDCDDIEMKHG
|
|
{
|
|
[Token(Token = "0x6016212")]
|
|
[Address(RVA = "0xC52520", Offset = "0xC51320", VA = "0x180C52520")]
|
|
get
|
|
{
|
|
return this.ADACKCPFECH;
|
|
}
|
|
[Token(Token = "0x6016213")]
|
|
[Address(RVA = "0xC52530", Offset = "0xC51330", VA = "0x180C52530")]
|
|
set
|
|
{
|
|
if (this.ADACKCPFECH != value)
|
|
{
|
|
this.ADACKCPFECH = value;
|
|
GameObject gameObject = this.shaftRenderer.gameObject;
|
|
bool adackcpfech = this.ADACKCPFECH;
|
|
gameObject.SetActive(adackcpfech);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016214 RID: 90644 RVA: 0x00529DE0 File Offset: 0x00527FE0
|
|
[Token(Token = "0x6016214")]
|
|
[Address(RVA = "0xC51C20", Offset = "0xC50A20", VA = "0x180C51C20", Slot = "28")]
|
|
protected override void GPPNKOGIEOP()
|
|
{
|
|
base.GPPNKOGIEOP();
|
|
Dictionary<InputSlot, int> 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: 0x06016215 RID: 90645 RVA: 0x00529E4C File Offset: 0x0052804C
|
|
[Token(Token = "0x6016215")]
|
|
[Address(RVA = "0xC51B30", Offset = "0xC50930", VA = "0x180C51B30", 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: 0x06016216 RID: 90646 RVA: 0x00529E94 File Offset: 0x00528094
|
|
[Token(Token = "0x6016216")]
|
|
[Address(RVA = "0xC52000", Offset = "0xC50E00", VA = "0x180C52000", Slot = "25")]
|
|
protected override void NDMHFAFLLOH(PhotonView KFONGPOFCDH)
|
|
{
|
|
SandboxColorable sandboxColorable = this.sandboxColorable;
|
|
Action action = new Action(this.OEJIJENICFE);
|
|
sandboxColorable.JJCKDBNNKAM -= action;
|
|
base.NDMHFAFLLOH(KFONGPOFCDH);
|
|
}
|
|
|
|
// Token: 0x06016217 RID: 90647 RVA: 0x00529ECC File Offset: 0x005280CC
|
|
[Token(Token = "0x6016217")]
|
|
[Address(RVA = "0xC520A0", Offset = "0xC50EA0", VA = "0x180C520A0")]
|
|
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: 0x06016218 RID: 90648 RVA: 0x00529F44 File Offset: 0x00528144
|
|
[Token(Token = "0x6016218")]
|
|
[Address(RVA = "0xC51D70", Offset = "0xC50B70", VA = "0x180C51D70", Slot = "41")]
|
|
protected override void HPPOFLEICHA(Dictionary<InputSlot, int> COLKFKBFGNA)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06016218)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RecRoom.Core.Creation.Circuits.LightCircuitNode::HPPOFLEICHA(System.Collections.Generic.Dictionary`2<RecRoom.Circuits.InputSlot,System.Int32>)
|
|
|
|
---> 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 337
|
|
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: 0x06016219 RID: 90649 RVA: 0x00529FF0 File Offset: 0x005281F0
|
|
[Token(Token = "0x6016219")]
|
|
[Address(RVA = "0xC51D30", Offset = "0xC50B30", VA = "0x180C51D30")]
|
|
private void HGJFAHPFEME()
|
|
{
|
|
GameObject gameObject = this.shaftRenderer.gameObject;
|
|
bool adackcpfech = this.ADACKCPFECH;
|
|
gameObject.SetActive(adackcpfech);
|
|
}
|
|
|
|
// Token: 0x0601621A RID: 90650 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x601621A")]
|
|
[Address(RVA = "0xC52210", Offset = "0xC51010", VA = "0x180C52210")]
|
|
private void POHFMOHAGKC()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0601621B RID: 90651 RVA: 0x0052A020 File Offset: 0x00528220
|
|
[Token(Token = "0x601621B")]
|
|
[Address(RVA = "0xC523C0", Offset = "0xC511C0", VA = "0x180C523C0")]
|
|
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: 0x0601621C RID: 90652 RVA: 0x0052A08C File Offset: 0x0052828C
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x601621C")]
|
|
[Address(RVA = "0xC52310", Offset = "0xC51110", VA = "0x180C52310")]
|
|
static LightCircuitNode()
|
|
{
|
|
Dictionary<InputSlot, int> 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: 0x0400E826 RID: 59430
|
|
[Token(Token = "0x400E826")]
|
|
private const InputSlot INHGGCHKDPG = InputSlot.C;
|
|
|
|
// Token: 0x0400E827 RID: 59431
|
|
[Token(Token = "0x400E827")]
|
|
private const InputSlot DCBAFLCOHHP = InputSlot.M;
|
|
|
|
// Token: 0x0400E828 RID: 59432
|
|
[Token(Token = "0x400E828")]
|
|
private const InputSlot NJJNDHFLIDF = InputSlot.Y;
|
|
|
|
// Token: 0x0400E829 RID: 59433
|
|
[FieldOffset(Offset = "0xF8")]
|
|
[Token(Token = "0x400E829")]
|
|
[SerializeField]
|
|
private Renderer shaftRenderer;
|
|
|
|
// Token: 0x0400E82A RID: 59434
|
|
[FieldOffset(Offset = "0x100")]
|
|
[Token(Token = "0x400E82A")]
|
|
[SerializeField]
|
|
[Tooltip("Max possible alpha for light colors")]
|
|
[Range(0f, 1f)]
|
|
private float maxIntensity = 0.2f;
|
|
|
|
// Token: 0x0400E82B RID: 59435
|
|
[FieldOffset(Offset = "0x108")]
|
|
[Token(Token = "0x400E82B")]
|
|
private InputMetadata[] NMHFGAOFMHD;
|
|
|
|
// Token: 0x0400E82C RID: 59436
|
|
[FieldOffset(Offset = "0x110")]
|
|
[Token(Token = "0x400E82C")]
|
|
private float LBEBMKMKMCE;
|
|
|
|
// Token: 0x0400E82D RID: 59437
|
|
[FieldOffset(Offset = "0x114")]
|
|
[Token(Token = "0x400E82D")]
|
|
private HolographicColorPair? KHKHEGCJGGD;
|
|
|
|
// Token: 0x0400E82E RID: 59438
|
|
[FieldOffset(Offset = "0x138")]
|
|
[Token(Token = "0x400E82E")]
|
|
private HolographicColorPair AJBMKHEHJAC;
|
|
|
|
// Token: 0x0400E82F RID: 59439
|
|
[FieldOffset(Offset = "0x158")]
|
|
[Token(Token = "0x400E82F")]
|
|
private HolographicColorPair JMNCGLJMHPC;
|
|
|
|
// Token: 0x0400E830 RID: 59440
|
|
[FieldOffset(Offset = "0x178")]
|
|
[Token(Token = "0x400E830")]
|
|
private MaterialPropertyBlock HGMLMLKMNHF;
|
|
|
|
// Token: 0x0400E831 RID: 59441
|
|
[Token(Token = "0x400E831")]
|
|
private static Dictionary<InputSlot, int> FHBKEDLPHAH;
|
|
|
|
// Token: 0x0400E832 RID: 59442
|
|
[FieldOffset(Offset = "0x180")]
|
|
[Token(Token = "0x400E832")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
private SandboxColorable sandboxColorable;
|
|
|
|
// Token: 0x0400E833 RID: 59443
|
|
[FieldOffset(Offset = "0x188")]
|
|
[Token(Token = "0x400E833")]
|
|
private bool ADACKCPFECH;
|
|
}
|
|
}
|