This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 additions and 0 deletions
@@ -0,0 +1,549 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
using RecRoom.Core;
using RecRoom.Core.Creation;
using RecRoom.Core.Rendering;
using UnityEngine;
namespace RecRoom.Tools.MakerPenTools
{
// Token: 0x02002AD5 RID: 10965
[Token(Token = "0x2002AD5")]
[Serializable]
public abstract class MakerPenToolCreate : MakerPenTool
{
// Token: 0x17003354 RID: 13140
// (get) Token: 0x06012648 RID: 75336 RVA: 0x00434B74 File Offset: 0x00432D74
[Token(Token = "0x17003354")]
protected virtual bool IsCreateInputPressed
{
[Token(Token = "0x6012648")]
[Address(RVA = "0x1312080", Offset = "0x1310E80", VA = "0x181312080", Slot = "18")]
get
{
return this.creationController.IsSelectInputPressed;
}
}
// Token: 0x17003355 RID: 13141
// (get) Token: 0x06012649 RID: 75337 RVA: 0x00434B94 File Offset: 0x00432D94
[Token(Token = "0x17003355")]
protected bool TriggerReadyForCreate
{
[Token(Token = "0x6012649")]
[Address(RVA = "0x13120A0", Offset = "0x1310EA0", VA = "0x1813120A0")]
get
{
CreationController creationController = this.creationController;
return !this.creationController.HasInput;
}
}
// Token: 0x0601264A RID: 75338
[Token(Token = "0x601264A")]
[Address(Slot = "19")]
protected abstract PLJMIHMGPCH MAGHDKJBILM();
// Token: 0x17003356 RID: 13142
// (get) Token: 0x0601264B RID: 75339 RVA: 0x00434BBC File Offset: 0x00432DBC
// (set) Token: 0x0601264C RID: 75340 RVA: 0x00434BD0 File Offset: 0x00432DD0
[Token(Token = "0x17003356")]
private protected PLJMIHMGPCH CreationAsset
{
[Token(Token = "0x601264B")]
[Address(RVA = "0x415290", Offset = "0x414090", VA = "0x180415290")]
protected get;
[Token(Token = "0x601264C")]
[Address(RVA = "0x46AB00", Offset = "0x469900", VA = "0x18046AB00")]
private set;
}
// Token: 0x17003357 RID: 13143
// (get) Token: 0x0601264D RID: 75341 RVA: 0x00434BE4 File Offset: 0x00432DE4
// (set) Token: 0x0601264E RID: 75342 RVA: 0x00434BF8 File Offset: 0x00432DF8
[Token(Token = "0x17003357")]
protected OJCIMLNJIOB ActiveDragState
{
[Token(Token = "0x601264D")]
[Address(RVA = "0x423D40", Offset = "0x422B40", VA = "0x180423D40")]
get;
[Token(Token = "0x601264E")]
[Address(RVA = "0x466B90", Offset = "0x465990", VA = "0x180466B90")]
set;
}
// Token: 0x0601264F RID: 75343 RVA: 0x00434C0C File Offset: 0x00432E0C
[Token(Token = "0x601264F")]
[Address(RVA = "0x1311790", Offset = "0x1310590", VA = "0x181311790")]
private void IMEKKPGPIDA()
{
CreationController creationController = this.creationController;
Vector3 vector;
float z = vector.z;
CreationController creationController2 = this.creationController;
float z2 = Vector3.zero.z;
this.previewPosVel.z = z2;
}
// Token: 0x06012650 RID: 75344 RVA: 0x00434C54 File Offset: 0x00432E54
[Token(Token = "0x6012650")]
[Address(RVA = "0x1311690", Offset = "0x1310490", VA = "0x181311690")]
private void HOELHBPCMLD()
{
CreationController creationController = this.creationController;
Vector3 vector;
float z = vector.z;
CreationController creationController2 = this.creationController;
}
// Token: 0x06012651 RID: 75345 RVA: 0x00434C80 File Offset: 0x00432E80
[Token(Token = "0x6012651")]
[Address(RVA = "0x1311480", Offset = "0x1310280", VA = "0x181311480", Slot = "20")]
protected virtual bool GJNGEMIIIDA(Vector3 DDHPAFKBMON, Quaternion IGPENJBJADK)
{
MakerPenToolCreate.ONNFJLFCBJF onnfjlfcbjf = new MakerPenToolCreate.ONNFJLFCBJF();
float z = DDHPAFKBMON.z;
onnfjlfcbjf.<>4__this = this;
onnfjlfcbjf.position.z = z;
if (this.activeCreationRequest != 0 && onnfjlfcbjf == 0)
{
CreationContext <CreationContext>k__BackingField = this.creationController.<CreationContext>k__BackingField;
int num = 0;
int num2 = 0;
GBDECALBCOP gbdecalbcop = <CreationContext>k__BackingField.NotifyOfError(GBDECALBCOP.Failure_Generic, "Awaiting previous creation request", num2, num);
}
PLJMIHMGPCH pljmihmgpch = this.<CreationAsset>k__BackingField;
float z2 = onnfjlfcbjf.position.z;
Quaternion rotation = onnfjlfcbjf.rotation;
pljmihmgpch.Dispose();
Action action = delegate
{
MakerPenToolCreate <>4__this = onnfjlfcbjf.<>4__this;
PLJMIHMGPCH pljmihmgpch2 = <>4__this.<CreationAsset>k__BackingField;
float z3 = onnfjlfcbjf.position.z;
Quaternion rotation2 = onnfjlfcbjf.rotation;
DABKFAIHBBP dabkfaihbbp;
<>4__this.<ActiveDragState>k__BackingField = dabkfaihbbp;
};
Action<string> action2 = delegate(string error)
{
float num3 = onnfjlfcbjf.<>4__this.<CreationAsset>k__BackingField.PIFFNJDGHDE;
MakerPen <MakerPen>k__BackingField = onnfjlfcbjf.<>4__this.creationController.<MakerPen>k__BackingField;
};
this.activeCreationRequest = action2;
Action action3 = delegate
{
onnfjlfcbjf.<>4__this.activeCreationRequest = (ulong)0L;
};
throw new NullReferenceException();
}
// Token: 0x17003358 RID: 13144
// (get) Token: 0x06012652 RID: 75346 RVA: 0x00434D3C File Offset: 0x00432F3C
[Token(Token = "0x17003358")]
public override Sprite HudSprite
{
[Token(Token = "0x6012652")]
[Address(RVA = "0x1312030", Offset = "0x1310E30", VA = "0x181312030", Slot = "11")]
get
{
return NPILADHLMKC.KGDLBEAPDFE(NPILADHLMKC.ONGOGHFGDEF.Create);
}
}
// Token: 0x06012653 RID: 75347 RVA: 0x00434D50 File Offset: 0x00432F50
[Token(Token = "0x6012653")]
[Address(RVA = "0x1311030", Offset = "0x130FE30", VA = "0x181311030", Slot = "6")]
public override void DJFDPJKOGMJ(MakerPenTool.AGPFBFDFDHB EJCLBKHJIHO, MakerPen.HJPIHGIFKEO IFNKPAHPIID)
{
PLJMIHMGPCH pljmihmgpch = this.<CreationAsset>k__BackingField;
this.creationAssetDirty = false;
if (pljmihmgpch != 0)
{
bool flag = pljmihmgpch.HFLIDCJPMLO;
}
bool isCreateInputPressed = this.IsCreateInputPressed;
this.<CreationAsset>k__BackingField = isCreateInputPressed;
this.IMEKKPGPIDA();
CreationController creationController = this.creationController;
bool flag2 = this.creationController.HasInput;
this.waitForTriggerRelease = flag2;
SelectionRendererEffect.Disable(this);
OKNNKFGFODL onCreationDataChanged = this.creationController.<MakerPen>k__BackingField.OnCreationDataChanged;
Action action = new Action(this.BCDHLLLLOKN);
int num = 0;
onCreationDataChanged.BPAJKKAGPKB(action, num != 0);
NNNJFEILANM snapping = this.creationController.<MakerPen>k__BackingField.Snapping;
Action action2 = new Action(this.BCDHLLLLOKN);
snapping.BEADMMHDKFG += action2;
NNNJFEILANM snapping2 = this.creationController.<MakerPen>k__BackingField.Snapping;
Action action3 = new Action(this.BCDHLLLLOKN);
snapping2.EIFNJEAFIJG += action3;
}
// Token: 0x06012654 RID: 75348 RVA: 0x00434E38 File Offset: 0x00433038
[Token(Token = "0x6012654")]
[Address(RVA = "0x1310620", Offset = "0x130F420", VA = "0x181310620", Slot = "8")]
public override void BALOKJMBNIN()
{
PLJMIHMGPCH pljmihmgpch2;
for (;;)
{
int num = 0;
if (this.<ActiveDragState>k__BackingField == num)
{
if (this.activeCreationRequest != num)
{
return;
}
if ((this.waitForTriggerRelease ? 1 : 0) != num)
{
}
MakerPen <MakerPen>k__BackingField = this.creationController.<MakerPen>k__BackingField;
MakerPenVisuals penVisuals = <MakerPen>k__BackingField._penVisuals;
bool alignToObjects = <MakerPen>k__BackingField.CLBCCGJJPPM;
penVisuals.MNADIBEHEMI = alignToObjects;
bool flag;
if (!flag)
{
bool triggerReadyForCreate = this.TriggerReadyForCreate;
PLJMIHMGPCH pljmihmgpch = this.<CreationAsset>k__BackingField;
bool flag2 = !triggerReadyForCreate;
this.waitForTriggerRelease = flag2;
if (pljmihmgpch.HCOIAKKEMKB)
{
Vector3 vector;
float z = vector.z;
this.previewPos.z = z;
}
bool isHeldInUIRegion = this.creationController.<MakerPen>k__BackingField._tool.AJMEKIPDPNM;
pljmihmgpch2 = this.<CreationAsset>k__BackingField;
if (!isHeldInUIRegion)
{
break;
}
}
while (num == 0)
{
}
}
MakerPenVisuals penVisuals2 = this.creationController.<MakerPen>k__BackingField._penVisuals;
int num2 = 0;
penVisuals2.MNADIBEHEMI = num2 != 0;
if (this.<ActiveDragState>k__BackingField.ToString() == 0)
{
goto Block_5;
}
}
CreationController creationController = this.creationController;
pljmihmgpch2.FILKGNEDFBA(creationController);
return;
Block_5:
OJCIMLNJIOB ojcimlnjiob = this.<ActiveDragState>k__BackingField;
CreationController creationController2 = this.creationController;
bool flag3 = ojcimlnjiob.OPEMIFENIJM(creationController2);
PLJMIHMGPCH pljmihmgpch3 = this.<CreationAsset>k__BackingField;
this.<ActiveDragState>k__BackingField = (ulong)0L;
this.waitForTriggerRelease = true;
int num3 = 0;
if ((this.creationAssetDirty ? 1 : 0) == num3)
{
this.IMEKKPGPIDA();
}
this.IBCKOGEBMJP();
throw new NullReferenceException();
}
// Token: 0x06012655 RID: 75349 RVA: 0x00434F88 File Offset: 0x00433188
[Token(Token = "0x6012655")]
[Address(RVA = "0x1310A90", Offset = "0x130F890", VA = "0x181310A90", Slot = "7")]
public override void BDMHMGGPNME(MakerPenTool.AGPFBFDFDHB EJCLBKHJIHO)
{
OJCIMLNJIOB ojcimlnjiob = this.<ActiveDragState>k__BackingField;
if (ojcimlnjiob != 0)
{
CreationController creationController = this.creationController;
bool flag = ojcimlnjiob.OPEMIFENIJM(creationController);
PLJMIHMGPCH pljmihmgpch = this.<CreationAsset>k__BackingField;
this.<ActiveDragState>k__BackingField = (ulong)0L;
}
OKNNKFGFODL onCreationDataChanged = this.creationController.<MakerPen>k__BackingField.OnCreationDataChanged;
Action action = new Action(this.BCDHLLLLOKN);
onCreationDataChanged.BIHKNNPGGKP(action);
NNNJFEILANM snapping = this.creationController.<MakerPen>k__BackingField.Snapping;
Action action2 = new Action(this.BCDHLLLLOKN);
snapping.BEADMMHDKFG -= action2;
NNNJFEILANM snapping2 = this.creationController.<MakerPen>k__BackingField.Snapping;
Action action3 = new Action(this.BCDHLLLLOKN);
snapping2.EIFNJEAFIJG -= action3;
PLJMIHMGPCH pljmihmgpch2 = this.<CreationAsset>k__BackingField;
if (pljmihmgpch2 != 0)
{
bool flag2 = pljmihmgpch2.HFLIDCJPMLO;
}
this.<CreationAsset>k__BackingField = (ulong)0L;
SelectionRendererEffect.Enable(this);
}
// Token: 0x06012656 RID: 75350 RVA: 0x00435068 File Offset: 0x00433268
[Token(Token = "0x6012656")]
[Address(RVA = "0x1311F30", Offset = "0x1310D30", VA = "0x181311F30")]
private void NLPPGCBECDP()
{
OJCIMLNJIOB ojcimlnjiob = this.<ActiveDragState>k__BackingField;
CreationController creationController = this.creationController;
bool flag = ojcimlnjiob.OPEMIFENIJM(creationController);
PLJMIHMGPCH pljmihmgpch = this.<CreationAsset>k__BackingField;
this.<ActiveDragState>k__BackingField = (ulong)0L;
Bounds bounds = pljmihmgpch.BMLDJOCHNCN;
}
// Token: 0x06012657 RID: 75351 RVA: 0x004350AC File Offset: 0x004332AC
[Token(Token = "0x6012657")]
[Address(RVA = "0x1310A30", Offset = "0x130F830", VA = "0x181310A30")]
private void BCDHLLLLOKN()
{
if (this.<ActiveDragState>k__BackingField != (ulong)0L)
{
this.creationAssetDirty = true;
return;
}
this.creationAssetDirty = false;
PLJMIHMGPCH pljmihmgpch = this.<CreationAsset>k__BackingField;
if (pljmihmgpch != 0)
{
bool flag = pljmihmgpch.HFLIDCJPMLO;
}
bool isCreateInputPressed = this.IsCreateInputPressed;
this.<CreationAsset>k__BackingField = isCreateInputPressed;
this.IMEKKPGPIDA();
}
// Token: 0x06012658 RID: 75352 RVA: 0x004350FC File Offset: 0x004332FC
[Token(Token = "0x6012658")]
[Address(RVA = "0x1311740", Offset = "0x1310540", VA = "0x181311740")]
private void IBCKOGEBMJP()
{
this.creationAssetDirty = false;
PLJMIHMGPCH pljmihmgpch = this.<CreationAsset>k__BackingField;
if (pljmihmgpch != 0)
{
bool flag = pljmihmgpch.HFLIDCJPMLO;
}
bool isCreateInputPressed = this.IsCreateInputPressed;
this.<CreationAsset>k__BackingField = isCreateInputPressed;
this.IMEKKPGPIDA();
}
// Token: 0x06012659 RID: 75353 RVA: 0x00435138 File Offset: 0x00433338
[Token(Token = "0x6012659")]
[Address(RVA = "0x13118C0", Offset = "0x13106C0", VA = "0x1813118C0")]
protected void JFCGDGDBKIL(out Vector3 DDHPAFKBMON, out Quaternion IGPENJBJADK)
{
MakerPenVisuals penVisuals = this.creationController.<MakerPen>k__BackingField._penVisuals;
int num = 0;
penVisuals.<CCHCGAPFBIB>k__BackingField = num;
if (this.creationController.<MakerPen>k__BackingField.CLBCCGJJPPM)
{
CreationController creationController = this.creationController;
PLJMIHMGPCH pljmihmgpch = this.<CreationAsset>k__BackingField;
Transform transform;
if (transform != 0)
{
goto IL_8D;
}
this.<CreationAsset>k__BackingField.HOOPCDLMPAO();
}
Vector3 vector;
float z = vector.z;
DDHPAFKBMON.z = z;
CreationController creationController2 = this.creationController;
CreationController.PLGPMIKGDDC plgpmikgddc = this.alignRayOffset;
Vector3 vector2;
float z2 = vector2.z;
DDHPAFKBMON.z = z2;
CreationController creationController3 = this.creationController;
Quaternion quaternion = this.alignRotationOffset;
IL_8D:
MakerPenVisuals penVisuals2 = this.creationController.<MakerPen>k__BackingField._penVisuals;
int num2 = 0;
penVisuals2.<CCHCGAPFBIB>k__BackingField = num2;
PLJMIHMGPCH pljmihmgpch2 = this.<CreationAsset>k__BackingField;
CreationController creationController4 = this.creationController;
float z3 = DDHPAFKBMON.z;
CreationController creationController5 = this.creationController;
}
// Token: 0x0601265A RID: 75354 RVA: 0x00435218 File Offset: 0x00433418
[Token(Token = "0x601265A")]
[Address(RVA = "0x1310C90", Offset = "0x130FA90", VA = "0x181310C90")]
protected Vector3 BHADIIJCMHA(Quaternion AFDPEICPCAF)
{
Vector3 vector;
float z = vector.z;
throw new NullReferenceException();
}
// Token: 0x0601265B RID: 75355 RVA: 0x00435238 File Offset: 0x00433438
[Token(Token = "0x601265B")]
[Address(RVA = "0x1311240", Offset = "0x1310040", VA = "0x181311240")]
private float GGJOKOCFLLJ()
{
PLJMIHMGPCH pljmihmgpch = this.<CreationAsset>k__BackingField;
float num;
if (num < num)
{
PLJMIHMGPCH pljmihmgpch2 = this.<CreationAsset>k__BackingField;
PLJMIHMGPCH pljmihmgpch3 = this.<CreationAsset>k__BackingField;
PLJMIHMGPCH pljmihmgpch4 = this.<CreationAsset>k__BackingField;
float num2;
num = num2;
Quaternion quaternion = pljmihmgpch4.OKINPJLFKEJ;
NNNJFEILANM snapping = this.creationController.<MakerPen>k__BackingField.Snapping;
if (snapping.NNCJIEJDHAJ)
{
return snapping.<GHFHFLCINKP>k__BackingField * 0.5f;
}
}
throw new NullReferenceException();
}
// Token: 0x0601265C RID: 75356 RVA: 0x004352A4 File Offset: 0x004334A4
[Token(Token = "0x601265C")]
[Address(RVA = "0x1311C60", Offset = "0x1310A60", VA = "0x181311C60")]
protected Quaternion KLHOIHNJNAC()
{
if ("{il2cpp array field il2cppMethodInfo->}" == (ulong)0L)
{
}
throw new NullReferenceException();
}
// Token: 0x0601265D RID: 75357 RVA: 0x004352C0 File Offset: 0x004334C0
[Token(Token = "0x601265D")]
[Address(RVA = "0x1311D80", Offset = "0x1310B80", VA = "0x181311D80", Slot = "21")]
protected virtual Quaternion LCMAGMIJMHL(Quaternion AFDPEICPCAF)
{
Vector3 up = Vector3.up;
throw new NullReferenceException();
}
// Token: 0x0601265E RID: 75358 RVA: 0x004352D8 File Offset: 0x004334D8
[Token(Token = "0x601265E")]
[Address(RVA = "0x130CEC0", Offset = "0x130BCC0", VA = "0x18130CEC0")]
protected MakerPenToolCreate()
{
}
// Token: 0x0400BE2F RID: 48687
[Token(Token = "0x400BE2F")]
protected const float DEFORMABLE_RADIUS = 0.02f;
// Token: 0x0400BE30 RID: 48688
[Token(Token = "0x400BE30")]
private const float SNAP_SMOOTH_TIME = 0.03f;
// Token: 0x0400BE31 RID: 48689
[Token(Token = "0x400BE31")]
private const float SNAP_ROTATION_LERP_VAL = 0.4f;
// Token: 0x0400BE32 RID: 48690
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400BE32")]
protected DABKFAIHBBP activeCreationRequest;
// Token: 0x0400BE35 RID: 48693
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x400BE35")]
private bool creationAssetDirty;
// Token: 0x0400BE36 RID: 48694
[FieldOffset(Offset = "0x61")]
[Token(Token = "0x400BE36")]
private bool waitForTriggerRelease;
// Token: 0x0400BE37 RID: 48695
[FieldOffset(Offset = "0x64")]
[Token(Token = "0x400BE37")]
private Vector3 previewPos;
// Token: 0x0400BE38 RID: 48696
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x400BE38")]
private Vector3 previewPosVel;
// Token: 0x0400BE39 RID: 48697
[FieldOffset(Offset = "0x7C")]
[Token(Token = "0x400BE39")]
private Quaternion previewRot;
// Token: 0x0400BE3A RID: 48698
[FieldOffset(Offset = "0x8C")]
[Token(Token = "0x400BE3A")]
private CreationController.PLGPMIKGDDC alignRayOffset;
// Token: 0x0400BE3B RID: 48699
[FieldOffset(Offset = "0x9C")]
[Token(Token = "0x400BE3B")]
private Quaternion alignRotationOffset;
// Token: 0x02002AD6 RID: 10966
[Token(Token = "0x2002AD6")]
[CompilerGenerated]
private sealed class ONNFJLFCBJF
{
// Token: 0x0601265F RID: 75359 RVA: 0x004352EC File Offset: 0x004334EC
[Token(Token = "0x601265F")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public ONNFJLFCBJF()
{
}
// Token: 0x06012660 RID: 75360 RVA: 0x00435300 File Offset: 0x00433500
[Token(Token = "0x6012660")]
[Address(RVA = "0x1317B70", Offset = "0x1316970", VA = "0x181317B70")]
internal void <CreateObject>b__0()
{
MakerPenToolCreate makerPenToolCreate = this.<>4__this;
PLJMIHMGPCH <CreationAsset>k__BackingField = makerPenToolCreate.<CreationAsset>k__BackingField;
float z = this.position.z;
Quaternion quaternion = this.rotation;
DABKFAIHBBP dabkfaihbbp;
makerPenToolCreate.<ActiveDragState>k__BackingField = dabkfaihbbp;
}
// Token: 0x06012661 RID: 75361 RVA: 0x0043533C File Offset: 0x0043353C
[Token(Token = "0x6012661")]
[Address(RVA = "0x1317BE0", Offset = "0x13169E0", VA = "0x181317BE0")]
internal void <CreateObject>b__1(string error)
{
float num = this.<>4__this.<CreationAsset>k__BackingField.PIFFNJDGHDE;
MakerPen <MakerPen>k__BackingField = this.<>4__this.creationController.<MakerPen>k__BackingField;
}
// Token: 0x06012662 RID: 75362 RVA: 0x00435374 File Offset: 0x00433574
[Token(Token = "0x6012662")]
[Address(RVA = "0x1317C70", Offset = "0x1316A70", VA = "0x181317C70")]
internal void <CreateObject>b__2()
{
this.<>4__this.activeCreationRequest = (ulong)0L;
}
// Token: 0x0400BE3C RID: 48700
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400BE3C")]
public MakerPenToolCreate <>4__this;
// Token: 0x0400BE3D RID: 48701
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400BE3D")]
public Vector3 position;
// Token: 0x0400BE3E RID: 48702
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x400BE3E")]
public Quaternion rotation;
}
}
}