205 lines
5.9 KiB
C#
205 lines
5.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core.Creation;
|
|
using RecRoom.Core.Creation.Circuits;
|
|
|
|
namespace RecRoom.Tools.MakerPenTools
|
|
{
|
|
// Token: 0x02002B6D RID: 11117
|
|
[Token(Token = "0x2002B6D")]
|
|
[Serializable]
|
|
public class MakerPenAddCircuitToGroupOperation : MakerPenOperation
|
|
{
|
|
// Token: 0x170033CC RID: 13260
|
|
// (get) Token: 0x060128E9 RID: 76009 RVA: 0x00438B9C File Offset: 0x00436D9C
|
|
[Token(Token = "0x170033CC")]
|
|
public bool CanAddCircuitsToGroup
|
|
{
|
|
[Token(Token = "0x60128E9")]
|
|
[Address(RVA = "0x190FAC0", Offset = "0x190EAC0", VA = "0x18190FAC0")]
|
|
get
|
|
{
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
CreationContext <BDFEKAONFDI>k__BackingField = this.<MakerPen>k__BackingField.<BDFEKAONFDI>k__BackingField;
|
|
List<GIPDDLFFNGG> llfdkcncmkf = <BDFEKAONFDI>k__BackingField.LLFDKCNCMKF;
|
|
CircuitGroup component;
|
|
if (<BDFEKAONFDI>k__BackingField != 0)
|
|
{
|
|
int num2 = 0;
|
|
if (!(<BDFEKAONFDI>k__BackingField == num2))
|
|
{
|
|
component = <BDFEKAONFDI>k__BackingField.GetComponent<CircuitGroup>();
|
|
int num3 = 0;
|
|
if (num == num3)
|
|
{
|
|
int num4 = 0;
|
|
if (component != num4)
|
|
{
|
|
}
|
|
}
|
|
bool flag;
|
|
if (flag && !flag)
|
|
{
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
if (<BDFEKAONFDI>k__BackingField != 0)
|
|
{
|
|
}
|
|
if (num == 0)
|
|
{
|
|
if (num != -1)
|
|
{
|
|
}
|
|
int num5 = 0;
|
|
if (component != num5)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060128EA RID: 76010 RVA: 0x00438C38 File Offset: 0x00436E38
|
|
[Token(Token = "0x60128EA")]
|
|
[Address(RVA = "0x190F390", Offset = "0x190E390", VA = "0x18190F390")]
|
|
public PMGCJEPKFOF<string> KDCNNPNLNDJ()
|
|
{
|
|
int num;
|
|
int num5;
|
|
do
|
|
{
|
|
num = 0;
|
|
if (!KCPNMEMDCAB.OACIANBCPOG(this.<MakerPen>k__BackingField.<BDFEKAONFDI>k__BackingField))
|
|
{
|
|
goto IL_1A1;
|
|
}
|
|
CircuitGroup firstCircuitGroup = num;
|
|
List<CreationObject> list = new List();
|
|
List<CreationObject> circuitsToAdd = list;
|
|
CreationContext <BDFEKAONFDI>k__BackingField = this.<MakerPen>k__BackingField.<BDFEKAONFDI>k__BackingField;
|
|
List<GIPDDLFFNGG> llfdkcncmkf = <BDFEKAONFDI>k__BackingField.LLFDKCNCMKF;
|
|
if (<BDFEKAONFDI>k__BackingField != 0)
|
|
{
|
|
int num2 = 0;
|
|
if (<BDFEKAONFDI>k__BackingField == num2)
|
|
{
|
|
continue;
|
|
}
|
|
CircuitGroup component = <BDFEKAONFDI>k__BackingField.GetComponent<CircuitGroup>();
|
|
CircuitGroup firstCircuitGroup5 = firstCircuitGroup;
|
|
int num3 = 0;
|
|
if (firstCircuitGroup5 == num3)
|
|
{
|
|
int num4 = 0;
|
|
if (component != num4)
|
|
{
|
|
firstCircuitGroup = component;
|
|
}
|
|
}
|
|
bool flag;
|
|
while (!flag)
|
|
{
|
|
}
|
|
List<CreationObject> circuitsToAdd3 = circuitsToAdd;
|
|
}
|
|
num5 = 0;
|
|
if (<BDFEKAONFDI>k__BackingField != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
CircuitGroup firstCircuitGroup2 = mhchikigmcm.firstCircuitGroup;
|
|
int num6 = 0;
|
|
if (!(firstCircuitGroup2 == num6))
|
|
{
|
|
List<CreationObject> circuitsToAdd2 = mhchikigmcm.circuitsToAdd;
|
|
CircuitGroup firstCircuitGroup3 = mhchikigmcm.firstCircuitGroup;
|
|
int size = firstCircuitGroup3.ActiveInputInterfaceNodes._size;
|
|
int size2 = firstCircuitGroup3.ActiveOutputInterfaceNodes._size;
|
|
int num7 = KCPNMEMDCAB.EDHGJGAOFPL(mhchikigmcm.circuitsToAdd);
|
|
CircuitGroup firstCircuitGroup4 = mhchikigmcm.firstCircuitGroup;
|
|
int num8 = 0;
|
|
if (firstCircuitGroup4 != num8)
|
|
{
|
|
num5++;
|
|
}
|
|
if (0UL < (ulong)5L)
|
|
{
|
|
CBLLFJEDOII<string> cbllfjedoii = new CBLLFJEDOII();
|
|
mhchikigmcm.promise = cbllfjedoii;
|
|
CreationManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
List<GIPDDLFFNGG> list2 = new List();
|
|
CreationObject component2 = mhchikigmcm.firstCircuitGroup.GetComponent<CreationObject>();
|
|
list2.Add(component2);
|
|
Action<CreationManager.FPDPPELCJIH> action = delegate(CreationManager.FPDPPELCJIH result)
|
|
{
|
|
mhchikigmcm.promise.OOOIENHGNCA("Editing this invention is prohibited by its creator.");
|
|
};
|
|
}
|
|
string text = KCPNMEMDCAB.LDLOKHBMJCD();
|
|
string text2 = KCPNMEMDCAB.KOHJIJEDCNH();
|
|
return JJEKJGALHKO.LIPGKFECLDO<string>(KCPNMEMDCAB.HMMCAGMKGOH());
|
|
}
|
|
PMGCJEPKFOF<string> pmgcjepkfof = JJEKJGALHKO.LIPGKFECLDO<string>("No circuit board selected");
|
|
IL_1A1:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060128EB RID: 76011 RVA: 0x00438E0C File Offset: 0x0043700C
|
|
[Token(Token = "0x60128EB")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public MakerPenAddCircuitToGroupOperation()
|
|
{
|
|
}
|
|
|
|
// Token: 0x02002B6E RID: 11118
|
|
[Token(Token = "0x2002B6E")]
|
|
[CompilerGenerated]
|
|
private sealed class MHCHIKIGMCM
|
|
{
|
|
// Token: 0x060128EC RID: 76012 RVA: 0x00438E20 File Offset: 0x00437020
|
|
[Token(Token = "0x60128EC")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public MHCHIKIGMCM()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060128ED RID: 76013 RVA: 0x00438E34 File Offset: 0x00437034
|
|
[Token(Token = "0x60128ED")]
|
|
[Address(RVA = "0x190EB10", Offset = "0x190DB10", VA = "0x18190EB10")]
|
|
internal void <TryAddCircuitsToGroup>b__0(CreationManager.FPDPPELCJIH result)
|
|
{
|
|
this.promise.OOOIENHGNCA("Editing this invention is prohibited by its creator.");
|
|
}
|
|
|
|
// Token: 0x0400BEED RID: 48877
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400BEED")]
|
|
public CircuitGroup firstCircuitGroup;
|
|
|
|
// Token: 0x0400BEEE RID: 48878
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400BEEE")]
|
|
public List<CreationObject> circuitsToAdd;
|
|
|
|
// Token: 0x0400BEEF RID: 48879
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400BEEF")]
|
|
public MakerPenAddCircuitToGroupOperation <>4__this;
|
|
|
|
// Token: 0x0400BEF0 RID: 48880
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400BEF0")]
|
|
public CBLLFJEDOII<string> promise;
|
|
}
|
|
}
|
|
}
|