347 lines
11 KiB
C#
347 lines
11 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using AGUI.StackedUI;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.AGUI.ToolUIs;
|
|
using RecRoom.Circuits;
|
|
|
|
namespace RecRoom.Core.Creation.Circuits
|
|
{
|
|
// Token: 0x02002C84 RID: 11396
|
|
[Token(Token = "0x2002C84")]
|
|
[StructLayout(3)]
|
|
public class ComparerCircuitNodeDisplay : ModedCircuitNodeDisplay<ComparerNode>
|
|
{
|
|
// Token: 0x170035AF RID: 13743
|
|
// (get) Token: 0x06014177 RID: 82295 RVA: 0x004D2D1C File Offset: 0x004D0F1C
|
|
[Token(Token = "0x170035AF")]
|
|
protected override Dictionary<string, FLCFOLDCOJJ> COHNLMCLBPI
|
|
{
|
|
[Token(Token = "0x6014177")]
|
|
[Address(RVA = "0x16CB7E0", Offset = "0x16CA1E0", VA = "0x1816CB7E0", Slot = "32")]
|
|
get
|
|
{
|
|
Dictionary<string, FLCFOLDCOJJ> dictionary;
|
|
Array values;
|
|
do
|
|
{
|
|
dictionary = new Dictionary();
|
|
values = Enum.GetValues(typeof(SignalComparisonHelper.ComparerModes));
|
|
}
|
|
while (values == 0);
|
|
int num = 0;
|
|
if (num < values)
|
|
{
|
|
num++;
|
|
}
|
|
return dictionary;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170035B0 RID: 13744
|
|
// (get) Token: 0x06014178 RID: 82296 RVA: 0x004D2D58 File Offset: 0x004D0F58
|
|
[Token(Token = "0x170035B0")]
|
|
protected override object KCNNJNGLIEO
|
|
{
|
|
[Token(Token = "0x6014178")]
|
|
[Address(RVA = "0x16CB720", Offset = "0x16CA120", VA = "0x1816CB720", Slot = "33")]
|
|
get
|
|
{
|
|
return "mode";
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014179 RID: 82297 RVA: 0x004D2D6C File Offset: 0x004D0F6C
|
|
[Token(Token = "0x6014179")]
|
|
[Address(RVA = "0x16CB450", Offset = "0x16C9E50", VA = "0x1816CB450", Slot = "34")]
|
|
protected override int BJKDPHHLCII()
|
|
{
|
|
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn == 0 || mbbjmcdgdmn != 0)
|
|
{
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x0601417A RID: 82298 RVA: 0x004D2D8C File Offset: 0x004D0F8C
|
|
[Token(Token = "0x601417A")]
|
|
[Address(RVA = "0x16CB4D0", Offset = "0x16C9ED0", VA = "0x1816CB4D0", Slot = "19")]
|
|
public override IEnumerable<ILINODKFHEO> GetEditables()
|
|
{
|
|
List<ILINODKFHEO> list = new List(base.GetEditables());
|
|
ComparerCircuitNodeDisplay thisObj = this;
|
|
OMKPHDBNLKH<CreationObjectSettingBooleanUIControl, bool>.DEDABHKCIBG <>9__7_ = ComparerCircuitNodeDisplay.<>c.<>9__7_0;
|
|
if (<>9__7_ == 0)
|
|
{
|
|
ComparerCircuitNodeDisplay.<>c.<>9__7_0 = (MakerPenPaletteConfigScreen uiControl) => uiControl.DefaultBoolUIControlPrefab;
|
|
}
|
|
OMKPHDBNLKH<CreationObjectSettingBooleanUIControl, bool>.OHINDOLFNMP ohindolfnmp = delegate(CreationObjectSettingBooleanUIControl instance)
|
|
{
|
|
ComparerCircuitNodeDisplay thisObj4;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
Func<bool> func = new Func(this.EFJKAPLKEAK);
|
|
CreationObjectSettingBooleanUIControl instance2 = instance;
|
|
Action<bool> action = new Action(this.PGMPNLKFEIC);
|
|
PLDMAFINLJO.FANDNIHFMNM(instance.PropertyDescription, "Advanced Mode");
|
|
thisObj4 = thisObj;
|
|
Action feklandbaep = thisObj4.FEKLANDBAEP;
|
|
CreationObjectSettingBooleanUIControl instance3 = instance;
|
|
Action action2;
|
|
@delegate = Delegate.Combine(feklandbaep, action2);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
thisObj4.FEKLANDBAEP = @delegate;
|
|
CreationObjectSettingBooleanUIControl instance4 = fpmjmdjbbaj.instance;
|
|
Action action3 = delegate
|
|
{
|
|
ComparerCircuitNodeDisplay thisObj3;
|
|
Delegate delegate2;
|
|
do
|
|
{
|
|
ComparerCircuitNodeDisplay thisObj2 = fpmjmdjbbaj.CS$<>8__locals1.thisObj;
|
|
int num2 = 0;
|
|
if (!(thisObj2 != num2))
|
|
{
|
|
return;
|
|
}
|
|
thisObj3 = fpmjmdjbbaj.CS$<>8__locals1.thisObj;
|
|
Action feklandbaep2 = thisObj3.FEKLANDBAEP;
|
|
CreationObjectSettingBooleanUIControl instance5 = fpmjmdjbbaj.instance;
|
|
Action action4;
|
|
delegate2 = Delegate.Remove(feklandbaep2, action4);
|
|
}
|
|
while (delegate2 != 0 && delegate2 == 0);
|
|
thisObj3.FEKLANDBAEP = delegate2;
|
|
};
|
|
instance4.IABDCLILPMF += action3;
|
|
};
|
|
int num;
|
|
CPNMFOKDBKM cpnmfokdbkm = new CPNMFOKDBKM(<>9__7_, ohindolfnmp, num);
|
|
num = 0;
|
|
list.Add(cpnmfokdbkm);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0601417B RID: 82299 RVA: 0x004D2E00 File Offset: 0x004D1000
|
|
[Token(Token = "0x601417B")]
|
|
[Address(RVA = "0x16CBA80", Offset = "0x16CA480", VA = "0x1816CBA80")]
|
|
private void PGMPNLKFEIC(bool EAMPDCBBIGK)
|
|
{
|
|
this.NOKJGALJPKC = EAMPDCBBIGK;
|
|
Dictionary<object, object> dictionary = new Dictionary();
|
|
bool nokjgaljpkc = this.NOKJGALJPKC;
|
|
dictionary["adv"] = dictionary;
|
|
CircuitManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
int <NodeId>k__BackingField = this.MBBJMCDGDMN.<NodeId>k__BackingField;
|
|
instance.RequestMasterModifyNode(<NodeId>k__BackingField, dictionary);
|
|
}
|
|
|
|
// Token: 0x0601417C RID: 82300 RVA: 0x004D2E50 File Offset: 0x004D1050
|
|
[Token(Token = "0x601417C")]
|
|
[Address(RVA = "0x631360", Offset = "0x62FD60", VA = "0x180631360")]
|
|
private bool EFJKAPLKEAK()
|
|
{
|
|
return this.NOKJGALJPKC;
|
|
}
|
|
|
|
// Token: 0x0601417D RID: 82301 RVA: 0x004D2E64 File Offset: 0x004D1064
|
|
[Token(Token = "0x601417D")]
|
|
[Address(RVA = "0x16CB970", Offset = "0x16CA370", VA = "0x1816CB970", Slot = "25")]
|
|
public override void OnCircuitNodeInitialized(CircuitNode IKFLAODDALD)
|
|
{
|
|
base.OnCircuitNodeInitialized(IKFLAODDALD);
|
|
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn != 0)
|
|
{
|
|
Action action = new Action(this.KGFOKCDLGCI);
|
|
mbbjmcdgdmn.NodeModifiedEvent += action;
|
|
}
|
|
CircuitNode mbbjmcdgdmn2 = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn2 != 0 && mbbjmcdgdmn2 != 0)
|
|
{
|
|
Action feklandbaep = this.FEKLANDBAEP;
|
|
this.NOKJGALJPKC = mbbjmcdgdmn2 != null;
|
|
if (feklandbaep != 0)
|
|
{
|
|
feklandbaep();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601417E RID: 82302 RVA: 0x004D2EC4 File Offset: 0x004D10C4
|
|
[Token(Token = "0x601417E")]
|
|
[Address(RVA = "0x16CB680", Offset = "0x16CA080", VA = "0x1816CB680")]
|
|
private void KGFOKCDLGCI()
|
|
{
|
|
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn != 0 && mbbjmcdgdmn != 0)
|
|
{
|
|
Action feklandbaep = this.FEKLANDBAEP;
|
|
this.NOKJGALJPKC = mbbjmcdgdmn != null;
|
|
if (feklandbaep != 0)
|
|
{
|
|
feklandbaep();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601417F RID: 82303 RVA: 0x004D2EFC File Offset: 0x004D10FC
|
|
[Token(Token = "0x601417F")]
|
|
[Address(RVA = "0x16CB750", Offset = "0x16CA150", VA = "0x1816CB750", Slot = "24")]
|
|
protected override void NDMHFAFLLOH(PhotonView KFONGPOFCDH)
|
|
{
|
|
base.NDMHFAFLLOH(KFONGPOFCDH);
|
|
CircuitNode mbbjmcdgdmn = this.MBBJMCDGDMN;
|
|
if (mbbjmcdgdmn != 0)
|
|
{
|
|
Action action = new Action(this.KGFOKCDLGCI);
|
|
mbbjmcdgdmn.NodeModifiedEvent -= action;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014180 RID: 82304 RVA: 0x004D2F30 File Offset: 0x004D1130
|
|
[Token(Token = "0x6014180")]
|
|
[Address(RVA = "0x16CBB70", Offset = "0x16CA570", VA = "0x1816CBB70")]
|
|
public ComparerCircuitNodeDisplay()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400D7E7 RID: 55271
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xD8")]
|
|
[Token(Token = "0x400D7E7")]
|
|
private Action FEKLANDBAEP;
|
|
|
|
// Token: 0x0400D7E8 RID: 55272
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE0")]
|
|
[Token(Token = "0x400D7E8")]
|
|
private bool NOKJGALJPKC;
|
|
|
|
// Token: 0x02002C85 RID: 11397
|
|
[Token(Token = "0x2002C85")]
|
|
[CompilerGenerated]
|
|
private sealed class KFBOEPPEOGP
|
|
{
|
|
// Token: 0x06014181 RID: 82305 RVA: 0x004D2F44 File Offset: 0x004D1144
|
|
[Token(Token = "0x6014181")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public KFBOEPPEOGP()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06014182 RID: 82306 RVA: 0x004D2F58 File Offset: 0x004D1158
|
|
[Token(Token = "0x6014182")]
|
|
[Address(RVA = "0x16CFF70", Offset = "0x16CE970", VA = "0x1816CFF70")]
|
|
internal void <GetEditables>b__1(CreationObjectSettingBooleanUIControl instance)
|
|
{
|
|
ComparerCircuitNodeDisplay.FPMJMDJBBAJ fpmjmdjbbaj;
|
|
ComparerCircuitNodeDisplay comparerCircuitNodeDisplay;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
fpmjmdjbbaj = new ComparerCircuitNodeDisplay.FPMJMDJBBAJ();
|
|
fpmjmdjbbaj.CS$<>8__locals1 = this;
|
|
fpmjmdjbbaj.instance = instance;
|
|
Func<bool> func = new Func(this.<>4__this.EFJKAPLKEAK);
|
|
CreationObjectSettingBooleanUIControl instance2 = fpmjmdjbbaj.instance;
|
|
Action<bool> action = new Action(this.<>4__this.PGMPNLKFEIC);
|
|
PLDMAFINLJO.FANDNIHFMNM(fpmjmdjbbaj.instance.PropertyDescription, "Advanced Mode");
|
|
comparerCircuitNodeDisplay = this.thisObj;
|
|
Action feklandbaep = comparerCircuitNodeDisplay.FEKLANDBAEP;
|
|
CreationObjectSettingBooleanUIControl instance3 = fpmjmdjbbaj.instance;
|
|
Action action2;
|
|
@delegate = Delegate.Combine(feklandbaep, action2);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
comparerCircuitNodeDisplay.FEKLANDBAEP = @delegate;
|
|
CreationObjectSettingBooleanUIControl instance4 = fpmjmdjbbaj.instance;
|
|
Action action3 = delegate
|
|
{
|
|
ComparerCircuitNodeDisplay comparerCircuitNodeDisplay3;
|
|
Delegate delegate2;
|
|
do
|
|
{
|
|
ComparerCircuitNodeDisplay comparerCircuitNodeDisplay2 = fpmjmdjbbaj.CS$<>8__locals1.thisObj;
|
|
int num = 0;
|
|
if (!(comparerCircuitNodeDisplay2 != num))
|
|
{
|
|
return;
|
|
}
|
|
comparerCircuitNodeDisplay3 = fpmjmdjbbaj.CS$<>8__locals1.thisObj;
|
|
Action feklandbaep2 = comparerCircuitNodeDisplay3.FEKLANDBAEP;
|
|
CreationObjectSettingBooleanUIControl instance5 = fpmjmdjbbaj.instance;
|
|
Action action4;
|
|
delegate2 = Delegate.Remove(feklandbaep2, action4);
|
|
}
|
|
while (delegate2 != 0 && delegate2 == 0);
|
|
comparerCircuitNodeDisplay3.FEKLANDBAEP = delegate2;
|
|
};
|
|
instance4.IABDCLILPMF += action3;
|
|
}
|
|
|
|
// Token: 0x0400D7E9 RID: 55273
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400D7E9")]
|
|
public ComparerCircuitNodeDisplay <>4__this;
|
|
|
|
// Token: 0x0400D7EA RID: 55274
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400D7EA")]
|
|
public ComparerCircuitNodeDisplay thisObj;
|
|
}
|
|
|
|
// Token: 0x02002C86 RID: 11398
|
|
[Token(Token = "0x2002C86")]
|
|
[CompilerGenerated]
|
|
private sealed class FPMJMDJBBAJ
|
|
{
|
|
// Token: 0x06014183 RID: 82307 RVA: 0x004D3018 File Offset: 0x004D1218
|
|
[Token(Token = "0x6014183")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public FPMJMDJBBAJ()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06014184 RID: 82308 RVA: 0x004D302C File Offset: 0x004D122C
|
|
[Token(Token = "0x6014184")]
|
|
[Address(RVA = "0x16CC7D0", Offset = "0x16CB1D0", VA = "0x1816CC7D0")]
|
|
internal void <GetEditables>b__2()
|
|
{
|
|
ComparerCircuitNodeDisplay thisObj2;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
ComparerCircuitNodeDisplay thisObj = this.CS$<>8__locals1.thisObj;
|
|
int num = 0;
|
|
if (!(thisObj != num))
|
|
{
|
|
return;
|
|
}
|
|
thisObj2 = this.CS$<>8__locals1.thisObj;
|
|
Action feklandbaep = thisObj2.FEKLANDBAEP;
|
|
CreationObjectSettingBooleanUIControl creationObjectSettingBooleanUIControl = this.instance;
|
|
Action action;
|
|
@delegate = Delegate.Remove(feklandbaep, action);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
thisObj2.FEKLANDBAEP = @delegate;
|
|
}
|
|
|
|
// Token: 0x0400D7EB RID: 55275
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400D7EB")]
|
|
public CreationObjectSettingBooleanUIControl instance;
|
|
|
|
// Token: 0x0400D7EC RID: 55276
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400D7EC")]
|
|
public ComparerCircuitNodeDisplay.KFBOEPPEOGP CS$<>8__locals1;
|
|
}
|
|
}
|
|
}
|