scripts
This commit is contained in:
@@ -0,0 +1,299 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using Photon.Pun;
|
||||
using RecRoom.Core.Creation.Circuits;
|
||||
using RecRoom.Core.Pools;
|
||||
using RecRoom.Networking.RPC;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace RecRoom.Core.Creation
|
||||
{
|
||||
// Token: 0x02002BE1 RID: 11233
|
||||
[Token(Token = "0x2002BE1")]
|
||||
[StructLayout(3)]
|
||||
public abstract class SandboxGoalBase : MonoBehaviourPun
|
||||
{
|
||||
// Token: 0x170034D9 RID: 13529
|
||||
// (get) Token: 0x06013CA5 RID: 81061 RVA: 0x004BF6CC File Offset: 0x004BD8CC
|
||||
[Token(Token = "0x170034D9")]
|
||||
public Tool PBBJCLJPFMI
|
||||
{
|
||||
[Token(Token = "0x6013CA5")]
|
||||
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")]
|
||||
get
|
||||
{
|
||||
return this.tool;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170034DA RID: 13530
|
||||
// (get) Token: 0x06013CA6 RID: 81062 RVA: 0x004BF6E0 File Offset: 0x004BD8E0
|
||||
[Token(Token = "0x170034DA")]
|
||||
protected virtual bool DACPFHPEBAO
|
||||
{
|
||||
[Token(Token = "0x6013CA6")]
|
||||
[Address(RVA = "0x16B29B0", Offset = "0x16B13B0", VA = "0x1816B29B0", Slot = "15")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06013CA6)
|
||||
|
||||
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: 0x06013CA7 RID: 81063 RVA: 0x004BF6FC File Offset: 0x004BD8FC
|
||||
[Token(Token = "0x6013CA7")]
|
||||
[Address(RVA = "0x16B2870", Offset = "0x16B1270", VA = "0x1816B2870", 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: 0x06013CA8 RID: 81064
|
||||
[Token(Token = "0x6013CA8")]
|
||||
[Address(Slot = "16")]
|
||||
protected abstract void OnTriggerEnter(Collider HPKICPNGMDJ);
|
||||
|
||||
// Token: 0x06013CA9 RID: 81065 RVA: 0x004BF758 File Offset: 0x004BD958
|
||||
[Token(Token = "0x6013CA9")]
|
||||
[Address(RVA = "0x16B28E0", Offset = "0x16B12E0", VA = "0x1816B28E0")]
|
||||
protected void BIAANBKPEKP(Vector3 DDHPAFKBMON)
|
||||
{
|
||||
this.OnDestroy();
|
||||
PhotonView photonView = base.photonView;
|
||||
RPCActions.RPCAction<Vector3> rpcaction = new RPCActions.RPCAction(this.RpcOnGoalHit);
|
||||
float z = DDHPAFKBMON.z;
|
||||
}
|
||||
|
||||
// Token: 0x06013CAA RID: 81066 RVA: 0x004BF78C File Offset: 0x004BD98C
|
||||
[Token(Token = "0x6013CAA")]
|
||||
[Address(RVA = "0x16B2DA0", Offset = "0x16B17A0", VA = "0x1816B2DA0")]
|
||||
[PunRPC]
|
||||
protected void RpcOnGoalHit(Vector3 DDHPAFKBMON)
|
||||
{
|
||||
float z = DDHPAFKBMON.z;
|
||||
}
|
||||
|
||||
// Token: 0x06013CAB RID: 81067 RVA: 0x004BF7A0 File Offset: 0x004BD9A0
|
||||
[Token(Token = "0x6013CAB")]
|
||||
[Address(RVA = "0x16B2A40", Offset = "0x16B1440", VA = "0x1816B2A40", 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.SafeStopCoroutine(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: 0x06013CAC RID: 81068 RVA: 0x004BF8A4 File Offset: 0x004BDAA4
|
||||
[Token(Token = "0x6013CAC")]
|
||||
[Address(RVA = "0x16B29E0", Offset = "0x16B13E0", VA = "0x1816B29E0")]
|
||||
private IEnumerator FKFFIEKEDPJ()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06013CAC)
|
||||
|
||||
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: 0x06013CAD RID: 81069 RVA: 0x004BF8C8 File Offset: 0x004BDAC8
|
||||
[Token(Token = "0x6013CAD")]
|
||||
[Address(RVA = "0x16B2CB0", Offset = "0x16B16B0", VA = "0x1816B2CB0")]
|
||||
private void NNGODKDDAGF(Renderer CHEJPOIMMCK, MaterialPropertyBlock NCCFFHJCCHB, int NMGPBLNBANO, Color DFEBALLGBCH, float LAIPKAHGIJF)
|
||||
{
|
||||
if (CHEJPOIMMCK.GetSharedMaterial().HasProperty(NMGPBLNBANO))
|
||||
{
|
||||
Material sharedMaterial = CHEJPOIMMCK.GetSharedMaterial();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06013CAE RID: 81070 RVA: 0x004BF8F4 File Offset: 0x004BDAF4
|
||||
[Token(Token = "0x6013CAE")]
|
||||
[Address(RVA = "0x16B2DD0", Offset = "0x16B17D0", VA = "0x1816B2DD0")]
|
||||
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: 0x0400D5A6 RID: 54694
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400D5A6")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
protected Tool tool;
|
||||
|
||||
// Token: 0x0400D5A7 RID: 54695
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400D5A7")]
|
||||
public UnityEvent OnGoalHitEvent;
|
||||
|
||||
// Token: 0x0400D5A8 RID: 54696
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400D5A8")]
|
||||
[SerializeField]
|
||||
private DAJFOCGPHGP CollisionLayer = (DAJFOCGPHGP)((ulong)23L);
|
||||
|
||||
// Token: 0x0400D5A9 RID: 54697
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400D5A9")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
private CircuitNodeDisplay circuitNodeDisplay;
|
||||
|
||||
// Token: 0x0400D5AA RID: 54698
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x400D5AA")]
|
||||
[SerializeField]
|
||||
private float minHitInterval = 0.5f;
|
||||
|
||||
// Token: 0x0400D5AB RID: 54699
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x400D5AB")]
|
||||
[SerializeField]
|
||||
[Header("Hit effects")]
|
||||
private PooledParticle hitParticles;
|
||||
|
||||
// Token: 0x0400D5AC RID: 54700
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x400D5AC")]
|
||||
[SerializeField]
|
||||
private RecRoomAudioClip hitAudio;
|
||||
|
||||
// Token: 0x0400D5AD RID: 54701
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x400D5AD")]
|
||||
[SerializeField]
|
||||
[Header("Flashing")]
|
||||
private Renderer[] hitFlashRenderers;
|
||||
|
||||
// Token: 0x0400D5AE RID: 54702
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x400D5AE")]
|
||||
[SerializeField]
|
||||
private Color hitFlashColor;
|
||||
|
||||
// Token: 0x0400D5AF RID: 54703
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x400D5AF")]
|
||||
[SerializeField]
|
||||
private float hitFlashIntensity;
|
||||
|
||||
// Token: 0x0400D5B0 RID: 54704
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x94")]
|
||||
[Token(Token = "0x400D5B0")]
|
||||
[SerializeField]
|
||||
private int hitFlashCount;
|
||||
|
||||
// Token: 0x0400D5B1 RID: 54705
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x400D5B1")]
|
||||
[SerializeField]
|
||||
private float hitFlashDuration;
|
||||
|
||||
// Token: 0x0400D5B2 RID: 54706
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x9C")]
|
||||
[Token(Token = "0x400D5B2")]
|
||||
[SerializeField]
|
||||
private float hitFlashFadeDuration;
|
||||
|
||||
// Token: 0x0400D5B3 RID: 54707
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xA0")]
|
||||
[Token(Token = "0x400D5B3")]
|
||||
[SerializeField]
|
||||
private float hitFlashInterval;
|
||||
|
||||
// Token: 0x0400D5B4 RID: 54708
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xA4")]
|
||||
[Token(Token = "0x400D5B4")]
|
||||
private float IIOGKLIBGLB;
|
||||
|
||||
// Token: 0x0400D5B5 RID: 54709
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xA8")]
|
||||
[Token(Token = "0x400D5B5")]
|
||||
private Coroutine OLDONDINBCL;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user