scripts
This commit is contained in:
@@ -0,0 +1,316 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.CircuitsV2.Adapter;
|
||||
using RecRoom.CircuitsV2.Config;
|
||||
using RecRoom.CircuitsV2.Experience;
|
||||
using RecRoom.Core.Creation;
|
||||
using RecRoom.Core.Rendering;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.CircuitsV2
|
||||
{
|
||||
// Token: 0x02002341 RID: 9025
|
||||
[Token(Token = "0x2002341")]
|
||||
[StructLayout(3)]
|
||||
public class Port : MonoBehaviour
|
||||
{
|
||||
// Token: 0x17002A12 RID: 10770
|
||||
// (get) Token: 0x0600F9D6 RID: 63958 RVA: 0x003AD048 File Offset: 0x003AB248
|
||||
[Token(Token = "0x17002A12")]
|
||||
public PortView GCNJKIKLGDG
|
||||
{
|
||||
[Token(Token = "0x600F9D6")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.portView;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002A13 RID: 10771
|
||||
// (get) Token: 0x0600F9D7 RID: 63959 RVA: 0x003AD05C File Offset: 0x003AB25C
|
||||
[Token(Token = "0x17002A13")]
|
||||
public ChipConnectionPoint DFIAENJIEAH
|
||||
{
|
||||
[Token(Token = "0x600F9D7")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.connectionPoint;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002A14 RID: 10772
|
||||
// (get) Token: 0x0600F9D8 RID: 63960 RVA: 0x003AD070 File Offset: 0x003AB270
|
||||
// (set) Token: 0x0600F9D9 RID: 63961 RVA: 0x003AD084 File Offset: 0x003AB284
|
||||
[Token(Token = "0x17002A14")]
|
||||
public KPJGIJKKILH NCGBFJOLMAG
|
||||
{
|
||||
[Token(Token = "0x600F9D8")]
|
||||
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")]
|
||||
get;
|
||||
[Token(Token = "0x600F9D9")]
|
||||
[Address(RVA = "0x3D3460", Offset = "0x3D1E60", VA = "0x1803D3460")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x17002A15 RID: 10773
|
||||
// (get) Token: 0x0600F9DA RID: 63962 RVA: 0x003AD098 File Offset: 0x003AB298
|
||||
[Token(Token = "0x17002A15")]
|
||||
public bool PCLCENHIFPL
|
||||
{
|
||||
[Token(Token = "0x600F9DA")]
|
||||
[Address(RVA = "0x1677760", Offset = "0x1676160", VA = "0x181677760")]
|
||||
get
|
||||
{
|
||||
if (this.<MGGLBOLIHNH>k__BackingField != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600F9DB RID: 63963 RVA: 0x003AD0B0 File Offset: 0x003AB2B0
|
||||
[Token(Token = "0x600F9DB")]
|
||||
[Address(RVA = "0x16769D0", Offset = "0x16753D0", VA = "0x1816769D0")]
|
||||
private void Awake()
|
||||
{
|
||||
PortView portView = this.portView;
|
||||
Renderer[] array = new Renderer[2];
|
||||
MeshFilterAndRenderer meshFilterAndRenderer = portView.portComponents[1];
|
||||
if (meshFilterAndRenderer != 0)
|
||||
{
|
||||
}
|
||||
array[0] = meshFilterAndRenderer;
|
||||
MeshFilterAndRenderer meshFilterAndRenderer2 = portView.plugComponents[1];
|
||||
if (meshFilterAndRenderer2 != 0)
|
||||
{
|
||||
}
|
||||
array[1] = meshFilterAndRenderer2;
|
||||
ConfigurableSubpiece configurableSubpiece = this.subpiece;
|
||||
this.FBGOGGOOGFG = array;
|
||||
ChipConnectionPoint chipConnectionPoint = this.connectionPoint;
|
||||
configurableSubpiece.SetIConfigurable(chipConnectionPoint);
|
||||
}
|
||||
|
||||
// Token: 0x0600F9DC RID: 63964 RVA: 0x003AD124 File Offset: 0x003AB324
|
||||
[Token(Token = "0x600F9DC")]
|
||||
[Address(RVA = "0x16773A0", Offset = "0x1675DA0", VA = "0x1816773A0")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
this.Unbind();
|
||||
}
|
||||
|
||||
// Token: 0x0600F9DD RID: 63965 RVA: 0x003AD138 File Offset: 0x003AB338
|
||||
[Token(Token = "0x600F9DD")]
|
||||
[Address(RVA = "0x1676B50", Offset = "0x1675550", VA = "0x181676B50")]
|
||||
public void Bind(CircuitsV2Config OJAIGECECGI, Chip EHHKGBAMIOP, ChipConfig JNDKCJKANCC, KPJGIJKKILH FEGCHFPGAGN, IOKind BIKMGAPACLK)
|
||||
{
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
this.Unbind();
|
||||
this.<MGGLBOLIHNH>k__BackingField = 0;
|
||||
Action action = new Action(this.KFOIOAKJKHH);
|
||||
KPJGIJKKILH kpjgijkkilh = this.<MGGLBOLIHNH>k__BackingField;
|
||||
Action action2 = new Action(this.MDKFCBPFJEJ);
|
||||
KPJGIJKKILH kpjgijkkilh2 = this.<MGGLBOLIHNH>k__BackingField;
|
||||
Action action3 = new Action(this.AENNHPAONCL);
|
||||
PortView portView = this.portView;
|
||||
this.OJAIGECECGI = OJAIGECECGI;
|
||||
this.BIKMGAPACLK = IOKind.Input;
|
||||
if (portView.IDOBFNPFBDI())
|
||||
{
|
||||
portView.portGameObject = this;
|
||||
}
|
||||
ChipConnectionPoint chipConnectionPoint = this.connectionPoint;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600F9DE RID: 63966 RVA: 0x003AD1C8 File Offset: 0x003AB3C8
|
||||
[Token(Token = "0x600F9DE")]
|
||||
[Address(RVA = "0x1677280", Offset = "0x1675C80", VA = "0x181677280")]
|
||||
private void MFNLINKFLOP(KPJGIJKKILH DMGBJCPEJFI)
|
||||
{
|
||||
this.<MGGLBOLIHNH>k__BackingField = DMGBJCPEJFI;
|
||||
Action action = new Action(this.KFOIOAKJKHH);
|
||||
KPJGIJKKILH kpjgijkkilh = this.<MGGLBOLIHNH>k__BackingField;
|
||||
Action action2 = new Action(this.MDKFCBPFJEJ);
|
||||
KPJGIJKKILH kpjgijkkilh2 = this.<MGGLBOLIHNH>k__BackingField;
|
||||
Action action3 = new Action(this.AENNHPAONCL);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600F9DF RID: 63967 RVA: 0x003AD218 File Offset: 0x003AB418
|
||||
[Token(Token = "0x600F9DF")]
|
||||
[Address(RVA = "0x1676FC0", Offset = "0x16759C0", VA = "0x181676FC0")]
|
||||
private void MDAPKHABNOB()
|
||||
{
|
||||
KPJGIJKKILH kpjgijkkilh = this.<MGGLBOLIHNH>k__BackingField;
|
||||
Action action = new Action(this.KFOIOAKJKHH);
|
||||
KPJGIJKKILH kpjgijkkilh2 = this.<MGGLBOLIHNH>k__BackingField;
|
||||
Action action2 = new Action(this.MDKFCBPFJEJ);
|
||||
KPJGIJKKILH kpjgijkkilh3 = this.<MGGLBOLIHNH>k__BackingField;
|
||||
Action action3 = new Action(this.AENNHPAONCL);
|
||||
this.<MGGLBOLIHNH>k__BackingField = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600F9E0 RID: 63968 RVA: 0x003AD274 File Offset: 0x003AB474
|
||||
[Token(Token = "0x600F9E0")]
|
||||
[Address(RVA = "0x1677610", Offset = "0x1676010", VA = "0x181677610")]
|
||||
public void Unbind()
|
||||
{
|
||||
ChipConnectionPoint chipConnectionPoint = this.connectionPoint;
|
||||
int num = 0;
|
||||
chipConnectionPoint.EHHKGBAMIOP = num;
|
||||
chipConnectionPoint.DMGBJCPEJFI = num;
|
||||
KPJGIJKKILH kpjgijkkilh = this.<MGGLBOLIHNH>k__BackingField;
|
||||
this.BIKMGAPACLK = (IOKind)num;
|
||||
this.OJAIGECECGI = num;
|
||||
if (kpjgijkkilh != 0)
|
||||
{
|
||||
KPJGIJKKILH kpjgijkkilh2 = this.<MGGLBOLIHNH>k__BackingField;
|
||||
Action action = new Action(this.KFOIOAKJKHH);
|
||||
KPJGIJKKILH kpjgijkkilh3 = this.<MGGLBOLIHNH>k__BackingField;
|
||||
Action action2 = new Action(this.MDKFCBPFJEJ);
|
||||
KPJGIJKKILH kpjgijkkilh4 = this.<MGGLBOLIHNH>k__BackingField;
|
||||
Action action3 = new Action(this.AENNHPAONCL);
|
||||
this.<MGGLBOLIHNH>k__BackingField = num;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600F9E1 RID: 63969 RVA: 0x003AD300 File Offset: 0x003AB500
|
||||
[Token(Token = "0x600F9E1")]
|
||||
[Address(RVA = "0x16773B0", Offset = "0x1675DB0", VA = "0x1816773B0")]
|
||||
public void RenderWorldFadeMask()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
Renderer[] fbgoggoogfg = this.FBGOGGOOGFG;
|
||||
Func<Renderer, bool> <>9__22_ = Port.<>c.<>9__22_0;
|
||||
if (<>9__22_ == 0)
|
||||
{
|
||||
Port.<>c.<>9__22_0 = (Renderer r) => r.isVisible;
|
||||
}
|
||||
IEnumerable<Renderer> enumerable = Enumerable.Where<Renderer>(fbgoggoogfg, <>9__22_);
|
||||
if (enumerable != 0)
|
||||
{
|
||||
if (num >= enumerable)
|
||||
{
|
||||
goto IL_44;
|
||||
}
|
||||
num += num;
|
||||
if (num != enumerable)
|
||||
{
|
||||
num++;
|
||||
goto IL_44;
|
||||
}
|
||||
IL_4B:
|
||||
num += 19;
|
||||
goto IL_50;
|
||||
IL_44:
|
||||
WorldFadeRendererEffect.RenderCornerMoveMask(num, 1);
|
||||
goto IL_4B;
|
||||
}
|
||||
IL_50:
|
||||
if (enumerable != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600F9E2 RID: 63970 RVA: 0x003AD370 File Offset: 0x003AB570
|
||||
[Token(Token = "0x600F9E2")]
|
||||
[Address(RVA = "0x1676EA0", Offset = "0x16758A0", VA = "0x181676EA0")]
|
||||
private void KFOIOAKJKHH()
|
||||
{
|
||||
PortView portView = this.portView;
|
||||
CircuitsV2Config ojaigececgi = this.OJAIGECECGI;
|
||||
KPJGIJKKILH kpjgijkkilh = this.<MGGLBOLIHNH>k__BackingField;
|
||||
IOKind bikmgapaclk = this.BIKMGAPACLK;
|
||||
TypeConfig typeConfig;
|
||||
portView.NAKOLNBLHMG(ojaigececgi, kpjgijkkilh, typeConfig);
|
||||
bool flag;
|
||||
portView.KPMIOKDMFMO(kpjgijkkilh, typeConfig, flag);
|
||||
portView.GOAIJALKJAD(kpjgijkkilh, flag);
|
||||
}
|
||||
|
||||
// Token: 0x0600F9E3 RID: 63971 RVA: 0x003AD3C0 File Offset: 0x003AB5C0
|
||||
[Token(Token = "0x600F9E3")]
|
||||
[Address(RVA = "0x16770E0", Offset = "0x1675AE0", VA = "0x1816770E0")]
|
||||
private void MDKFCBPFJEJ()
|
||||
{
|
||||
PortView portView = this.portView;
|
||||
CircuitsV2Config ojaigececgi = this.OJAIGECECGI;
|
||||
KPJGIJKKILH kpjgijkkilh = this.<MGGLBOLIHNH>k__BackingField;
|
||||
IOKind bikmgapaclk = this.BIKMGAPACLK;
|
||||
TypeConfig typeConfig;
|
||||
portView.NAKOLNBLHMG(ojaigececgi, kpjgijkkilh, typeConfig);
|
||||
bool flag;
|
||||
portView.arrayIcon.SetActive(flag);
|
||||
portView.KPMIOKDMFMO(kpjgijkkilh, typeConfig, flag);
|
||||
portView.GOAIJALKJAD(kpjgijkkilh, flag);
|
||||
portView.FABCHIFFIDI(ojaigececgi, kpjgijkkilh);
|
||||
}
|
||||
|
||||
// Token: 0x0600F9E4 RID: 63972 RVA: 0x003AD424 File Offset: 0x003AB624
|
||||
[Token(Token = "0x600F9E4")]
|
||||
[Address(RVA = "0x16769A0", Offset = "0x16753A0", VA = "0x1816769A0")]
|
||||
private void AENNHPAONCL()
|
||||
{
|
||||
PortView portView = this.portView;
|
||||
KPJGIJKKILH kpjgijkkilh = this.<MGGLBOLIHNH>k__BackingField;
|
||||
CircuitsV2Config ojaigececgi = this.OJAIGECECGI;
|
||||
portView.FABCHIFFIDI(ojaigececgi, kpjgijkkilh);
|
||||
}
|
||||
|
||||
// Token: 0x0600F9E5 RID: 63973 RVA: 0x003AD454 File Offset: 0x003AB654
|
||||
[Token(Token = "0x600F9E5")]
|
||||
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
||||
public Port()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400A66F RID: 42607
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400A66F")]
|
||||
[SerializeField]
|
||||
private PortView portView;
|
||||
|
||||
// Token: 0x0400A670 RID: 42608
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400A670")]
|
||||
[SerializeField]
|
||||
private ChipConnectionPoint connectionPoint;
|
||||
|
||||
// Token: 0x0400A671 RID: 42609
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400A671")]
|
||||
[SerializeField]
|
||||
private ConfigurableSubpiece subpiece;
|
||||
|
||||
// Token: 0x0400A672 RID: 42610
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400A672")]
|
||||
private Renderer[] FBGOGGOOGFG;
|
||||
|
||||
// Token: 0x0400A673 RID: 42611
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400A673")]
|
||||
private CircuitsV2Config OJAIGECECGI;
|
||||
|
||||
// Token: 0x0400A675 RID: 42613
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400A675")]
|
||||
private IOKind BIKMGAPACLK;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user