373 lines
13 KiB
C#
373 lines
13 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core.Pools;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom
|
|
{
|
|
// Token: 0x02002191 RID: 8593
|
|
[Token(Token = "0x2002191")]
|
|
public class AnimateInOut : MonoBehaviour
|
|
{
|
|
// Token: 0x170022F8 RID: 8952
|
|
// (get) Token: 0x0600DC72 RID: 56434 RVA: 0x0033250C File Offset: 0x0033070C
|
|
[Token(Token = "0x170022F8")]
|
|
private bool NFGEMADFEGN
|
|
{
|
|
[Token(Token = "0x600DC72")]
|
|
[Address(RVA = "0x9D0FA0", Offset = "0x9CFDA0", VA = "0x1809D0FA0")]
|
|
get
|
|
{
|
|
Transform transform = this.boundsRendererRoot;
|
|
int num = 0;
|
|
return transform != num;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170022F9 RID: 8953
|
|
// (get) Token: 0x0600DC73 RID: 56435 RVA: 0x0033252C File Offset: 0x0033072C
|
|
[Token(Token = "0x170022F9")]
|
|
private bool GHPJPCCJEGJ
|
|
{
|
|
[Token(Token = "0x600DC73")]
|
|
[Address(RVA = "0x9D1000", Offset = "0x9CFE00", VA = "0x1809D1000")]
|
|
get
|
|
{
|
|
SimpleVolume simpleVolume = this.boundingVolume;
|
|
int num = 0;
|
|
return simpleVolume != num;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600DC74 RID: 56436 RVA: 0x0033254C File Offset: 0x0033074C
|
|
[Token(Token = "0x600DC74")]
|
|
[Address(RVA = "0x9D1CE0", Offset = "0x9D0AE0", VA = "0x1809D1CE0")]
|
|
private void Start()
|
|
{
|
|
this.NFJHDIADDEG = true;
|
|
if (this.SuppressAnimation || this.SupportsAnimateIn)
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600DC75 RID: 56437 RVA: 0x00332574 File Offset: 0x00330774
|
|
[Token(Token = "0x600DC75")]
|
|
[Address(RVA = "0x9D14D0", Offset = "0x9D02D0", VA = "0x1809D14D0")]
|
|
private void OnEnable()
|
|
{
|
|
if (!this.NFJHDIADDEG || this.SuppressAnimation || this.SupportsAnimateIn)
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600DC76 RID: 56438 RVA: 0x003325A0 File Offset: 0x003307A0
|
|
[Token(Token = "0x600DC76")]
|
|
[Address(RVA = "0x9D14D0", Offset = "0x9D02D0", VA = "0x1809D14D0")]
|
|
private void LCLCEAJMPDH()
|
|
{
|
|
if (!this.NFJHDIADDEG || this.SuppressAnimation || this.SupportsAnimateIn)
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600DC77 RID: 56439 RVA: 0x003325CC File Offset: 0x003307CC
|
|
[Token(Token = "0x600DC77")]
|
|
[Address(RVA = "0x9D1880", Offset = "0x9D0680", VA = "0x1809D1880")]
|
|
private void OnDisable()
|
|
{
|
|
if (!this.SuppressAnimation && this.SupportsAnimateOut && SessionManager.FFCHIHLIPBE)
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
this.PlayEffect(num2 != 0, num, num, num != 0);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600DC78 RID: 56440 RVA: 0x00332604 File Offset: 0x00330804
|
|
[Token(Token = "0x600DC78")]
|
|
[Address(RVA = "0x9D1DD0", Offset = "0x9D0BD0", VA = "0x1809D1DD0")]
|
|
public void WarmUp(int JKLHDHLEOPK = 1)
|
|
{
|
|
PooledParticle pooledParticle = this.effectPrefab;
|
|
int num = 0;
|
|
if (pooledParticle == num)
|
|
{
|
|
PooledParticle defaultEffectPrefab = SingletonMonoBehaviour.ONCPNMDGGKG.DefaultEffectPrefab;
|
|
this.effectPrefab = defaultEffectPrefab;
|
|
}
|
|
GlobalPool instance = GlobalPool.ONCPNMDGGKG;
|
|
PooledParticle pooledParticle2 = this.effectPrefab;
|
|
instance.Prefill<PooledParticle>(pooledParticle2, JKLHDHLEOPK);
|
|
}
|
|
|
|
// Token: 0x0600DC79 RID: 56441 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600DC79")]
|
|
[Address(RVA = "0x9D1930", Offset = "0x9D0730", VA = "0x1809D1930")]
|
|
public void PlayEffect(bool KAJGCDMKOLK, [Optional] Vector3? DDHPAFKBMON, [Optional] Quaternion? IGPENJBJADK, bool OKAKAPDNBLC = false)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600DC7A RID: 56442 RVA: 0x00332658 File Offset: 0x00330858
|
|
[Token(Token = "0x600DC7A")]
|
|
[Address(RVA = "0x9D1470", Offset = "0x9D0270", VA = "0x1809D1470")]
|
|
private IEnumerator IMCIGGEHJLF(bool KAJGCDMKOLK)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600DC7A)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator RecRoom.AnimateInOut::IMCIGGEHJLF(System.Boolean)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(BPGPMOOACFD::System.IDisposable.Dispose, ldloc:BPGPMOOACFD(var_0))
|
|
stfld:int32(BPGPMOOACFD::<>1__state, ldloc:BPGPMOOACFD(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:AnimateInOut(BPGPMOOACFD::<>4__this, ldloc:BPGPMOOACFD(var_0), ldloc:AnimateInOut(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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600DC7B RID: 56443 RVA: 0x0033267C File Offset: 0x0033087C
|
|
[Token(Token = "0x600DC7B")]
|
|
[Address(RVA = "0x9D1D40", Offset = "0x9D0B40", VA = "0x1809D1D40")]
|
|
public void StopEffect()
|
|
{
|
|
PooledParticle plckpdbaanl = this.PLCKPDBAANL;
|
|
int num = 0;
|
|
if (plckpdbaanl != num)
|
|
{
|
|
this.PLCKPDBAANL.Stop();
|
|
this.PLCKPDBAANL = (ulong)0L;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600DC7C RID: 56444 RVA: 0x003326B8 File Offset: 0x003308B8
|
|
[Token(Token = "0x600DC7C")]
|
|
[Address(RVA = "0x9D1060", Offset = "0x9CFE60", VA = "0x1809D1060")]
|
|
private void GMPAMGKFOIA(Vector3 DDHPAFKBMON, Quaternion IGPENJBJADK)
|
|
{
|
|
PooledParticle plckpdbaanl = this.PLCKPDBAANL;
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
int num = 0;
|
|
plckpdbaanl.transform.position = num;
|
|
return;
|
|
}
|
|
Transform transform = plckpdbaanl.transform;
|
|
Transform transform2 = base.transform;
|
|
float z = DDHPAFKBMON.z;
|
|
PooledParticle plckpdbaanl2 = this.PLCKPDBAANL;
|
|
int num2 = 0;
|
|
plckpdbaanl2.transform.rotation = num2;
|
|
ParticleSystem <OAIDPPDMCPA>k__BackingField = this.PLCKPDBAANL.<OAIDPPDMCPA>k__BackingField;
|
|
ParticleSystem.MainModule main = <OAIDPPDMCPA>k__BackingField.main;
|
|
float[] array = new float[3];
|
|
Vector3 vector;
|
|
float z2 = vector.z;
|
|
float num3 = Mathf.Max(array);
|
|
ParticleSystem <OAIDPPDMCPA>k__BackingField2 = this.PLCKPDBAANL.<OAIDPPDMCPA>k__BackingField;
|
|
ParticleSystem.MainModule main2 = <OAIDPPDMCPA>k__BackingField2.main;
|
|
ParticleSystem.MinMaxCurve minMaxCurve = num3;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600DC7D RID: 56445 RVA: 0x0033276C File Offset: 0x0033096C
|
|
[Token(Token = "0x600DC7D")]
|
|
[Address(RVA = "0x9D0DB0", Offset = "0x9CFBB0", VA = "0x1809D0DB0")]
|
|
private bool CPNGJGEJDLI(out Bounds PDPPMFNOBMO)
|
|
{
|
|
SimpleVolume simpleVolume = this.boundingVolume;
|
|
int num = 0;
|
|
if (!(simpleVolume != num))
|
|
{
|
|
Transform transform = this.boundsRendererRoot;
|
|
int num2 = 0;
|
|
if (transform != num2)
|
|
{
|
|
}
|
|
Transform transform2 = base.transform;
|
|
List<Renderer> pclmnnehlng;
|
|
if (this.PCLMNNEHLNG == 0)
|
|
{
|
|
List<Renderer> list = new List();
|
|
this.PCLMNNEHLNG = list;
|
|
this.MPNGJMOFOJF(transform2, list);
|
|
pclmnnehlng = this.PCLMNNEHLNG;
|
|
}
|
|
int num3 = 0;
|
|
return DMGGGONALIP.HNCJGOFDDJE(pclmnnehlng, ref PDPPMFNOBMO, num3 != 0);
|
|
}
|
|
SimpleVolume simpleVolume2 = this.boundingVolume;
|
|
SimpleVolume simpleVolume3 = this.boundingVolume;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
int num4 = 0;
|
|
PDPPMFNOBMO.m_Center = num4;
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600DC7E RID: 56446 RVA: 0x0033280C File Offset: 0x00330A0C
|
|
[Token(Token = "0x600DC7E")]
|
|
[Address(RVA = "0x9D1530", Offset = "0x9D0330", VA = "0x1809D1530")]
|
|
private void MPNGJMOFOJF(Transform OIFLDNBGJOH, List<Renderer> PCLMNNEHLNG)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
if (!OIFLDNBGJOH.GetComponent<ImpactDecal>())
|
|
{
|
|
List<Renderer> inkllafljdh = AnimateInOut.INKLLAFLJDH;
|
|
LBFOOLAIGBI.IFFLOPMPLPN<Renderer>(OIFLDNBGJOH, inkllafljdh);
|
|
List<Renderer> inkllafljdh2 = AnimateInOut.INKLLAFLJDH;
|
|
Func<Renderer, bool> func = new Func(this.OPLMICEBPNJ);
|
|
IEnumerable<Renderer> enumerable = Enumerable.Where<Renderer>(inkllafljdh2, func);
|
|
PCLMNNEHLNG.AddRange(enumerable);
|
|
AnimateInOut.INKLLAFLJDH.Clear();
|
|
}
|
|
IEnumerator enumerator = OIFLDNBGJOH.GetEnumerator();
|
|
bool flag;
|
|
if (enumerator != 0)
|
|
{
|
|
if (enumerator == 0)
|
|
{
|
|
goto IL_7E;
|
|
}
|
|
AnimateInOut animateInOut;
|
|
flag = animateInOut;
|
|
while (flag)
|
|
{
|
|
}
|
|
}
|
|
if (flag)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return;
|
|
IL_7E:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600DC7F RID: 56447 RVA: 0x003328A4 File Offset: 0x00330AA4
|
|
[Token(Token = "0x600DC7F")]
|
|
[Address(RVA = "0x9D1F20", Offset = "0x9D0D20", VA = "0x1809D1F20")]
|
|
public AnimateInOut()
|
|
{
|
|
List<Renderer> list = new List();
|
|
this.ignoredRenderers = list;
|
|
this.animInStartOffset = 0.2f;
|
|
this.animOutStartOffset = 0.2f;
|
|
this.SupportsAnimateIn = true;
|
|
this.MHLJKMJDHNL = true;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0600DC81 RID: 56449 RVA: 0x00332900 File Offset: 0x00330B00
|
|
[Token(Token = "0x600DC81")]
|
|
[Address(RVA = "0x9D1820", Offset = "0x9D0620", VA = "0x1809D1820")]
|
|
[CompilerGenerated]
|
|
private bool OPLMICEBPNJ(Renderer PBAOMKNFBFL)
|
|
{
|
|
return !this.ignoredRenderers.Contains(PBAOMKNFBFL);
|
|
}
|
|
|
|
// Token: 0x04008FBC RID: 36796
|
|
[Token(Token = "0x4008FBC")]
|
|
private static readonly List<Renderer> INKLLAFLJDH = new List();
|
|
|
|
// Token: 0x04008FBD RID: 36797
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008FBD")]
|
|
[SerializeField]
|
|
[Header("Prefab")]
|
|
private PooledParticle effectPrefab;
|
|
|
|
// Token: 0x04008FBE RID: 36798
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008FBE")]
|
|
[SerializeField]
|
|
[OMAIFIIBMNL("HasBoundingVolume", false)]
|
|
[Header("Bounds")]
|
|
private Transform boundsRendererRoot;
|
|
|
|
// Token: 0x04008FBF RID: 36799
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4008FBF")]
|
|
[SerializeField]
|
|
[OMAIFIIBMNL("HasBoundingVolume", false)]
|
|
private List<Renderer> ignoredRenderers;
|
|
|
|
// Token: 0x04008FC0 RID: 36800
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4008FC0")]
|
|
[SerializeField]
|
|
[OMAIFIIBMNL("HasBoundsRendererRoot", false)]
|
|
private SimpleVolume boundingVolume;
|
|
|
|
// Token: 0x04008FC1 RID: 36801
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4008FC1")]
|
|
[SerializeField]
|
|
[Header("Timing")]
|
|
private float animInStartOffset;
|
|
|
|
// Token: 0x04008FC2 RID: 36802
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
|
|
[Token(Token = "0x4008FC2")]
|
|
[SerializeField]
|
|
private float animOutStartOffset;
|
|
|
|
// Token: 0x04008FC3 RID: 36803
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4008FC3")]
|
|
[Header("Effect Support")]
|
|
public bool SupportsAnimateIn;
|
|
|
|
// Token: 0x04008FC4 RID: 36804
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x41")]
|
|
[Token(Token = "0x4008FC4")]
|
|
public bool SupportsAnimateOut;
|
|
|
|
// Token: 0x04008FC5 RID: 36805
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x42")]
|
|
[Token(Token = "0x4008FC5")]
|
|
public bool SuppressAnimation;
|
|
|
|
// Token: 0x04008FC6 RID: 36806
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4008FC6")]
|
|
private PooledParticle PLCKPDBAANL;
|
|
|
|
// Token: 0x04008FC7 RID: 36807
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4008FC7")]
|
|
private bool MHLJKMJDHNL;
|
|
|
|
// Token: 0x04008FC8 RID: 36808
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4008FC8")]
|
|
private List<Renderer> PCLMNNEHLNG;
|
|
|
|
// Token: 0x04008FC9 RID: 36809
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4008FC9")]
|
|
private bool NFJHDIADDEG;
|
|
}
|
|
}
|