Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/RecRoom/Core/Creation/Circuits/VariableNodeDisplay.cs
T
2026-04-08 23:40:05 +02:00

509 lines
18 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using AGUI.StackedUI;
using Cpp2IlInjected;
using RecRoom.AGUI.ToolUIs;
using RecRoom.Circuits;
using TMPro;
namespace RecRoom.Core.Creation.Circuits
{
// Token: 0x02002CB9 RID: 11449
[Token(Token = "0x2002CB9")]
[StructLayout(3)]
public class VariableNodeDisplay : CircuitNodeDisplay
{
// Token: 0x060142FB RID: 82683 RVA: 0x004D8E10 File Offset: 0x004D7010
[Token(Token = "0x60142FB")]
[Address(RVA = "0x18E04F0", Offset = "0x18DEEF0", VA = "0x1818E04F0", Slot = "27")]
protected override void GPPNKOGIEOP()
{
base.GPPNKOGIEOP();
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
Action action = new Action(this.OIGLKOHMHBE);
mbbjmcdgdmn.NodeModifiedEvent += action;
}
// Token: 0x060142FC RID: 82684 RVA: 0x004D8E44 File Offset: 0x004D7044
[Token(Token = "0x60142FC")]
[Address(RVA = "0x18E0460", Offset = "0x18DEE60", VA = "0x1818E0460", Slot = "28")]
protected override void GFNOFLIIKHO()
{
base.GFNOFLIIKHO();
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
Action action = new Action(this.OIGLKOHMHBE);
mbbjmcdgdmn.NodeModifiedEvent -= action;
}
// Token: 0x060142FD RID: 82685 RVA: 0x004D8E78 File Offset: 0x004D7078
[Token(Token = "0x60142FD")]
[Address(RVA = "0x18E07F0", Offset = "0x18DF1F0", VA = "0x1818E07F0")]
private void OIGLKOHMHBE()
{
this.NOGGJIOKBOF.Clear();
}
// Token: 0x060142FE RID: 82686 RVA: 0x004D8E98 File Offset: 0x004D7098
[Token(Token = "0x60142FE")]
[Address(RVA = "0x18E0580", Offset = "0x18DEF80", VA = "0x1818E0580", Slot = "19")]
public override IEnumerable<ILINODKFHEO> GetEditables()
{
CircuitNode mbbjmcdgdmn;
do
{
mbbjmcdgdmn = this.MBBJMCDGDMN;
}
while (mbbjmcdgdmn == 0);
NodeMetadata <NodeMetadata>k__BackingField = mbbjmcdgdmn.<NodeMetadata>k__BackingField;
OutputMetadata[] outputMetadata = mbbjmcdgdmn.<NodeMetadata>k__BackingField.OutputMetadata;
Func<OutputMetadata, ILINODKFHEO> func = new Func(this.PMHCIHDDAIN);
return Enumerable.Select<OutputMetadata, ILINODKFHEO>(outputMetadata, func);
}
// Token: 0x060142FF RID: 82687 RVA: 0x004D8ED8 File Offset: 0x004D70D8
[Token(Token = "0x60142FF")]
[Address(RVA = "0x18E0620", Offset = "0x18DF020", VA = "0x1818E0620")]
private void IKGOBHMBDFP(OutputSlot OIPIEKDLDMJ, int ONGBFDACHHG)
{
Dictionary<object, object> dictionary = new Dictionary();
dictionary.Add(dictionary, dictionary);
CircuitManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
int <NodeId>k__BackingField = this.MBBJMCDGDMN.<NodeId>k__BackingField;
instance.RequestMasterModifyNode(<NodeId>k__BackingField, dictionary);
Dictionary<OutputSlot, int> noggjiokbof = this.NOGGJIOKBOF;
}
// Token: 0x06014300 RID: 82688 RVA: 0x004D8F20 File Offset: 0x004D7120
[Token(Token = "0x6014300")]
[Address(RVA = "0x18E0750", Offset = "0x18DF150", VA = "0x1818E0750")]
private int ILAPEOKKKGN(OutputSlot OIPIEKDLDMJ)
{
Dictionary<OutputSlot, int> noggjiokbof = this.NOGGJIOKBOF;
bool flag;
if (!flag && this.MBBJMCDGDMN != 0)
{
Dictionary<OutputSlot, int> noggjiokbof2 = this.NOGGJIOKBOF;
}
throw new NullReferenceException();
}
// Token: 0x06014301 RID: 82689 RVA: 0x004D8F50 File Offset: 0x004D7150
[Token(Token = "0x6014301")]
[Address(RVA = "0x18E0A10", Offset = "0x18DF410", VA = "0x1818E0A10")]
public VariableNodeDisplay()
{
Dictionary<OutputSlot, int> dictionary = new Dictionary();
this.NOGGJIOKBOF = dictionary;
base..ctor();
}
// Token: 0x06014302 RID: 82690 RVA: 0x004D8F70 File Offset: 0x004D7170
[Token(Token = "0x6014302")]
[Address(RVA = "0x18E0840", Offset = "0x18DF240", VA = "0x1818E0840")]
[CompilerGenerated]
private ILINODKFHEO PMHCIHDDAIN(OutputMetadata ANLKEPAJLCL)
{
OutputMetadata om;
OutputSlot om4 = om;
int hashCode = om4.GetHashCode();
OutputSlot outputSlot = om4;
om = outputSlot;
string text;
string signalDescription = text;
OMKPHDBNLKH<CreationObjectSettingIntUIControl, int>.DEDABHKCIBG <>9__3_ = VariableNodeDisplay.<>c.<>9__3_1;
if (<>9__3_ == 0)
{
VariableNodeDisplay.<>c.<>9__3_1 = (MakerPenPaletteConfigScreen editableUIFlow) => editableUIFlow.DefaultIntUIControlPrefab;
}
Func<int> <>9__3;
Action<int> <>9__4;
OMKPHDBNLKH<CreationObjectSettingIntUIControl, int>.OHINDOLFNMP ohindolfnmp = delegate(CreationObjectSettingIntUIControl instance)
{
CircuitNode node2;
Delegate @delegate;
do
{
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
CircuitNode node = mbbjmcdgdmn;
if (<>9__3 == 0)
{
Func<int> func = delegate
{
VariableNodeDisplay <>4__this = this;
OutputMetadata om2 = om;
Dictionary<OutputSlot, int> noggjiokbof = <>4__this.NOGGJIOKBOF;
bool flag;
if (!flag)
{
CircuitNode mbbjmcdgdmn2 = <>4__this.MBBJMCDGDMN;
if (mbbjmcdgdmn2 != 0)
{
OutputSlot outputSlot2 = om2.OutputSlot;
int outputSignal = mbbjmcdgdmn2.GetOutputSignal(outputSlot2);
Dictionary<OutputSlot, int> noggjiokbof2 = <>4__this.NOGGJIOKBOF;
OutputSlot outputSlot3 = om2.OutputSlot;
noggjiokbof2[outputSlot3] = outputSignal;
}
}
throw new NullReferenceException();
};
<>9__3 = func;
}
Action<int> <>9__ = <>9__4;
CreationObjectSettingIntUIControl instance2 = instance;
if (<>9__ == 0)
{
Action<int> action = delegate(int newValue)
{
VariableNodeDisplay <>4__this2 = this;
OutputMetadata om3 = om;
Dictionary<object, object> dictionary = new Dictionary();
dictionary.Add(dictionary, dictionary);
CircuitManager instance6 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
int <NodeId>k__BackingField = <>4__this2.MBBJMCDGDMN.<NodeId>k__BackingField;
instance6.RequestMasterModifyNode(<NodeId>k__BackingField, dictionary);
Dictionary<OutputSlot, int> noggjiokbof3 = <>4__this2.NOGGJIOKBOF;
OutputSlot outputSlot4 = om3.OutputSlot;
noggjiokbof3[outputSlot4] = newValue;
};
<>9__4 = action;
}
TextMeshProUGUI propertyDescription = instance.PropertyDescription;
string signalDescription3 = signalDescription;
propertyDescription.text = signalDescription3;
string signalDescription2 = signalDescription;
CreationObjectSettingIntUIControl instance3 = instance;
string text2 = "Enter " + signalDescription2;
instance3.SetDialogOptions("Set Signal", text2, TMP_InputField.ContentType.IntegerNumber);
CircuitNode node3 = node;
CreationObjectSettingIntUIControl instance4 = instance;
Action action2;
node3.NodeModifiedEvent += action2;
node2 = node;
CircuitNode.NodeMetadataChanged nodeMetadataChangedEvent = node2.NodeMetadataChangedEvent;
CircuitNode.NodeMetadataChanged nodeMetadataChanged = delegate(NodeMetadata meta)
{
bool isCompleted = ((IAsyncResult)instance).IsCompleted;
};
@delegate = Delegate.Combine(nodeMetadataChangedEvent, nodeMetadataChanged);
}
while (@delegate != 0 && @delegate == 0);
node2.NodeMetadataChangedEvent = @delegate;
CreationObjectSettingIntUIControl instance5 = nakejnlhkdd.instance;
Action action3 = delegate
{
CircuitNode node5;
Delegate delegate2;
do
{
CircuitNode node4 = nakejnlhkdd.node;
if (node4 == 0)
{
return;
}
CreationObjectSettingIntUIControl instance7 = nakejnlhkdd.instance;
Action action4;
node4.NodeModifiedEvent -= action4;
node5 = nakejnlhkdd.node;
CircuitNode.NodeMetadataChanged <>9__8 = nakejnlhkdd.<>9__7;
CircuitNode.NodeMetadataChanged nodeMetadataChangedEvent2 = node5.NodeMetadataChangedEvent;
if (<>9__8 == 0)
{
CircuitNode.NodeMetadataChanged nodeMetadataChanged2 = delegate(NodeMetadata meta)
{
bool isCompleted2 = ((IAsyncResult)nakejnlhkdd.instance).IsCompleted;
};
nakejnlhkdd.<>9__7 = nodeMetadataChanged2;
}
delegate2 = Delegate.Remove(nodeMetadataChangedEvent2, <>9__8);
}
while (delegate2 != 0 && delegate2 == 0);
node5.NodeMetadataChangedEvent = delegate2;
};
instance5.IABDCLILPMF += action3;
};
int num;
GAAKDCPNDDI gaakdcpnddi = new GAAKDCPNDDI(<>9__3_, ohindolfnmp, num);
num = 0;
throw new NullReferenceException();
}
// Token: 0x0400D8B1 RID: 55473
[global::Cpp2IlInjected.FieldOffset(Offset = "0xC8")]
[Token(Token = "0x400D8B1")]
private Dictionary<OutputSlot, int> NOGGJIOKBOF;
// Token: 0x02002CBA RID: 11450
[Token(Token = "0x2002CBA")]
[CompilerGenerated]
private sealed class FOEJBGEOHDN
{
// Token: 0x06014303 RID: 82691 RVA: 0x004D8FF0 File Offset: 0x004D71F0
[Token(Token = "0x6014303")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public FOEJBGEOHDN()
{
}
// Token: 0x06014304 RID: 82692 RVA: 0x004D9004 File Offset: 0x004D7204
[Token(Token = "0x6014304")]
[Address(RVA = "0x18CC6F0", Offset = "0x18CB0F0", VA = "0x1818CC6F0")]
internal void <GetEditables>b__2(CreationObjectSettingIntUIControl instance)
{
VariableNodeDisplay.NAKEJNLHKDD nakejnlhkdd;
CircuitNode node2;
Delegate @delegate;
do
{
nakejnlhkdd = new VariableNodeDisplay.NAKEJNLHKDD();
nakejnlhkdd.instance = instance;
CircuitNode mbbjmcdgdmn = this.<>4__this.MBBJMCDGDMN;
nakejnlhkdd.node = mbbjmcdgdmn;
if (this.<>9__3 == 0)
{
Func<int> func = delegate
{
VariableNodeDisplay variableNodeDisplay = this.<>4__this;
OutputMetadata outputMetadata = this.om;
Dictionary<OutputSlot, int> noggjiokbof = variableNodeDisplay.NOGGJIOKBOF;
bool flag;
if (!flag)
{
CircuitNode mbbjmcdgdmn2 = variableNodeDisplay.MBBJMCDGDMN;
if (mbbjmcdgdmn2 != 0)
{
OutputSlot outputSlot = outputMetadata.OutputSlot;
int outputSignal = mbbjmcdgdmn2.GetOutputSignal(outputSlot);
Dictionary<OutputSlot, int> noggjiokbof2 = variableNodeDisplay.NOGGJIOKBOF;
OutputSlot outputSlot2 = outputMetadata.OutputSlot;
noggjiokbof2[outputSlot2] = outputSignal;
}
}
throw new NullReferenceException();
};
this.<>9__3 = func;
}
Action<int> action = this.<>9__4;
CreationObjectSettingIntUIControl instance2 = nakejnlhkdd.instance;
if (action == 0)
{
Action<int> action2 = delegate(int newValue)
{
VariableNodeDisplay variableNodeDisplay2 = this.<>4__this;
OutputMetadata outputMetadata2 = this.om;
Dictionary<object, object> dictionary = new Dictionary();
dictionary.Add(dictionary, dictionary);
CircuitManager instance6 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
int <NodeId>k__BackingField = variableNodeDisplay2.MBBJMCDGDMN.<NodeId>k__BackingField;
instance6.RequestMasterModifyNode(<NodeId>k__BackingField, dictionary);
Dictionary<OutputSlot, int> noggjiokbof3 = variableNodeDisplay2.NOGGJIOKBOF;
OutputSlot outputSlot3 = outputMetadata2.OutputSlot;
noggjiokbof3[outputSlot3] = newValue;
};
this.<>9__4 = action2;
}
TextMeshProUGUI propertyDescription = nakejnlhkdd.instance.PropertyDescription;
string text = this.signalDescription;
propertyDescription.text = text;
string text2 = this.signalDescription;
CreationObjectSettingIntUIControl instance3 = nakejnlhkdd.instance;
string text3 = "Enter " + text2;
instance3.SetDialogOptions("Set Signal", text3, TMP_InputField.ContentType.IntegerNumber);
CircuitNode node = nakejnlhkdd.node;
CreationObjectSettingIntUIControl instance4 = nakejnlhkdd.instance;
Action action3;
node.NodeModifiedEvent += action3;
node2 = nakejnlhkdd.node;
CircuitNode.NodeMetadataChanged nodeMetadataChangedEvent = node2.NodeMetadataChangedEvent;
CircuitNode.NodeMetadataChanged nodeMetadataChanged = delegate(NodeMetadata meta)
{
bool isCompleted = ((IAsyncResult)nakejnlhkdd.instance).IsCompleted;
};
@delegate = Delegate.Combine(nodeMetadataChangedEvent, nodeMetadataChanged);
}
while (@delegate != 0 && @delegate == 0);
node2.NodeMetadataChangedEvent = @delegate;
CreationObjectSettingIntUIControl instance5 = nakejnlhkdd.instance;
Action action4 = delegate
{
CircuitNode node4;
Delegate delegate2;
do
{
CircuitNode node3 = nakejnlhkdd.node;
if (node3 == 0)
{
return;
}
CreationObjectSettingIntUIControl instance7 = nakejnlhkdd.instance;
Action action5;
node3.NodeModifiedEvent -= action5;
node4 = nakejnlhkdd.node;
CircuitNode.NodeMetadataChanged <>9__ = nakejnlhkdd.<>9__7;
CircuitNode.NodeMetadataChanged nodeMetadataChangedEvent2 = node4.NodeMetadataChangedEvent;
if (<>9__ == 0)
{
CircuitNode.NodeMetadataChanged nodeMetadataChanged2 = delegate(NodeMetadata meta)
{
bool isCompleted2 = ((IAsyncResult)nakejnlhkdd.instance).IsCompleted;
};
nakejnlhkdd.<>9__7 = nodeMetadataChanged2;
}
delegate2 = Delegate.Remove(nodeMetadataChangedEvent2, <>9__);
}
while (delegate2 != 0 && delegate2 == 0);
node4.NodeMetadataChangedEvent = delegate2;
};
instance5.IABDCLILPMF += action4;
}
// Token: 0x06014305 RID: 82693 RVA: 0x004D9144 File Offset: 0x004D7344
[Token(Token = "0x6014305")]
[Address(RVA = "0x18CC970", Offset = "0x18CB370", VA = "0x1818CC970")]
internal int <GetEditables>b__3()
{
VariableNodeDisplay variableNodeDisplay = this.<>4__this;
OutputMetadata outputMetadata = this.om;
Dictionary<OutputSlot, int> noggjiokbof = variableNodeDisplay.NOGGJIOKBOF;
bool flag;
if (!flag)
{
CircuitNode mbbjmcdgdmn = variableNodeDisplay.MBBJMCDGDMN;
if (mbbjmcdgdmn != 0)
{
OutputSlot outputSlot = outputMetadata.OutputSlot;
int outputSignal = mbbjmcdgdmn.GetOutputSignal(outputSlot);
Dictionary<OutputSlot, int> noggjiokbof2 = variableNodeDisplay.NOGGJIOKBOF;
OutputSlot outputSlot2 = outputMetadata.OutputSlot;
noggjiokbof2[outputSlot2] = outputSignal;
}
}
throw new NullReferenceException();
}
// Token: 0x06014306 RID: 82694 RVA: 0x004D91AC File Offset: 0x004D73AC
[Token(Token = "0x6014306")]
[Address(RVA = "0x18CCA20", Offset = "0x18CB420", VA = "0x1818CCA20")]
internal void <GetEditables>b__4(int newValue)
{
VariableNodeDisplay variableNodeDisplay = this.<>4__this;
OutputMetadata outputMetadata = this.om;
Dictionary<object, object> dictionary = new Dictionary();
dictionary.Add(dictionary, dictionary);
CircuitManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
int <NodeId>k__BackingField = variableNodeDisplay.MBBJMCDGDMN.<NodeId>k__BackingField;
instance.RequestMasterModifyNode(<NodeId>k__BackingField, dictionary);
Dictionary<OutputSlot, int> noggjiokbof = variableNodeDisplay.NOGGJIOKBOF;
OutputSlot outputSlot = outputMetadata.OutputSlot;
noggjiokbof[outputSlot] = newValue;
}
// Token: 0x0400D8B2 RID: 55474
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400D8B2")]
public OutputMetadata om;
// Token: 0x0400D8B3 RID: 55475
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x400D8B3")]
public string signalDescription;
// Token: 0x0400D8B4 RID: 55476
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x400D8B4")]
public VariableNodeDisplay <>4__this;
// Token: 0x0400D8B5 RID: 55477
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x400D8B5")]
public Func<int> <>9__3;
// Token: 0x0400D8B6 RID: 55478
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x400D8B6")]
public Action<int> <>9__4;
}
// Token: 0x02002CBB RID: 11451
[Token(Token = "0x2002CBB")]
[CompilerGenerated]
private sealed class NAKEJNLHKDD
{
// Token: 0x06014307 RID: 82695 RVA: 0x004D9214 File Offset: 0x004D7414
[Token(Token = "0x6014307")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public NAKEJNLHKDD()
{
}
// Token: 0x06014308 RID: 82696 RVA: 0x004D9228 File Offset: 0x004D7428
[Token(Token = "0x6014308")]
[Address(RVA = "0x18CD430", Offset = "0x18CBE30", VA = "0x1818CD430")]
internal void <GetEditables>b__6(NodeMetadata meta)
{
bool isCompleted = ((IAsyncResult)this.instance).IsCompleted;
}
// Token: 0x06014309 RID: 82697 RVA: 0x004D9248 File Offset: 0x004D7448
[Token(Token = "0x6014309")]
[Address(RVA = "0x18CD310", Offset = "0x18CBD10", VA = "0x1818CD310")]
internal void <GetEditables>b__5()
{
CircuitNode circuitNode2;
Delegate @delegate;
do
{
CircuitNode circuitNode = this.node;
if (circuitNode == 0)
{
return;
}
CreationObjectSettingIntUIControl creationObjectSettingIntUIControl = this.instance;
Action action;
circuitNode.NodeModifiedEvent -= action;
circuitNode2 = this.node;
CircuitNode.NodeMetadataChanged nodeMetadataChanged = this.<>9__7;
CircuitNode.NodeMetadataChanged nodeMetadataChangedEvent = circuitNode2.NodeMetadataChangedEvent;
if (nodeMetadataChanged == 0)
{
CircuitNode.NodeMetadataChanged nodeMetadataChanged2 = delegate(NodeMetadata meta)
{
bool isCompleted = ((IAsyncResult)this.instance).IsCompleted;
};
this.<>9__7 = nodeMetadataChanged2;
}
@delegate = Delegate.Remove(nodeMetadataChangedEvent, nodeMetadataChanged);
}
while (@delegate != 0 && @delegate == 0);
circuitNode2.NodeMetadataChangedEvent = @delegate;
}
// Token: 0x0601430A RID: 82698 RVA: 0x004D92C4 File Offset: 0x004D74C4
[Token(Token = "0x601430A")]
[Address(RVA = "0x18CD430", Offset = "0x18CBE30", VA = "0x1818CD430")]
internal void <GetEditables>b__7(NodeMetadata meta)
{
bool isCompleted = ((IAsyncResult)this.instance).IsCompleted;
}
// Token: 0x0400D8B7 RID: 55479
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400D8B7")]
public CreationObjectSettingIntUIControl instance;
// Token: 0x0400D8B8 RID: 55480
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400D8B8")]
public CircuitNode node;
// Token: 0x0400D8B9 RID: 55481
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x400D8B9")]
public CircuitNode.NodeMetadataChanged <>9__7;
}
}
}