222 lines
9.4 KiB
C#
222 lines
9.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core;
|
|
using RecRoom.Core.Creation;
|
|
using RecRoom.Core.Creation.Circuits;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Tools.MakerPenTools
|
|
{
|
|
// Token: 0x02002BBD RID: 11197
|
|
[Token(Token = "0x2002BBD")]
|
|
[Serializable]
|
|
public class MakerPenToolConnect : MakerPenTool
|
|
{
|
|
// Token: 0x17003406 RID: 13318
|
|
// (get) Token: 0x06012A79 RID: 76409 RVA: 0x0043E5E8 File Offset: 0x0043C7E8
|
|
[Token(Token = "0x17003406")]
|
|
public override string HudLabel
|
|
{
|
|
[Token(Token = "0x6012A79")]
|
|
[Address(RVA = "0x191D2A0", Offset = "0x191C2A0", VA = "0x18191D2A0", Slot = "10")]
|
|
get
|
|
{
|
|
return "Wire";
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003407 RID: 13319
|
|
// (get) Token: 0x06012A7A RID: 76410 RVA: 0x0043E5FC File Offset: 0x0043C7FC
|
|
[Token(Token = "0x17003407")]
|
|
public override Sprite HudSprite
|
|
{
|
|
[Token(Token = "0x6012A7A")]
|
|
[Address(RVA = "0x191D2D0", Offset = "0x191C2D0", VA = "0x18191D2D0", Slot = "11")]
|
|
get
|
|
{
|
|
return NPILADHLMKC.KGDLBEAPDFE(NPILADHLMKC.ONGOGHFGDEF.Wire);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012A7B RID: 76411 RVA: 0x0043E610 File Offset: 0x0043C810
|
|
[Token(Token = "0x6012A7B")]
|
|
[Address(RVA = "0x191CEC0", Offset = "0x191BEC0", VA = "0x18191CEC0", Slot = "4")]
|
|
public override void OFFLOPLJBBG(MakerPen.HJPIHGIFKEO FIBGLDDKDLB, MakerPen.KLAENPHIBEM OIHFNIFGFJB)
|
|
{
|
|
int num;
|
|
ulong num2;
|
|
JBAJNJCHHOP jbajnjchhop = new JBAJNJCHHOP(true, num != 0, 2f, num2 != 0UL);
|
|
num = 0;
|
|
this.selectState = jbajnjchhop;
|
|
JBICICHOMOC jbicichomoc = new JBICICHOMOC();
|
|
this.connectLogic = jbicichomoc;
|
|
HashSet<MakerPen.HJPIHGIFKEO> supportedTargetModes = this.supportedTargetModes;
|
|
this.targetMode = FIBGLDDKDLB;
|
|
this.toolMode = OIHFNIFGFJB;
|
|
MakerPen.KLAENPHIBEM toolMode = this.toolMode;
|
|
if (toolMode != MakerPen.KLAENPHIBEM.Invalid)
|
|
{
|
|
if (toolMode == OIHFNIFGFJB)
|
|
{
|
|
goto IL_73;
|
|
}
|
|
Debug.LogWarning(string.Format("Tried to register tool for multiple modes. This will change behavior of PushAsActiveTool(). Current mode: {0}. New mode: {1} / {2}", toolMode, toolMode, toolMode));
|
|
}
|
|
this.toolMode = OIHFNIFGFJB;
|
|
IL_73:
|
|
if (this.selectState.OFFLOPLJBBG())
|
|
{
|
|
JBAJNJCHHOP jbajnjchhop2 = this.selectState;
|
|
Action<OEMPFDDKANC<GIPDDLFFNGG>.BJPMFNPGKIP> action = new Action(this.POAEKMINBLA);
|
|
JBAJNJCHHOP jbajnjchhop3 = this.selectState;
|
|
Action<OEMPFDDKANC<GIPDDLFFNGG>.BJPMFNPGKIP> action2 = new Action(this.FGKMAOPIPKE);
|
|
JBAJNJCHHOP jbajnjchhop4 = this.selectState;
|
|
Action<OEMPFDDKANC<GIPDDLFFNGG>.BJPMFNPGKIP> action3 = new Action(this.PCNPEKHBOIM);
|
|
JBAJNJCHHOP jbajnjchhop5 = this.selectState;
|
|
Action<OEMPFDDKANC<GIPDDLFFNGG>.BJPMFNPGKIP> action4 = new Action(this.HNGEFKLEBNN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012A7C RID: 76412 RVA: 0x0043E708 File Offset: 0x0043C908
|
|
[Token(Token = "0x6012A7C")]
|
|
[Address(RVA = "0x191CB20", Offset = "0x191BB20", VA = "0x18191CB20", Slot = "6")]
|
|
public override void DJFDPJKOGMJ(MakerPenTool.AGPFBFDFDHB EJCLBKHJIHO, MakerPen.HJPIHGIFKEO IFNKPAHPIID)
|
|
{
|
|
CreationController creationController = this.creationController;
|
|
JBICICHOMOC jbicichomoc = this.connectLogic;
|
|
CircuitLinkVisual circuitLinkVisual = this.connectionVisualPrefab;
|
|
CreationContext <CreationContext>k__BackingField = creationController.<CreationContext>k__BackingField;
|
|
jbicichomoc.DCIMMBEFAHE(<CreationContext>k__BackingField, circuitLinkVisual);
|
|
PHGNLBEAGOG <EHJOMHCJHPF>k__BackingField = this.creationController.<MakerPen>k__BackingField.<EHJOMHCJHPF>k__BackingField;
|
|
PHGNLBEAGOG.BMMLFDBPAHN bmmlfdbpahn = new PHGNLBEAGOG.BMMLFDBPAHN(this.connectLogic.DBKOHGMLNHD);
|
|
<EHJOMHCJHPF>k__BackingField.FNBKNJEDDMF(bmmlfdbpahn, this);
|
|
}
|
|
|
|
// Token: 0x06012A7D RID: 76413 RVA: 0x0043E770 File Offset: 0x0043C970
|
|
[Token(Token = "0x6012A7D")]
|
|
[Address(RVA = "0x191C870", Offset = "0x191B870", VA = "0x18191C870", Slot = "8")]
|
|
public override void BALOKJMBNIN()
|
|
{
|
|
CreationController creationController = this.creationController;
|
|
CreationController creationController2 = this.creationController;
|
|
CreationContext <CreationContext>k__BackingField = creationController2.<CreationContext>k__BackingField;
|
|
MakerPen <MakerPen>k__BackingField = creationController2.<MakerPen>k__BackingField;
|
|
JBICICHOMOC jbicichomoc = this.connectLogic;
|
|
GIPDDLFFNGG <MFOGOPGDIAG>k__BackingField = this.connectLogic.<MFOGOPGDIAG>k__BackingField;
|
|
int num = 0;
|
|
base.MIAPLOBGPML(<MFOGOPGDIAG>k__BackingField, num);
|
|
bool isSelectInputPressed = this.creationController.IsSelectInputPressed;
|
|
CreationController creationController3 = this.creationController;
|
|
JBAJNJCHHOP jbajnjchhop = this.selectState;
|
|
JBICICHOMOC jbicichomoc2 = this.connectLogic;
|
|
GIPDDLFFNGG <MFOGOPGDIAG>k__BackingField2 = jbicichomoc2.<MFOGOPGDIAG>k__BackingField;
|
|
float z = jbicichomoc2.<CHMFECDJIMH>k__BackingField.z;
|
|
}
|
|
|
|
// Token: 0x06012A7E RID: 76414 RVA: 0x0043E804 File Offset: 0x0043CA04
|
|
[Token(Token = "0x6012A7E")]
|
|
[Address(RVA = "0x191CAB0", Offset = "0x191BAB0", VA = "0x18191CAB0", Slot = "7")]
|
|
public override void BDMHMGGPNME(MakerPenTool.AGPFBFDFDHB EJCLBKHJIHO)
|
|
{
|
|
base.BDMHMGGPNME(EJCLBKHJIHO);
|
|
CreationContext <CreationContext>k__BackingField = this.creationController.<CreationContext>k__BackingField;
|
|
JBICICHOMOC jbicichomoc = this.connectLogic;
|
|
ConnectionCreationContext connectableCreationContext = <CreationContext>k__BackingField.connectableCreationContext;
|
|
jbicichomoc.MCEKHMFKGBM(connectableCreationContext);
|
|
this.creationController.<MakerPen>k__BackingField.<EHJOMHCJHPF>k__BackingField.HHKDGNOEBMF(this);
|
|
}
|
|
|
|
// Token: 0x06012A7F RID: 76415 RVA: 0x0043E858 File Offset: 0x0043CA58
|
|
[Token(Token = "0x6012A7F")]
|
|
[Address(RVA = "0x191CC80", Offset = "0x191BC80", VA = "0x18191CC80", Slot = "17")]
|
|
public override bool IFIHNMEBGLF(Ray OPMKFDNLHKI)
|
|
{
|
|
CreationController creationController = this.creationController;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
float z2 = vector.z;
|
|
CreationController creationController2 = this.creationController;
|
|
CreationContext <CreationContext>k__BackingField = creationController2.<CreationContext>k__BackingField;
|
|
MakerPen <MakerPen>k__BackingField = creationController2.<MakerPen>k__BackingField;
|
|
JBICICHOMOC jbicichomoc = this.connectLogic;
|
|
int num = 0;
|
|
ConnectionPoint connectionPoint;
|
|
if (!(connectionPoint == num) && connectionPoint.KADAPJEJAPF == 0)
|
|
{
|
|
return true;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06012A80 RID: 76416 RVA: 0x0043E8BC File Offset: 0x0043CABC
|
|
[Token(Token = "0x6012A80")]
|
|
[Address(RVA = "0x191D200", Offset = "0x191C200", VA = "0x18191D200")]
|
|
private void POAEKMINBLA(OEMPFDDKANC<GIPDDLFFNGG>.BJPMFNPGKIP OEKEOCOGKMG)
|
|
{
|
|
CreationContext <CreationContext>k__BackingField = this.creationController.<CreationContext>k__BackingField;
|
|
JBICICHOMOC jbicichomoc = this.connectLogic;
|
|
ConnectionCreationContext connectableCreationContext = <CreationContext>k__BackingField.connectableCreationContext;
|
|
jbicichomoc.EDEKMFHNPJL(connectableCreationContext);
|
|
}
|
|
|
|
// Token: 0x06012A81 RID: 76417 RVA: 0x0043E8F0 File Offset: 0x0043CAF0
|
|
[Token(Token = "0x6012A81")]
|
|
[Address(RVA = "0x191CC00", Offset = "0x191BC00", VA = "0x18191CC00")]
|
|
private void FGKMAOPIPKE(OEMPFDDKANC<GIPDDLFFNGG>.BJPMFNPGKIP OEKEOCOGKMG)
|
|
{
|
|
CreationContext <CreationContext>k__BackingField = this.creationController.<CreationContext>k__BackingField;
|
|
JBICICHOMOC jbicichomoc = this.connectLogic;
|
|
ConnectionCreationContext connectableCreationContext = <CreationContext>k__BackingField.connectableCreationContext;
|
|
jbicichomoc.MMJJGODMBIE(connectableCreationContext);
|
|
}
|
|
|
|
// Token: 0x06012A82 RID: 76418 RVA: 0x0043E924 File Offset: 0x0043CB24
|
|
[Token(Token = "0x6012A82")]
|
|
[Address(RVA = "0x191D1C0", Offset = "0x191C1C0", VA = "0x18191D1C0")]
|
|
private void PCNPEKHBOIM(OEMPFDDKANC<GIPDDLFFNGG>.BJPMFNPGKIP OEKEOCOGKMG)
|
|
{
|
|
CreationContext <CreationContext>k__BackingField = this.creationController.<CreationContext>k__BackingField;
|
|
JBICICHOMOC jbicichomoc = this.connectLogic;
|
|
ConnectionCreationContext connectableCreationContext = <CreationContext>k__BackingField.connectableCreationContext;
|
|
jbicichomoc.ODJNAKCENBK(connectableCreationContext);
|
|
}
|
|
|
|
// Token: 0x06012A83 RID: 76419 RVA: 0x0043E958 File Offset: 0x0043CB58
|
|
[Token(Token = "0x6012A83")]
|
|
[Address(RVA = "0x191CC40", Offset = "0x191BC40", VA = "0x18191CC40")]
|
|
private void HNGEFKLEBNN(OEMPFDDKANC<GIPDDLFFNGG>.BJPMFNPGKIP OEKEOCOGKMG)
|
|
{
|
|
CreationContext <CreationContext>k__BackingField = this.creationController.<CreationContext>k__BackingField;
|
|
JBICICHOMOC jbicichomoc = this.connectLogic;
|
|
ConnectionCreationContext connectableCreationContext = <CreationContext>k__BackingField.connectableCreationContext;
|
|
jbicichomoc.IMBJKLKIFAN(connectableCreationContext);
|
|
}
|
|
|
|
// Token: 0x06012A84 RID: 76420 RVA: 0x0043E98C File Offset: 0x0043CB8C
|
|
[Token(Token = "0x6012A84")]
|
|
[Address(RVA = "0x191D240", Offset = "0x191C240", VA = "0x18191D240")]
|
|
public MakerPenToolConnect()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400C03D RID: 49213
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400C03D")]
|
|
[SerializeField]
|
|
private CircuitLinkVisual connectionVisualPrefab;
|
|
|
|
// Token: 0x0400C03E RID: 49214
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400C03E")]
|
|
[NonSerialized]
|
|
private JBAJNJCHHOP selectState;
|
|
|
|
// Token: 0x0400C03F RID: 49215
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400C03F")]
|
|
[NonSerialized]
|
|
private JBICICHOMOC connectLogic;
|
|
}
|
|
}
|