297 lines
13 KiB
C#
297 lines
13 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.Core.Creation.Circuits;
|
|
using RecRoom.Core.Pools;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
|
|
namespace RecRoom.Core.Creation
|
|
{
|
|
// Token: 0x02003219 RID: 12825
|
|
[Token(Token = "0x2003219")]
|
|
public abstract class SandboxGoalBase : MonoBehaviourPun
|
|
{
|
|
// Token: 0x17003C6A RID: 15466
|
|
// (get) Token: 0x06015E5E RID: 89694 RVA: 0x0051961C File Offset: 0x0051781C
|
|
[Token(Token = "0x17003C6A")]
|
|
public Tool PBBJCLJPFMI
|
|
{
|
|
[Token(Token = "0x6015E5E")]
|
|
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
|
get
|
|
{
|
|
return this.tool;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003C6B RID: 15467
|
|
// (get) Token: 0x06015E5F RID: 89695 RVA: 0x00519630 File Offset: 0x00517830
|
|
[Token(Token = "0x17003C6B")]
|
|
protected virtual bool DACPFHPEBAO
|
|
{
|
|
[Token(Token = "0x6015E5F")]
|
|
[Address(RVA = "0x1700770", Offset = "0x16FF770", VA = "0x181700770", Slot = "15")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06015E5F)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean RecRoom.Core.Creation.SandboxGoalBase::ELMEOMKLIJK()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:float32(var_1_07, callgetter:float32(Time::get_time))
|
|
stloc:float32(var_2_0E, ldfld:float32(SandboxGoalBase::IIOGKLIBGLB, ldloc:SandboxGoalBase(this)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015E60 RID: 89696 RVA: 0x0051964C File Offset: 0x0051784C
|
|
[Token(Token = "0x6015E60")]
|
|
[Address(RVA = "0x1700630", Offset = "0x16FF630", VA = "0x181700630", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base..ctor();
|
|
Tool tool = this.tool;
|
|
DAJFOCGPHGP collisionLayer = this.CollisionLayer;
|
|
tool.DefaultCollisionLayer = collisionLayer;
|
|
this.tool.GravityPickupMode = (Tool.LMJNHJCGDOF)((ulong)4294967295L);
|
|
this.tool.IgnorePickupDirection = true;
|
|
this.tool.AlwaysPhysicalPickupOffCenter = true;
|
|
}
|
|
|
|
// Token: 0x06015E61 RID: 89697
|
|
[Token(Token = "0x6015E61")]
|
|
[Address(Slot = "16")]
|
|
protected abstract void OnTriggerEnter(Collider HPKICPNGMDJ);
|
|
|
|
// Token: 0x06015E62 RID: 89698 RVA: 0x005196A8 File Offset: 0x005178A8
|
|
[Token(Token = "0x6015E62")]
|
|
[Address(RVA = "0x17006A0", Offset = "0x16FF6A0", VA = "0x1817006A0")]
|
|
protected void BIAANBKPEKP(Vector3 DDHPAFKBMON)
|
|
{
|
|
this.OnDestroy();
|
|
PhotonView photonView = base.JDHMIOJKLCK;
|
|
DGLOJCGDOGG.LFLFMIMNCON<Vector3> lflfmimncon = new DGLOJCGDOGG.LFLFMIMNCON(this.RpcOnGoalHit);
|
|
float z = DDHPAFKBMON.z;
|
|
}
|
|
|
|
// Token: 0x06015E63 RID: 89699 RVA: 0x005196DC File Offset: 0x005178DC
|
|
[Token(Token = "0x6015E63")]
|
|
[Address(RVA = "0x1700B60", Offset = "0x16FFB60", VA = "0x181700B60")]
|
|
[NFOMENMAOIA]
|
|
protected void RpcOnGoalHit(Vector3 DDHPAFKBMON)
|
|
{
|
|
float z = DDHPAFKBMON.z;
|
|
}
|
|
|
|
// Token: 0x06015E64 RID: 89700 RVA: 0x005196F0 File Offset: 0x005178F0
|
|
[Token(Token = "0x6015E64")]
|
|
[Address(RVA = "0x1700800", Offset = "0x16FF800", VA = "0x181700800", Slot = "17")]
|
|
protected virtual void NKBNJEFGDHO(Vector3 DDHPAFKBMON)
|
|
{
|
|
this.OnDestroy();
|
|
UnityEvent onGoalHitEvent = this.OnGoalHitEvent;
|
|
if (onGoalHitEvent != 0)
|
|
{
|
|
onGoalHitEvent.Invoke();
|
|
}
|
|
CircuitNodeDisplay circuitNodeDisplay = this.circuitNodeDisplay;
|
|
int num = 0;
|
|
if (circuitNodeDisplay == num || !this.circuitNodeDisplay.HAEAADBHHEE)
|
|
{
|
|
PooledParticle pooledParticle = this.hitParticles;
|
|
int num2 = 0;
|
|
if (pooledParticle != num2)
|
|
{
|
|
GlobalPool instance = GlobalPool.ONCPNMDGGKG;
|
|
PooledParticle pooledParticle2 = this.hitParticles;
|
|
PooledParticle pooledParticle3 = instance.Acquire<PooledParticle>(pooledParticle2);
|
|
Transform transform = base.transform;
|
|
float z = DDHPAFKBMON.z;
|
|
}
|
|
RecRoomAudioClip recRoomAudioClip = this.hitAudio;
|
|
if (recRoomAudioClip != 0)
|
|
{
|
|
Transform transform2 = base.transform;
|
|
int num3 = 0;
|
|
int num4 = 0;
|
|
SFXAudioSource sfxaudioSource = AudioManager.Play3DSFX(recRoomAudioClip, transform2, num4, num3);
|
|
}
|
|
}
|
|
Coroutine oldondinbcl = this.OLDONDINBCL;
|
|
this.OMNDHPIFFEM(oldondinbcl);
|
|
SandboxGoalBase.BDHKPAGILKH bdhkpagilkh;
|
|
bdhkpagilkh.System.IDisposable.Dispose();
|
|
bdhkpagilkh.<>1__state = (int)((ulong)0L);
|
|
bdhkpagilkh.<>4__this = this;
|
|
Coroutine coroutine = base.StartCoroutine(bdhkpagilkh);
|
|
this.OLDONDINBCL = coroutine;
|
|
float time = Time.time;
|
|
this.IIOGKLIBGLB = time;
|
|
}
|
|
|
|
// Token: 0x06015E65 RID: 89701 RVA: 0x005197F4 File Offset: 0x005179F4
|
|
[Token(Token = "0x6015E65")]
|
|
[Address(RVA = "0x17007A0", Offset = "0x16FF7A0", VA = "0x1817007A0")]
|
|
private IEnumerator FKFFIEKEDPJ()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06015E65)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator RecRoom.Core.Creation.SandboxGoalBase::FKFFIEKEDPJ()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(BDHKPAGILKH::System.IDisposable.Dispose, ldloc:BDHKPAGILKH(var_0))
|
|
stfld:int32(BDHKPAGILKH::<>1__state, ldloc:BDHKPAGILKH(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:SandboxGoalBase(BDHKPAGILKH::<>4__this, ldloc:BDHKPAGILKH(var_0), ldloc:SandboxGoalBase(this))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06015E66 RID: 89702 RVA: 0x00519818 File Offset: 0x00517A18
|
|
[Token(Token = "0x6015E66")]
|
|
[Address(RVA = "0x1700A70", Offset = "0x16FFA70", VA = "0x181700A70")]
|
|
private void NNGODKDDAGF(Renderer CHEJPOIMMCK, MaterialPropertyBlock NCCFFHJCCHB, int NMGPBLNBANO, Color DFEBALLGBCH, float LAIPKAHGIJF)
|
|
{
|
|
if (CHEJPOIMMCK.GetSharedMaterial().HasProperty(NMGPBLNBANO))
|
|
{
|
|
Material sharedMaterial = CHEJPOIMMCK.GetSharedMaterial();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015E67 RID: 89703 RVA: 0x00519844 File Offset: 0x00517A44
|
|
[Token(Token = "0x6015E67")]
|
|
[Address(RVA = "0x1700B90", Offset = "0x16FFB90", VA = "0x181700B90")]
|
|
protected SandboxGoalBase()
|
|
{
|
|
Color white = Color.white;
|
|
this.hitFlashIntensity = 0.3f;
|
|
this.hitFlashCount = (int)((ulong)1L);
|
|
this.hitFlashDuration = 0.3f;
|
|
this.hitFlashFadeDuration = 0.3f;
|
|
this.hitFlashInterval = 0.3f;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400E5DE RID: 58846
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400E5DE")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
protected Tool tool;
|
|
|
|
// Token: 0x0400E5DF RID: 58847
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400E5DF")]
|
|
public UnityEvent OnGoalHitEvent;
|
|
|
|
// Token: 0x0400E5E0 RID: 58848
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400E5E0")]
|
|
[SerializeField]
|
|
private DAJFOCGPHGP CollisionLayer = (DAJFOCGPHGP)((ulong)23L);
|
|
|
|
// Token: 0x0400E5E1 RID: 58849
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400E5E1")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
private CircuitNodeDisplay circuitNodeDisplay;
|
|
|
|
// Token: 0x0400E5E2 RID: 58850
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400E5E2")]
|
|
[SerializeField]
|
|
private float minHitInterval = 0.5f;
|
|
|
|
// Token: 0x0400E5E3 RID: 58851
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x400E5E3")]
|
|
[SerializeField]
|
|
[Header("Hit effects")]
|
|
private PooledParticle hitParticles;
|
|
|
|
// Token: 0x0400E5E4 RID: 58852
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400E5E4")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip hitAudio;
|
|
|
|
// Token: 0x0400E5E5 RID: 58853
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x400E5E5")]
|
|
[SerializeField]
|
|
[Header("Flashing")]
|
|
private Renderer[] hitFlashRenderers;
|
|
|
|
// Token: 0x0400E5E6 RID: 58854
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400E5E6")]
|
|
[SerializeField]
|
|
private Color hitFlashColor;
|
|
|
|
// Token: 0x0400E5E7 RID: 58855
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x400E5E7")]
|
|
[SerializeField]
|
|
private float hitFlashIntensity;
|
|
|
|
// Token: 0x0400E5E8 RID: 58856
|
|
[FieldOffset(Offset = "0x94")]
|
|
[Token(Token = "0x400E5E8")]
|
|
[SerializeField]
|
|
private int hitFlashCount;
|
|
|
|
// Token: 0x0400E5E9 RID: 58857
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x400E5E9")]
|
|
[SerializeField]
|
|
private float hitFlashDuration;
|
|
|
|
// Token: 0x0400E5EA RID: 58858
|
|
[FieldOffset(Offset = "0x9C")]
|
|
[Token(Token = "0x400E5EA")]
|
|
[SerializeField]
|
|
private float hitFlashFadeDuration;
|
|
|
|
// Token: 0x0400E5EB RID: 58859
|
|
[FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x400E5EB")]
|
|
[SerializeField]
|
|
private float hitFlashInterval;
|
|
|
|
// Token: 0x0400E5EC RID: 58860
|
|
[FieldOffset(Offset = "0xA4")]
|
|
[Token(Token = "0x400E5EC")]
|
|
private float IIOGKLIBGLB;
|
|
|
|
// Token: 0x0400E5ED RID: 58861
|
|
[FieldOffset(Offset = "0xA8")]
|
|
[Token(Token = "0x400E5ED")]
|
|
private Coroutine OLDONDINBCL;
|
|
}
|
|
}
|