273 lines
10 KiB
C#
273 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: 0x0200333E RID: 13118
|
|
[Token(Token = "0x200333E")]
|
|
public class LightCircuitNode : CircuitEventNodeDisplayBase
|
|
{
|
|
// Token: 0x17003DDB RID: 15835
|
|
// (get) Token: 0x0601669D RID: 91805 RVA: 0x00534B18 File Offset: 0x00532D18
|
|
// (set) Token: 0x0601669E RID: 91806 RVA: 0x00534B2C File Offset: 0x00532D2C
|
|
[Token(Token = "0x17003DDB")]
|
|
public override InputMetadata[] LKIOMMEBJEC
|
|
{
|
|
[Token(Token = "0x601669D")]
|
|
[Address(RVA = "0x4C35F0", Offset = "0x4C25F0", VA = "0x1804C35F0", Slot = "37")]
|
|
get
|
|
{
|
|
return this.NMHFGAOFMHD;
|
|
}
|
|
[Token(Token = "0x601669E")]
|
|
[Address(RVA = "0xD84910", Offset = "0xD83910", VA = "0x180D84910", Slot = "38")]
|
|
set
|
|
{
|
|
this.NMHFGAOFMHD = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003DDC RID: 15836
|
|
// (get) Token: 0x0601669F RID: 91807 RVA: 0x00534B40 File Offset: 0x00532D40
|
|
// (set) Token: 0x060166A0 RID: 91808 RVA: 0x00534B54 File Offset: 0x00532D54
|
|
[Token(Token = "0x17003DDC")]
|
|
public bool GDCDDIEMKHG
|
|
{
|
|
[Token(Token = "0x601669F")]
|
|
[Address(RVA = "0xEA3120", Offset = "0xEA2120", VA = "0x180EA3120")]
|
|
get
|
|
{
|
|
return this.ADACKCPFECH;
|
|
}
|
|
[Token(Token = "0x60166A0")]
|
|
[Address(RVA = "0x1792B00", Offset = "0x1791B00", VA = "0x181792B00")]
|
|
set
|
|
{
|
|
if (this.ADACKCPFECH != value)
|
|
{
|
|
this.ADACKCPFECH = value;
|
|
GameObject gameObject = this.shaftRenderer.gameObject;
|
|
bool adackcpfech = this.ADACKCPFECH;
|
|
gameObject.SetActive(adackcpfech);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060166A1 RID: 91809 RVA: 0x00534B94 File Offset: 0x00532D94
|
|
[Token(Token = "0x60166A1")]
|
|
[Address(RVA = "0x1792200", Offset = "0x1791200", VA = "0x181792200", Slot = "28")]
|
|
protected override void GPPNKOGIEOP()
|
|
{
|
|
base.GPPNKOGIEOP();
|
|
Dictionary<InputSlot, int> dictionary = new Dictionary();
|
|
int inputSignal = this.MBBJMCDGDMN.GetInputSignal(InputSlot.C);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060166A2 RID: 91810 RVA: 0x00534BF4 File Offset: 0x00532DF4
|
|
[Token(Token = "0x60166A2")]
|
|
[Address(RVA = "0x1792110", Offset = "0x1791110", VA = "0x181792110", 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();
|
|
DABKFAIHBBP dabkfaihbbp = ((PIPDAMDIAPC)this).LGEDNHPDNNN();
|
|
}
|
|
|
|
// Token: 0x060166A3 RID: 91811 RVA: 0x00534C3C File Offset: 0x00532E3C
|
|
[Token(Token = "0x60166A3")]
|
|
[Address(RVA = "0x17925E0", Offset = "0x17915E0", VA = "0x1817925E0", 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: 0x060166A4 RID: 91812 RVA: 0x00534C74 File Offset: 0x00532E74
|
|
[Token(Token = "0x60166A4")]
|
|
[Address(RVA = "0x1792680", Offset = "0x1791680", VA = "0x181792680")]
|
|
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: 0x060166A5 RID: 91813 RVA: 0x00534CEC File Offset: 0x00532EEC
|
|
[Token(Token = "0x60166A5")]
|
|
[Address(RVA = "0x1792350", Offset = "0x1791350", VA = "0x181792350", Slot = "41")]
|
|
protected override void HPPOFLEICHA(Dictionary<InputSlot, int> COLKFKBFGNA)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060166A5)
|
|
|
|
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 403
|
|
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: 0x060166A6 RID: 91814 RVA: 0x00534D98 File Offset: 0x00532F98
|
|
[Token(Token = "0x60166A6")]
|
|
[Address(RVA = "0x1792310", Offset = "0x1791310", VA = "0x181792310")]
|
|
private void HGJFAHPFEME()
|
|
{
|
|
GameObject gameObject = this.shaftRenderer.gameObject;
|
|
bool adackcpfech = this.ADACKCPFECH;
|
|
gameObject.SetActive(adackcpfech);
|
|
}
|
|
|
|
// Token: 0x060166A7 RID: 91815 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x60166A7")]
|
|
[Address(RVA = "0x17927F0", Offset = "0x17917F0", VA = "0x1817927F0")]
|
|
private void POHFMOHAGKC()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060166A8 RID: 91816 RVA: 0x00534DC8 File Offset: 0x00532FC8
|
|
[Token(Token = "0x60166A8")]
|
|
[Address(RVA = "0x17929A0", Offset = "0x17919A0", VA = "0x1817929A0")]
|
|
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: 0x060166A9 RID: 91817 RVA: 0x00534E34 File Offset: 0x00533034
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x60166A9")]
|
|
[Address(RVA = "0x17928F0", Offset = "0x17918F0", VA = "0x1817928F0")]
|
|
static LightCircuitNode()
|
|
{
|
|
Dictionary<InputSlot, int> dictionary = new Dictionary();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0400EA6B RID: 60011
|
|
[Token(Token = "0x400EA6B")]
|
|
private const InputSlot INHGGCHKDPG = InputSlot.C;
|
|
|
|
// Token: 0x0400EA6C RID: 60012
|
|
[Token(Token = "0x400EA6C")]
|
|
private const InputSlot DCBAFLCOHHP = InputSlot.M;
|
|
|
|
// Token: 0x0400EA6D RID: 60013
|
|
[Token(Token = "0x400EA6D")]
|
|
private const InputSlot NJJNDHFLIDF = InputSlot.Y;
|
|
|
|
// Token: 0x0400EA6E RID: 60014
|
|
[FieldOffset(Offset = "0x100")]
|
|
[Token(Token = "0x400EA6E")]
|
|
[SerializeField]
|
|
private Renderer shaftRenderer;
|
|
|
|
// Token: 0x0400EA6F RID: 60015
|
|
[FieldOffset(Offset = "0x108")]
|
|
[Token(Token = "0x400EA6F")]
|
|
[SerializeField]
|
|
[Range(0f, 1f)]
|
|
[Tooltip("Max possible alpha for light colors")]
|
|
private float maxIntensity = 0.2f;
|
|
|
|
// Token: 0x0400EA70 RID: 60016
|
|
[FieldOffset(Offset = "0x110")]
|
|
[Token(Token = "0x400EA70")]
|
|
private InputMetadata[] NMHFGAOFMHD;
|
|
|
|
// Token: 0x0400EA71 RID: 60017
|
|
[FieldOffset(Offset = "0x118")]
|
|
[Token(Token = "0x400EA71")]
|
|
private float LBEBMKMKMCE;
|
|
|
|
// Token: 0x0400EA72 RID: 60018
|
|
[FieldOffset(Offset = "0x11C")]
|
|
[Token(Token = "0x400EA72")]
|
|
private HolographicColorPair? KHKHEGCJGGD;
|
|
|
|
// Token: 0x0400EA73 RID: 60019
|
|
[FieldOffset(Offset = "0x140")]
|
|
[Token(Token = "0x400EA73")]
|
|
private HolographicColorPair AJBMKHEHJAC;
|
|
|
|
// Token: 0x0400EA74 RID: 60020
|
|
[FieldOffset(Offset = "0x160")]
|
|
[Token(Token = "0x400EA74")]
|
|
private HolographicColorPair JMNCGLJMHPC;
|
|
|
|
// Token: 0x0400EA75 RID: 60021
|
|
[FieldOffset(Offset = "0x180")]
|
|
[Token(Token = "0x400EA75")]
|
|
private MaterialPropertyBlock HGMLMLKMNHF;
|
|
|
|
// Token: 0x0400EA76 RID: 60022
|
|
[Token(Token = "0x400EA76")]
|
|
private static Dictionary<InputSlot, int> FHBKEDLPHAH;
|
|
|
|
// Token: 0x0400EA77 RID: 60023
|
|
[FieldOffset(Offset = "0x188")]
|
|
[Token(Token = "0x400EA77")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
private SandboxColorable sandboxColorable;
|
|
|
|
// Token: 0x0400EA78 RID: 60024
|
|
[FieldOffset(Offset = "0x190")]
|
|
[Token(Token = "0x400EA78")]
|
|
private bool ADACKCPFECH;
|
|
}
|
|
}
|