m
This commit is contained in:
@@ -0,0 +1,197 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading.Tasks;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Core;
|
||||
using RecRoom.Core.Creation;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Tools.MakerPenTools
|
||||
{
|
||||
// Token: 0x02002BD1 RID: 11217
|
||||
[Token(Token = "0x2002BD1")]
|
||||
[Serializable]
|
||||
public class MakerPenToolDelete_Object : MakerPenTool
|
||||
{
|
||||
// Token: 0x1700342B RID: 13355
|
||||
// (get) Token: 0x06012B10 RID: 76560 RVA: 0x00440B48 File Offset: 0x0043ED48
|
||||
[Token(Token = "0x1700342B")]
|
||||
public override string HudLabel
|
||||
{
|
||||
[Token(Token = "0x6012B10")]
|
||||
[Address(RVA = "0x14B70A0", Offset = "0x14B60A0", VA = "0x1814B70A0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return "Delete";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700342C RID: 13356
|
||||
// (get) Token: 0x06012B11 RID: 76561 RVA: 0x00440B5C File Offset: 0x0043ED5C
|
||||
[Token(Token = "0x1700342C")]
|
||||
public override Sprite HudSprite
|
||||
{
|
||||
[Token(Token = "0x6012B11")]
|
||||
[Address(RVA = "0x14B70D0", Offset = "0x14B60D0", VA = "0x1814B70D0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return NPILADHLMKC.KGDLBEAPDFE(NPILADHLMKC.ONGOGHFGDEF.Delete);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06012B12 RID: 76562 RVA: 0x00440B70 File Offset: 0x0043ED70
|
||||
[Token(Token = "0x6012B12")]
|
||||
[Address(RVA = "0x14B6CC0", Offset = "0x14B5CC0", VA = "0x1814B6CC0", Slot = "8")]
|
||||
public override void BALOKJMBNIN()
|
||||
{
|
||||
base..ctor();
|
||||
int num = 0;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
if (!HLKHHIMEICL.IKAGKELDMJH)
|
||||
{
|
||||
MakerPenToolDelete_Object.ABOAFNJPLIM aboafnjplim = new MakerPenToolDelete_Object.ABOAFNJPLIM();
|
||||
aboafnjplim.<>4__this = this;
|
||||
GIPDDLFFNGG[] array = Enumerable.ToArray<GIPDDLFFNGG>(this.creationController.<CreationContext>k__BackingField.LLFDKCNCMKF);
|
||||
aboafnjplim.cachedSelection = array;
|
||||
LFBMEDEMGHA activeGroup = base.ObjectContext.MIDCJLJHOCI;
|
||||
aboafnjplim.cachedActiveGroup = activeGroup;
|
||||
PMGCJEPKFOF<CKNHLOINDFF> pmgcjepkfof = this.creationController.<CreationContext>k__BackingField.SerializeSelection();
|
||||
Action<CKNHLOINDFF> action = delegate(CKNHLOINDFF data)
|
||||
{
|
||||
GIPDDLFFNGG[] cachedSelection = aboafnjplim.cachedSelection;
|
||||
Guid currentEditContextId = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.CNEADFAOPFL;
|
||||
CreationContext <CreationContext>k__BackingField = aboafnjplim.<>4__this.creationController.<CreationContext>k__BackingField;
|
||||
JGLCDBNDHNB jglcdbndhnb = new JGLCDBNDHNB(cachedSelection, data, currentEditContextId, <CreationContext>k__BackingField);
|
||||
aboafnjplim.<>4__this.creationController.<MakerPen>k__BackingField._undoStack.Add(jglcdbndhnb);
|
||||
};
|
||||
if (num < aboafnjplim)
|
||||
{
|
||||
num += num;
|
||||
if (num == aboafnjplim)
|
||||
{
|
||||
goto IL_A5;
|
||||
}
|
||||
num++;
|
||||
}
|
||||
Action action2 = delegate
|
||||
{
|
||||
CreationController creationController2 = aboafnjplim.<>4__this.creationController;
|
||||
GIPDDLFFNGG[] cachedSelection2 = aboafnjplim.cachedSelection;
|
||||
CreationContext <CreationContext>k__BackingField2 = creationController2.<CreationContext>k__BackingField;
|
||||
int length = cachedSelection2.Length;
|
||||
bool flag2 = <CreationContext>k__BackingField2.SetSelection(length, cachedSelection2);
|
||||
MakerPenToolDelete_Object <>4__this = aboafnjplim.<>4__this;
|
||||
int num2 = 0;
|
||||
if (<>4__this.ObjectContext.MIDCJLJHOCI != aboafnjplim.cachedActiveGroup)
|
||||
{
|
||||
CreationContext objectContext = aboafnjplim.<>4__this.ObjectContext;
|
||||
LFBMEDEMGHA cachedActiveGroup = aboafnjplim.cachedActiveGroup;
|
||||
bool flag3 = objectContext.PushActiveGroup(cachedActiveGroup);
|
||||
}
|
||||
bool flag4 = aboafnjplim.<>4__this.creationController.<CreationContext>k__BackingField.DeleteSelection();
|
||||
aboafnjplim.<>4__this.creationController.<CreationContext>k__BackingField.RemoveAllFromSelection();
|
||||
if (num2 != 0)
|
||||
{
|
||||
aboafnjplim.<>4__this.ObjectContext.PopActiveGroup();
|
||||
}
|
||||
ANNHEFBGNFL<FGACEBOCODD> onpkmkcmmic = FFPJFMECDNG.BFPPPLIJIGC.ONPKMKCMMIC;
|
||||
};
|
||||
return;
|
||||
}
|
||||
IL_A5:
|
||||
NIDFEPEKAMB nidfepekamb = new NIDFEPEKAMB();
|
||||
CreationController creationController = this.creationController;
|
||||
Task task = nidfepekamb.GFBIJNLKLCM(creationController);
|
||||
Action<NIDFEPEKAMB> action3 = new Action(this.BHGACBGPGCC);
|
||||
APANEBCNDDJ.OHLPJBFCABI<NIDFEPEKAMB>(task, action3).KOLCDBDBPFC();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06012B13 RID: 76563 RVA: 0x00440C60 File Offset: 0x0043EE60
|
||||
[Token(Token = "0x6012B13")]
|
||||
[Address(RVA = "0x14B7040", Offset = "0x14B6040", VA = "0x1814B7040")]
|
||||
public MakerPenToolDelete_Object()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06012B14 RID: 76564 RVA: 0x00440C74 File Offset: 0x0043EE74
|
||||
[Token(Token = "0x6012B14")]
|
||||
[Address(RVA = "0x14B6F70", Offset = "0x14B5F70", VA = "0x1814B6F70")]
|
||||
[CompilerGenerated]
|
||||
private void BHGACBGPGCC(NIDFEPEKAMB JCOFFCGLFKP)
|
||||
{
|
||||
Action defaultContextAction = AsyncVoidMethodBuilder.Create().m_coreState.m_defaultContextAction;
|
||||
}
|
||||
|
||||
// Token: 0x02002BD2 RID: 11218
|
||||
[Token(Token = "0x2002BD2")]
|
||||
[CompilerGenerated]
|
||||
private sealed class ABOAFNJPLIM
|
||||
{
|
||||
// Token: 0x06012B15 RID: 76565 RVA: 0x00440C98 File Offset: 0x0043EE98
|
||||
[Token(Token = "0x6012B15")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public ABOAFNJPLIM()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06012B16 RID: 76566 RVA: 0x00440CAC File Offset: 0x0043EEAC
|
||||
[Token(Token = "0x6012B16")]
|
||||
[Address(RVA = "0x14ACC50", Offset = "0x14ABC50", VA = "0x1814ACC50")]
|
||||
internal void <OnUpdate>b__1(CKNHLOINDFF data)
|
||||
{
|
||||
GIPDDLFFNGG[] array = this.cachedSelection;
|
||||
Guid currentEditContextId = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.CNEADFAOPFL;
|
||||
CreationContext <CreationContext>k__BackingField = this.<>4__this.creationController.<CreationContext>k__BackingField;
|
||||
JGLCDBNDHNB jglcdbndhnb = new JGLCDBNDHNB(array, data, currentEditContextId, <CreationContext>k__BackingField);
|
||||
this.<>4__this.creationController.<MakerPen>k__BackingField._undoStack.Add(jglcdbndhnb);
|
||||
}
|
||||
|
||||
// Token: 0x06012B17 RID: 76567 RVA: 0x00440D08 File Offset: 0x0043EF08
|
||||
[Token(Token = "0x6012B17")]
|
||||
[Address(RVA = "0x14ACD70", Offset = "0x14ABD70", VA = "0x1814ACD70")]
|
||||
internal void <OnUpdate>b__2()
|
||||
{
|
||||
CreationController creationController = this.<>4__this.creationController;
|
||||
GIPDDLFFNGG[] array = this.cachedSelection;
|
||||
CreationContext <CreationContext>k__BackingField = creationController.<CreationContext>k__BackingField;
|
||||
int length = array.Length;
|
||||
bool flag = <CreationContext>k__BackingField.SetSelection(length, array);
|
||||
MakerPenToolDelete_Object makerPenToolDelete_Object = this.<>4__this;
|
||||
int num = 0;
|
||||
if (makerPenToolDelete_Object.ObjectContext.MIDCJLJHOCI != this.cachedActiveGroup)
|
||||
{
|
||||
CreationContext objectContext = this.<>4__this.ObjectContext;
|
||||
LFBMEDEMGHA lfbmedemgha = this.cachedActiveGroup;
|
||||
bool flag2 = objectContext.PushActiveGroup(lfbmedemgha);
|
||||
}
|
||||
bool flag3 = this.<>4__this.creationController.<CreationContext>k__BackingField.DeleteSelection();
|
||||
this.<>4__this.creationController.<CreationContext>k__BackingField.RemoveAllFromSelection();
|
||||
if (num != 0)
|
||||
{
|
||||
this.<>4__this.ObjectContext.PopActiveGroup();
|
||||
}
|
||||
ANNHEFBGNFL<FGACEBOCODD> onpkmkcmmic = FFPJFMECDNG.BFPPPLIJIGC.ONPKMKCMMIC;
|
||||
}
|
||||
|
||||
// Token: 0x0400C080 RID: 49280
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400C080")]
|
||||
public GIPDDLFFNGG[] cachedSelection;
|
||||
|
||||
// Token: 0x0400C081 RID: 49281
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400C081")]
|
||||
public LFBMEDEMGHA cachedActiveGroup;
|
||||
|
||||
// Token: 0x0400C082 RID: 49282
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400C082")]
|
||||
public MakerPenToolDelete_Object <>4__this;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user