m
This commit is contained in:
@@ -0,0 +1,295 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CircuitsV2.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.CircuitsV2.Config;
|
||||
using RecRoom.CircuitsV2.Experience;
|
||||
using RecRoom.Core.Creation;
|
||||
using RecRoom.Core.Rendering;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.CircuitsV2
|
||||
{
|
||||
// Token: 0x02002651 RID: 9809
|
||||
[Token(Token = "0x2002651")]
|
||||
public class Port : MonoBehaviour
|
||||
{
|
||||
// Token: 0x1700295F RID: 10591
|
||||
// (get) Token: 0x0600FD79 RID: 64889 RVA: 0x0039BD44 File Offset: 0x00399F44
|
||||
[Token(Token = "0x1700295F")]
|
||||
public PortView GCNJKIKLGDG
|
||||
{
|
||||
[Token(Token = "0x600FD79")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.portView;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002960 RID: 10592
|
||||
// (get) Token: 0x0600FD7A RID: 64890 RVA: 0x0039BD58 File Offset: 0x00399F58
|
||||
[Token(Token = "0x17002960")]
|
||||
public ChipConnectionPoint DFIAENJIEAH
|
||||
{
|
||||
[Token(Token = "0x600FD7A")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.connectionPoint;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002961 RID: 10593
|
||||
// (get) Token: 0x0600FD7B RID: 64891 RVA: 0x0039BD6C File Offset: 0x00399F6C
|
||||
// (set) Token: 0x0600FD7C RID: 64892 RVA: 0x0039BD80 File Offset: 0x00399F80
|
||||
[Token(Token = "0x17002961")]
|
||||
public KPJGIJKKILH NCGBFJOLMAG
|
||||
{
|
||||
[Token(Token = "0x600FD7B")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
||||
get;
|
||||
[Token(Token = "0x600FD7C")]
|
||||
[Address(RVA = "0x417960", Offset = "0x416960", VA = "0x180417960")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x0600FD7D RID: 64893 RVA: 0x0039BD94 File Offset: 0x00399F94
|
||||
[Token(Token = "0x600FD7D")]
|
||||
[Address(RVA = "0x1D95390", Offset = "0x1D94390", VA = "0x181D95390")]
|
||||
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: 0x0600FD7E RID: 64894 RVA: 0x0039BE08 File Offset: 0x0039A008
|
||||
[Token(Token = "0x600FD7E")]
|
||||
[Address(RVA = "0x1D95D20", Offset = "0x1D94D20", VA = "0x181D95D20")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
this.Unbind();
|
||||
}
|
||||
|
||||
// Token: 0x0600FD7F RID: 64895 RVA: 0x0039BE1C File Offset: 0x0039A01C
|
||||
[Token(Token = "0x600FD7F")]
|
||||
[Address(RVA = "0x1D95510", Offset = "0x1D94510", VA = "0x181D95510")]
|
||||
public void Bind(CircuitsV2Config OJAIGECECGI, Chip EHHKGBAMIOP, ChipConfig JNDKCJKANCC, KPJGIJKKILH FEGCHFPGAGN, IOKind BIKMGAPACLK)
|
||||
{
|
||||
int num = 0;
|
||||
bool flag;
|
||||
if (IEIBEBFINNI.GMKIEKMHKPP(flag, "Cannot bind a null port adapter!", num, (NJOJCAHDMED)((uint)2)))
|
||||
{
|
||||
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: 0x0600FD80 RID: 64896 RVA: 0x0039BEB8 File Offset: 0x0039A0B8
|
||||
[Token(Token = "0x600FD80")]
|
||||
[Address(RVA = "0x1D95C00", Offset = "0x1D94C00", VA = "0x181D95C00")]
|
||||
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: 0x0600FD81 RID: 64897 RVA: 0x0039BF08 File Offset: 0x0039A108
|
||||
[Token(Token = "0x600FD81")]
|
||||
[Address(RVA = "0x1D95990", Offset = "0x1D94990", VA = "0x181D95990")]
|
||||
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: 0x0600FD82 RID: 64898 RVA: 0x0039BF64 File Offset: 0x0039A164
|
||||
[Token(Token = "0x600FD82")]
|
||||
[Address(RVA = "0x1D95F70", Offset = "0x1D94F70", VA = "0x181D95F70")]
|
||||
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: 0x0600FD83 RID: 64899 RVA: 0x0039BFF0 File Offset: 0x0039A1F0
|
||||
[Token(Token = "0x600FD83")]
|
||||
[Address(RVA = "0x1D95D30", Offset = "0x1D94D30", VA = "0x181D95D30")]
|
||||
public void RenderWorldFadeMask()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
Renderer[] fbgoggoogfg = this.FBGOGGOOGFG;
|
||||
Func<Renderer, bool> <>9__20_ = Port.<>c.<>9__20_0;
|
||||
if (<>9__20_ == 0)
|
||||
{
|
||||
Port.<>c.<>9__20_0 = (Renderer r) => r.isVisible;
|
||||
}
|
||||
IEnumerable<Renderer> enumerable = Enumerable.Where<Renderer>(fbgoggoogfg, <>9__20_);
|
||||
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)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600FD84 RID: 64900 RVA: 0x0039C05C File Offset: 0x0039A25C
|
||||
[Token(Token = "0x600FD84")]
|
||||
[Address(RVA = "0x1D95870", Offset = "0x1D94870", VA = "0x181D95870")]
|
||||
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, bikmgapaclk);
|
||||
bool flag;
|
||||
portView.KPMIOKDMFMO(kpjgijkkilh, typeConfig, flag);
|
||||
portView.GOAIJALKJAD(kpjgijkkilh, flag);
|
||||
}
|
||||
|
||||
// Token: 0x0600FD85 RID: 64901 RVA: 0x0039C0AC File Offset: 0x0039A2AC
|
||||
[Token(Token = "0x600FD85")]
|
||||
[Address(RVA = "0x1D95AB0", Offset = "0x1D94AB0", VA = "0x181D95AB0")]
|
||||
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, bikmgapaclk);
|
||||
bool flag;
|
||||
portView.KPMIOKDMFMO(kpjgijkkilh, typeConfig, flag);
|
||||
portView.GOAIJALKJAD(kpjgijkkilh, flag);
|
||||
portView.FABCHIFFIDI(ojaigececgi, kpjgijkkilh);
|
||||
}
|
||||
|
||||
// Token: 0x0600FD86 RID: 64902 RVA: 0x0039C104 File Offset: 0x0039A304
|
||||
[Token(Token = "0x600FD86")]
|
||||
[Address(RVA = "0x1D95360", Offset = "0x1D94360", VA = "0x181D95360")]
|
||||
private void AENNHPAONCL()
|
||||
{
|
||||
PortView portView = this.portView;
|
||||
KPJGIJKKILH kpjgijkkilh = this.<MGGLBOLIHNH>k__BackingField;
|
||||
CircuitsV2Config ojaigececgi = this.OJAIGECECGI;
|
||||
portView.FABCHIFFIDI(ojaigececgi, kpjgijkkilh);
|
||||
}
|
||||
|
||||
// Token: 0x0600FD87 RID: 64903 RVA: 0x0039C134 File Offset: 0x0039A334
|
||||
[Token(Token = "0x600FD87")]
|
||||
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
||||
public Port()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400A701 RID: 42753
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400A701")]
|
||||
[SerializeField]
|
||||
private PortView portView;
|
||||
|
||||
// Token: 0x0400A702 RID: 42754
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400A702")]
|
||||
[SerializeField]
|
||||
private ChipConnectionPoint connectionPoint;
|
||||
|
||||
// Token: 0x0400A703 RID: 42755
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400A703")]
|
||||
[SerializeField]
|
||||
private ConfigurableSubpiece subpiece;
|
||||
|
||||
// Token: 0x0400A704 RID: 42756
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400A704")]
|
||||
private Renderer[] FBGOGGOOGFG;
|
||||
|
||||
// Token: 0x0400A705 RID: 42757
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400A705")]
|
||||
private CircuitsV2Config OJAIGECECGI;
|
||||
|
||||
// Token: 0x0400A707 RID: 42759
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400A707")]
|
||||
private IOKind BIKMGAPACLK;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user