326 lines
12 KiB
C#
326 lines
12 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core.Rendering;
|
|
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
namespace RecRoom
|
|
{
|
|
// Token: 0x02001FE6 RID: 8166
|
|
[Token(Token = "0x2001FE6")]
|
|
public class SparkleOutline : MonoBehaviour
|
|
{
|
|
// Token: 0x0600CFB0 RID: 53168 RVA: 0x002FD168 File Offset: 0x002FB368
|
|
[Token(Token = "0x600CFB0")]
|
|
[Address(RVA = "0xD2F670", Offset = "0xD2E470", VA = "0x180D2F670")]
|
|
private void Awake()
|
|
{
|
|
Material material = this.overrideMaterialTemplate;
|
|
int num = 0;
|
|
if (material != num)
|
|
{
|
|
Material material2 = SparkleRendererEffect.InstantiateMaterialWithMobileShaderIfNecessary(this.overrideMaterialTemplate);
|
|
this.CBFNKJFKEEE = material2;
|
|
}
|
|
List<MeshRenderer> pclmnnehlng = this.PCLMNNEHLNG;
|
|
MeshRenderer[] componentsInChildren = base.GetComponentsInChildren<MeshRenderer>();
|
|
pclmnnehlng.AddRange(componentsInChildren);
|
|
MeshRenderer[] array = this.ignoredRenderers;
|
|
if (array != 0)
|
|
{
|
|
int num2 = 0;
|
|
if (num2 < array.Length)
|
|
{
|
|
List<MeshRenderer> pclmnnehlng2 = this.PCLMNNEHLNG;
|
|
MeshRenderer meshRenderer = array[num2];
|
|
bool flag = pclmnnehlng2.Remove(meshRenderer);
|
|
MeshRenderer[] array2 = this.ignoredRenderers;
|
|
num2++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CFB1 RID: 53169 RVA: 0x002FD200 File Offset: 0x002FB400
|
|
[Token(Token = "0x600CFB1")]
|
|
[Address(RVA = "0xD2FBC0", Offset = "0xD2E9C0", VA = "0x180D2FBC0")]
|
|
private void OnEnable()
|
|
{
|
|
this.KGFFMEICLNN();
|
|
}
|
|
|
|
// Token: 0x0600CFB2 RID: 53170 RVA: 0x002FD214 File Offset: 0x002FB414
|
|
[Token(Token = "0x600CFB2")]
|
|
[Address(RVA = "0xD2FBD0", Offset = "0xD2E9D0", VA = "0x180D2FBD0")]
|
|
private void Update()
|
|
{
|
|
if (this.NJPHOAJLPMH.OLGMEEIPCAL)
|
|
{
|
|
if (this.visibleInCamera.GDPKBEBEOBA)
|
|
{
|
|
Coroutine pkhigoopcmm = this.PKHIGOOPCMM;
|
|
if (pkhigoopcmm != 0)
|
|
{
|
|
base.StopCoroutine(pkhigoopcmm);
|
|
this.PKHIGOOPCMM = (ulong)0L;
|
|
}
|
|
SparkleOutline.HILEPAEOPFA hilepaeopfa;
|
|
hilepaeopfa.System.IDisposable.Dispose();
|
|
hilepaeopfa.<>1__state = (int)((ulong)0L);
|
|
hilepaeopfa.<>4__this = this;
|
|
Coroutine coroutine = base.StartCoroutine(hilepaeopfa);
|
|
this.PKHIGOOPCMM = coroutine;
|
|
}
|
|
this.KGFFMEICLNN();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CFB3 RID: 53171 RVA: 0x002FD28C File Offset: 0x002FB48C
|
|
[Token(Token = "0x600CFB3")]
|
|
[Address(RVA = "0xD2FB20", Offset = "0xD2E920", VA = "0x180D2FB20")]
|
|
private void OnDestroy()
|
|
{
|
|
Material cbfnkjfkeee = this.CBFNKJFKEEE;
|
|
int num = 0;
|
|
if (cbfnkjfkeee != num)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.CBFNKJFKEEE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CFB4 RID: 53172 RVA: 0x002FD2B8 File Offset: 0x002FB4B8
|
|
[Token(Token = "0x600CFB4")]
|
|
[Address(RVA = "0xD2F9C0", Offset = "0xD2E7C0", VA = "0x180D2F9C0")]
|
|
private static void NIPJEBDFJBK(float LIMOILDIGKF, out float CLHJLKJMGJG, out float HBDKDAKKJMO)
|
|
{
|
|
AnimationCurve ffphamgdhhc = SparkleOutline.FFPHAMGDHHC;
|
|
float num = Mathf.Clamp01(LIMOILDIGKF);
|
|
float num2 = ffphamgdhhc.Evaluate(num);
|
|
CLHJLKJMGJG.m_value = num2;
|
|
AnimationCurve mnedkohbcho = SparkleOutline.MNEDKOHBCHO;
|
|
num = Mathf.Clamp01(LIMOILDIGKF);
|
|
float num3 = mnedkohbcho.Evaluate(num);
|
|
HBDKDAKKJMO.m_value = num3;
|
|
}
|
|
|
|
// Token: 0x0600CFB5 RID: 53173 RVA: 0x002FD308 File Offset: 0x002FB508
|
|
[Token(Token = "0x600CFB5")]
|
|
[Address(RVA = "0xD2F850", Offset = "0xD2E650", VA = "0x180D2F850")]
|
|
private void KGFFMEICLNN()
|
|
{
|
|
MACMLJJGBIM njphoajlpmh = this.NJPHOAJLPMH;
|
|
float num = this.maxSparklePeriod;
|
|
float num2 = global::UnityEngine.Random.Range(this.minSparklePeriod, num);
|
|
num = num2;
|
|
num = Mathf.Max(num2, num);
|
|
njphoajlpmh.KGFFMEICLNN(num);
|
|
}
|
|
|
|
// Token: 0x0600CFB6 RID: 53174 RVA: 0x002FD348 File Offset: 0x002FB548
|
|
[Token(Token = "0x600CFB6")]
|
|
[Address(RVA = "0xD2F7A0", Offset = "0xD2E5A0", VA = "0x180D2F7A0")]
|
|
private void FKOFNDDOGFB()
|
|
{
|
|
if (this.visibleInCamera.GDPKBEBEOBA)
|
|
{
|
|
Coroutine pkhigoopcmm = this.PKHIGOOPCMM;
|
|
if (pkhigoopcmm != 0)
|
|
{
|
|
base.StopCoroutine(pkhigoopcmm);
|
|
this.PKHIGOOPCMM = (ulong)0L;
|
|
}
|
|
SparkleOutline.HILEPAEOPFA hilepaeopfa;
|
|
hilepaeopfa.System.IDisposable.Dispose();
|
|
hilepaeopfa.<>1__state = (int)((ulong)0L);
|
|
hilepaeopfa.<>4__this = this;
|
|
Coroutine coroutine = base.StartCoroutine(hilepaeopfa);
|
|
this.PKHIGOOPCMM = coroutine;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CFB7 RID: 53175 RVA: 0x002FD3AC File Offset: 0x002FB5AC
|
|
[Token(Token = "0x600CFB7")]
|
|
[Address(RVA = "0xD2F930", Offset = "0xD2E730", VA = "0x180D2F930")]
|
|
private void MPCEAFGCNHL()
|
|
{
|
|
Coroutine pkhigoopcmm = this.PKHIGOOPCMM;
|
|
if (pkhigoopcmm != 0)
|
|
{
|
|
base.StopCoroutine(pkhigoopcmm);
|
|
this.PKHIGOOPCMM = (ulong)0L;
|
|
}
|
|
SparkleOutline.HILEPAEOPFA hilepaeopfa;
|
|
hilepaeopfa.System.IDisposable.Dispose();
|
|
hilepaeopfa.<>1__state = (int)((ulong)0L);
|
|
hilepaeopfa.<>4__this = this;
|
|
Coroutine coroutine = base.StartCoroutine(hilepaeopfa);
|
|
this.PKHIGOOPCMM = coroutine;
|
|
}
|
|
|
|
// Token: 0x0600CFB8 RID: 53176 RVA: 0x002FD3FC File Offset: 0x002FB5FC
|
|
[Token(Token = "0x600CFB8")]
|
|
[Address(RVA = "0x846CE0", Offset = "0x845AE0", VA = "0x180846CE0")]
|
|
private void LAIBFHODMMK()
|
|
{
|
|
Coroutine pkhigoopcmm = this.PKHIGOOPCMM;
|
|
if (pkhigoopcmm != 0)
|
|
{
|
|
base.StopCoroutine(pkhigoopcmm);
|
|
this.PKHIGOOPCMM = (ulong)0L;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CFB9 RID: 53177 RVA: 0x002FD424 File Offset: 0x002FB624
|
|
[Token(Token = "0x600CFB9")]
|
|
[Address(RVA = "0xD2FAC0", Offset = "0xD2E8C0", VA = "0x180D2FAC0")]
|
|
private IEnumerator NODHKDEGGPF()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CFB9)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator RecRoom.SparkleOutline::NODHKDEGGPF()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(HILEPAEOPFA::System.IDisposable.Dispose, ldloc:HILEPAEOPFA(var_0))
|
|
stfld:int32(HILEPAEOPFA::<>1__state, ldloc:HILEPAEOPFA(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:SparkleOutline(HILEPAEOPFA::<>4__this, ldloc:HILEPAEOPFA(var_0), ldloc:SparkleOutline(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: 0x0600CFBA RID: 53178 RVA: 0x002FD448 File Offset: 0x002FB648
|
|
[Token(Token = "0x600CFBA")]
|
|
[Address(RVA = "0xD30100", Offset = "0xD2EF00", VA = "0x180D30100")]
|
|
public SparkleOutline()
|
|
{
|
|
MACMLJJGBIM macmljjgbim = new MACMLJJGBIM();
|
|
this.NJPHOAJLPMH = macmljjgbim;
|
|
List<MeshRenderer> list = new List();
|
|
this.PCLMNNEHLNG = list;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0600CFBB RID: 53179 RVA: 0x002FD48C File Offset: 0x002FB68C
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600CFBB")]
|
|
[Address(RVA = "0xD2FCA0", Offset = "0xD2EAA0", VA = "0x180D2FCA0")]
|
|
static SparkleOutline()
|
|
{
|
|
Keyframe[] array = new Keyframe[6];
|
|
int num = 0;
|
|
array[0] = num;
|
|
array[3] = num;
|
|
int num2 = 0;
|
|
array[3] = num2;
|
|
array[6] = num2;
|
|
int num3 = 0;
|
|
array[7] = num3;
|
|
array[10] = num3;
|
|
int num4 = 0;
|
|
array[10] = num3;
|
|
array[13] = num4;
|
|
int num5 = 0;
|
|
array[14] = num3;
|
|
array[17] = num5;
|
|
int num6 = 0;
|
|
array[17] = num3;
|
|
array[20] = num6;
|
|
SparkleOutline.MNEDKOHBCHO = new AnimationCurve(array);
|
|
Keyframe[] array2 = new Keyframe[3];
|
|
int num7 = 0;
|
|
array2[0] = num3;
|
|
array2[3] = num7;
|
|
int num8 = 0;
|
|
array2[3] = num3;
|
|
array2[6] = num8;
|
|
int num9 = 0;
|
|
array2[7] = num3;
|
|
array2[10] = num9;
|
|
SparkleOutline.FFPHAMGDHHC = new AnimationCurve(array2);
|
|
}
|
|
|
|
// Token: 0x040084A8 RID: 33960
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40084A8")]
|
|
[SerializeField]
|
|
[OCIDFHDICIP(JIBDPHMGEGO.Self, false, false, false)]
|
|
private Tool tool;
|
|
|
|
// Token: 0x040084A9 RID: 33961
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40084A9")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
private VisibleInCamera visibleInCamera;
|
|
|
|
// Token: 0x040084AA RID: 33962
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40084AA")]
|
|
[SerializeField]
|
|
private float minSparklePeriod = 2f;
|
|
|
|
// Token: 0x040084AB RID: 33963
|
|
[FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x40084AB")]
|
|
[SerializeField]
|
|
private float maxSparklePeriod = 10f;
|
|
|
|
// Token: 0x040084AC RID: 33964
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40084AC")]
|
|
[SerializeField]
|
|
[FormerlySerializedAs("overrideMaterial")]
|
|
private Material overrideMaterialTemplate;
|
|
|
|
// Token: 0x040084AD RID: 33965
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40084AD")]
|
|
private Material CBFNKJFKEEE;
|
|
|
|
// Token: 0x040084AE RID: 33966
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40084AE")]
|
|
[SerializeField]
|
|
private MeshRenderer[] ignoredRenderers;
|
|
|
|
// Token: 0x040084AF RID: 33967
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x40084AF")]
|
|
private MACMLJJGBIM NJPHOAJLPMH;
|
|
|
|
// Token: 0x040084B0 RID: 33968
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40084B0")]
|
|
private Coroutine PKHIGOOPCMM;
|
|
|
|
// Token: 0x040084B1 RID: 33969
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x40084B1")]
|
|
private List<MeshRenderer> PCLMNNEHLNG;
|
|
|
|
// Token: 0x040084B2 RID: 33970
|
|
[Token(Token = "0x40084B2")]
|
|
private static readonly float IFFOAFFAHME;
|
|
|
|
// Token: 0x040084B3 RID: 33971
|
|
[Token(Token = "0x40084B3")]
|
|
private static readonly AnimationCurve MNEDKOHBCHO;
|
|
|
|
// Token: 0x040084B4 RID: 33972
|
|
[Token(Token = "0x40084B4")]
|
|
private static readonly AnimationCurve FFPHAMGDHHC;
|
|
}
|
|
}
|