scripts
This commit is contained in:
@@ -0,0 +1,139 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Async;
|
||||
using RecRoom.Core.Creation;
|
||||
using RecRoom.Core.Creation.Circuits;
|
||||
|
||||
namespace RecRoom.Tools.MakerPenTools
|
||||
{
|
||||
// Token: 0x020025D6 RID: 9686
|
||||
[Token(Token = "0x20025D6")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class MakerPenUngroupCircuitsOperation : MakerPenOperation
|
||||
{
|
||||
// Token: 0x17002D75 RID: 11637
|
||||
// (get) Token: 0x06010C1E RID: 68638 RVA: 0x003F230C File Offset: 0x003F050C
|
||||
[Token(Token = "0x17002D75")]
|
||||
public bool CanUngroupCircuits
|
||||
{
|
||||
[Token(Token = "0x6010C1E")]
|
||||
[Address(RVA = "0x12C0F30", Offset = "0x12BF930", VA = "0x1812C0F30")]
|
||||
get
|
||||
{
|
||||
if (Enumerable.Count<GIPDDLFFNGG>(base.DHBPEOCPGAO.LLFDKCNCMKF) == 1 && base.DHBPEOCPGAO.IPJFJGPPJMH)
|
||||
{
|
||||
CircuitGroup component = Enumerable.First<CreationObject>(base.DHBPEOCPGAO.CHMMBNIHBJA).GetComponent<CircuitGroup>();
|
||||
int num = 0;
|
||||
if (component != num)
|
||||
{
|
||||
return !component.creationObject.JCLMEJKJNAA;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06010C1F RID: 68639 RVA: 0x003F2374 File Offset: 0x003F0574
|
||||
[Token(Token = "0x6010C1F")]
|
||||
[Address(RVA = "0x12C0C10", Offset = "0x12BF610", VA = "0x1812C0C10")]
|
||||
public IPromise<string> MPBCMIPLMOA()
|
||||
{
|
||||
CreationObject creationObject = Enumerable.First<CreationObject>(base.DHBPEOCPGAO.CHMMBNIHBJA);
|
||||
CreationObject groupCreationObject = creationObject;
|
||||
CircuitGroup component = creationObject.GetComponent<CircuitGroup>();
|
||||
CircuitGroup group = component;
|
||||
List<CreationObject> cplfchmmiel = component.CPLFCHMMIEL;
|
||||
Func<GIPDDLFFNGG, bool> <>9__2_ = MakerPenUngroupCircuitsOperation.<>c.<>9__2_0;
|
||||
if (<>9__2_ == 0)
|
||||
{
|
||||
MakerPenUngroupCircuitsOperation.<>c.<>9__2_0 = delegate(GIPDDLFFNGG x)
|
||||
{
|
||||
bool flag;
|
||||
return flag;
|
||||
};
|
||||
}
|
||||
IEnumerable<GIPDDLFFNGG> enumerable = Enumerable.Where<GIPDDLFFNGG>(cplfchmmiel, <>9__2_);
|
||||
Func<GIPDDLFFNGG, CreationObject> func;
|
||||
if (MakerPenUngroupCircuitsOperation.<>c.<>9__2_1 == 0)
|
||||
{
|
||||
func = delegate(GIPDDLFFNGG x)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
};
|
||||
MakerPenUngroupCircuitsOperation.<>c.<>9__2_1 = func;
|
||||
}
|
||||
List<CreationObject> list = Enumerable.ToList<CreationObject>(Enumerable.Select<GIPDDLFFNGG, CreationObject>(enumerable, func));
|
||||
List<CreationObject> groupObjects = list;
|
||||
Promise<string> promise3 = new Promise();
|
||||
Promise<string> promise = promise3;
|
||||
CreationManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
||||
List<GIPDDLFFNGG> list2 = new List();
|
||||
CreationObject groupCreationObject2 = groupCreationObject;
|
||||
list2.Add(groupCreationObject2);
|
||||
Action<CreationManager.FPDPPELCJIH> action = delegate(CreationManager.FPDPPELCJIH result)
|
||||
{
|
||||
promise.Complete("Unpacking circuit boards from this invention is prohibited by its creator.");
|
||||
};
|
||||
Promise<string> promise2 = promise;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06010C20 RID: 68640 RVA: 0x003F2468 File Offset: 0x003F0668
|
||||
[Token(Token = "0x6010C20")]
|
||||
[Address(RVA = "0x3D4170", Offset = "0x3D2B70", VA = "0x1803D4170")]
|
||||
public MakerPenUngroupCircuitsOperation()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x020025D7 RID: 9687
|
||||
[Token(Token = "0x20025D7")]
|
||||
[CompilerGenerated]
|
||||
private sealed class NHLIAMFODJJ
|
||||
{
|
||||
// Token: 0x06010C21 RID: 68641 RVA: 0x003F247C File Offset: 0x003F067C
|
||||
[Token(Token = "0x6010C21")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public NHLIAMFODJJ()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06010C22 RID: 68642 RVA: 0x003F2490 File Offset: 0x003F0690
|
||||
[Token(Token = "0x6010C22")]
|
||||
[Address(RVA = "0x12C4620", Offset = "0x12C3020", VA = "0x1812C4620")]
|
||||
internal void <TryUngroupCircuits>b__2(CreationManager.FPDPPELCJIH result)
|
||||
{
|
||||
this.promise.Complete("Unpacking circuit boards from this invention is prohibited by its creator.");
|
||||
}
|
||||
|
||||
// Token: 0x0400B237 RID: 45623
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400B237")]
|
||||
public CircuitGroup group;
|
||||
|
||||
// Token: 0x0400B238 RID: 45624
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400B238")]
|
||||
public List<CreationObject> groupObjects;
|
||||
|
||||
// Token: 0x0400B239 RID: 45625
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400B239")]
|
||||
public CreationObject groupCreationObject;
|
||||
|
||||
// Token: 0x0400B23A RID: 45626
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400B23A")]
|
||||
public MakerPenUngroupCircuitsOperation <>4__this;
|
||||
|
||||
// Token: 0x0400B23B RID: 45627
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400B23B")]
|
||||
public Promise<string> promise;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user