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: 0x0200312C RID: 12588
|
|
[Token(Token = "0x200312C")]
|
|
public abstract class SandboxGoalBase : MonoBehaviourPun
|
|
{
|
|
// Token: 0x17003BA7 RID: 15271
|
|
// (get) Token: 0x060159D6 RID: 88534 RVA: 0x0050E9A4 File Offset: 0x0050CBA4
|
|
[Token(Token = "0x17003BA7")]
|
|
public Tool PBBJCLJPFMI
|
|
{
|
|
[Token(Token = "0x60159D6")]
|
|
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
|
|
get
|
|
{
|
|
return this.tool;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003BA8 RID: 15272
|
|
// (get) Token: 0x060159D7 RID: 88535 RVA: 0x0050E9B8 File Offset: 0x0050CBB8
|
|
[Token(Token = "0x17003BA8")]
|
|
protected virtual bool DACPFHPEBAO
|
|
{
|
|
[Token(Token = "0x60159D7")]
|
|
[Address(RVA = "0xC18680", Offset = "0xC17480", VA = "0x180C18680", Slot = "15")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060159D7)
|
|
|
|
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: 0x060159D8 RID: 88536 RVA: 0x0050E9D4 File Offset: 0x0050CBD4
|
|
[Token(Token = "0x60159D8")]
|
|
[Address(RVA = "0xC18540", Offset = "0xC17340", VA = "0x180C18540", 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: 0x060159D9 RID: 88537
|
|
[Token(Token = "0x60159D9")]
|
|
[Address(Slot = "16")]
|
|
protected abstract void OnTriggerEnter(Collider HPKICPNGMDJ);
|
|
|
|
// Token: 0x060159DA RID: 88538 RVA: 0x0050EA30 File Offset: 0x0050CC30
|
|
[Token(Token = "0x60159DA")]
|
|
[Address(RVA = "0xC185B0", Offset = "0xC173B0", VA = "0x180C185B0")]
|
|
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: 0x060159DB RID: 88539 RVA: 0x0050EA64 File Offset: 0x0050CC64
|
|
[Token(Token = "0x60159DB")]
|
|
[Address(RVA = "0xC18A70", Offset = "0xC17870", VA = "0x180C18A70")]
|
|
[NFOMENMAOIA]
|
|
protected void RpcOnGoalHit(Vector3 DDHPAFKBMON)
|
|
{
|
|
float z = DDHPAFKBMON.z;
|
|
}
|
|
|
|
// Token: 0x060159DC RID: 88540 RVA: 0x0050EA78 File Offset: 0x0050CC78
|
|
[Token(Token = "0x60159DC")]
|
|
[Address(RVA = "0xC18710", Offset = "0xC17510", VA = "0x180C18710", 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: 0x060159DD RID: 88541 RVA: 0x0050EB7C File Offset: 0x0050CD7C
|
|
[Token(Token = "0x60159DD")]
|
|
[Address(RVA = "0xC186B0", Offset = "0xC174B0", VA = "0x180C186B0")]
|
|
private IEnumerator FKFFIEKEDPJ()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060159DD)
|
|
|
|
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: 0x060159DE RID: 88542 RVA: 0x0050EBA0 File Offset: 0x0050CDA0
|
|
[Token(Token = "0x60159DE")]
|
|
[Address(RVA = "0xC18980", Offset = "0xC17780", VA = "0x180C18980")]
|
|
private void NNGODKDDAGF(Renderer CHEJPOIMMCK, MaterialPropertyBlock NCCFFHJCCHB, int NMGPBLNBANO, Color DFEBALLGBCH, float LAIPKAHGIJF)
|
|
{
|
|
if (CHEJPOIMMCK.GetSharedMaterial().HasProperty(NMGPBLNBANO))
|
|
{
|
|
Material sharedMaterial = CHEJPOIMMCK.GetSharedMaterial();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060159DF RID: 88543 RVA: 0x0050EBCC File Offset: 0x0050CDCC
|
|
[Token(Token = "0x60159DF")]
|
|
[Address(RVA = "0xC18AA0", Offset = "0xC178A0", VA = "0x180C18AA0")]
|
|
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: 0x0400E39E RID: 58270
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400E39E")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
protected Tool tool;
|
|
|
|
// Token: 0x0400E39F RID: 58271
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400E39F")]
|
|
public UnityEvent OnGoalHitEvent;
|
|
|
|
// Token: 0x0400E3A0 RID: 58272
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400E3A0")]
|
|
[SerializeField]
|
|
private DAJFOCGPHGP CollisionLayer = (DAJFOCGPHGP)((ulong)23L);
|
|
|
|
// Token: 0x0400E3A1 RID: 58273
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400E3A1")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
private CircuitNodeDisplay circuitNodeDisplay;
|
|
|
|
// Token: 0x0400E3A2 RID: 58274
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400E3A2")]
|
|
[SerializeField]
|
|
private float minHitInterval = 0.5f;
|
|
|
|
// Token: 0x0400E3A3 RID: 58275
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x400E3A3")]
|
|
[SerializeField]
|
|
[Header("Hit effects")]
|
|
private PooledParticle hitParticles;
|
|
|
|
// Token: 0x0400E3A4 RID: 58276
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400E3A4")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip hitAudio;
|
|
|
|
// Token: 0x0400E3A5 RID: 58277
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x400E3A5")]
|
|
[SerializeField]
|
|
[Header("Flashing")]
|
|
private Renderer[] hitFlashRenderers;
|
|
|
|
// Token: 0x0400E3A6 RID: 58278
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400E3A6")]
|
|
[SerializeField]
|
|
private Color hitFlashColor;
|
|
|
|
// Token: 0x0400E3A7 RID: 58279
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x400E3A7")]
|
|
[SerializeField]
|
|
private float hitFlashIntensity;
|
|
|
|
// Token: 0x0400E3A8 RID: 58280
|
|
[FieldOffset(Offset = "0x94")]
|
|
[Token(Token = "0x400E3A8")]
|
|
[SerializeField]
|
|
private int hitFlashCount;
|
|
|
|
// Token: 0x0400E3A9 RID: 58281
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x400E3A9")]
|
|
[SerializeField]
|
|
private float hitFlashDuration;
|
|
|
|
// Token: 0x0400E3AA RID: 58282
|
|
[FieldOffset(Offset = "0x9C")]
|
|
[Token(Token = "0x400E3AA")]
|
|
[SerializeField]
|
|
private float hitFlashFadeDuration;
|
|
|
|
// Token: 0x0400E3AB RID: 58283
|
|
[FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x400E3AB")]
|
|
[SerializeField]
|
|
private float hitFlashInterval;
|
|
|
|
// Token: 0x0400E3AC RID: 58284
|
|
[FieldOffset(Offset = "0xA4")]
|
|
[Token(Token = "0x400E3AC")]
|
|
private float IIOGKLIBGLB;
|
|
|
|
// Token: 0x0400E3AD RID: 58285
|
|
[FieldOffset(Offset = "0xA8")]
|
|
[Token(Token = "0x400E3AD")]
|
|
private Coroutine OLDONDINBCL;
|
|
}
|
|
}
|