351 lines
15 KiB
C#
351 lines
15 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core;
|
|
using RecRoom.Core.Pools;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020001F8 RID: 504
|
|
[Token(Token = "0x20001F8")]
|
|
public class SFXAudioSource : MonoBehaviour
|
|
{
|
|
// Token: 0x17000260 RID: 608
|
|
// (get) Token: 0x06001012 RID: 4114 RVA: 0x00045CC8 File Offset: 0x00043EC8
|
|
// (set) Token: 0x06001013 RID: 4115 RVA: 0x00045CDC File Offset: 0x00043EDC
|
|
[Token(Token = "0x17000260")]
|
|
public Transform HJMFBBOMFJC
|
|
{
|
|
[Token(Token = "0x6001012")]
|
|
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
|
get;
|
|
[Token(Token = "0x6001013")]
|
|
[Address(RVA = "0x415830", Offset = "0x414830", VA = "0x180415830")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000261 RID: 609
|
|
// (get) Token: 0x06001014 RID: 4116 RVA: 0x00045CF0 File Offset: 0x00043EF0
|
|
[Token(Token = "0x17000261")]
|
|
public AudioSource KHKHBACPMCC
|
|
{
|
|
[Token(Token = "0x6001014")]
|
|
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
|
get
|
|
{
|
|
return this._audioSource;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001015 RID: 4117 RVA: 0x00045D04 File Offset: 0x00043F04
|
|
[Token(Token = "0x6001015")]
|
|
[Address(RVA = "0x12515A0", Offset = "0x12505A0", VA = "0x1812515A0")]
|
|
private void Awake()
|
|
{
|
|
JIMCFNAHGJE jimcfnahgje;
|
|
this.IHAFPFJCHII = jimcfnahgje;
|
|
}
|
|
|
|
// Token: 0x06001016 RID: 4118 RVA: 0x00045D20 File Offset: 0x00043F20
|
|
[Token(Token = "0x6001016")]
|
|
[Address(RVA = "0x1251B60", Offset = "0x1250B60", VA = "0x181251B60")]
|
|
private void OnDisable()
|
|
{
|
|
if (this.BGAIBIBPFDO != 0)
|
|
{
|
|
}
|
|
AudioSource audioSource = this._audioSource;
|
|
this.<NDNEPMGFCHA>k__BackingField = (ulong)0L;
|
|
int num = 0;
|
|
if (audioSource != num)
|
|
{
|
|
AudioSource audioSource2 = this._audioSource;
|
|
int num2 = 0;
|
|
audioSource2.loop = num2 != 0;
|
|
AudioClip clip = this._audioSource.clip;
|
|
int num3 = 0;
|
|
if (clip != num3)
|
|
{
|
|
this._audioSource.Stop();
|
|
AudioSource audioSource3 = this._audioSource;
|
|
int num4 = 0;
|
|
audioSource3.clip = num4;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001017 RID: 4119 RVA: 0x00045DA4 File Offset: 0x00043FA4
|
|
[Token(Token = "0x6001017")]
|
|
[Address(RVA = "0x1252100", Offset = "0x1251100", VA = "0x181252100")]
|
|
private void Update()
|
|
{
|
|
if (this.Is3DSFX)
|
|
{
|
|
Transform transform = this.<NDNEPMGFCHA>k__BackingField;
|
|
int num = 0;
|
|
if (transform != num)
|
|
{
|
|
Transform transform2 = base.transform;
|
|
Transform transform3 = this.<NDNEPMGFCHA>k__BackingField;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001018 RID: 4120 RVA: 0x00045DEC File Offset: 0x00043FEC
|
|
[Token(Token = "0x6001018")]
|
|
[Address(RVA = "0x1251D90", Offset = "0x1250D90", VA = "0x181251D90")]
|
|
public void Play(AudioClip OAMCCIEIHAP, float DKDOBJOOGLC, Vector3 KPLDEODOJID, float JKKIKCCEGDM, float HKJIFGGNAPF, AudioRolloff GHNKEONEEFM, [Optional] Action<SFXAudioSource> ABPNJBELDKK)
|
|
{
|
|
Transform transform = base.transform;
|
|
float z = KPLDEODOJID.z;
|
|
this._audioSource.clip = OAMCCIEIHAP;
|
|
this._audioSource.volume = DKDOBJOOGLC;
|
|
this.JPNNFKGOANC = 0;
|
|
AudioSource audioSource = this._audioSource;
|
|
if (this.Is3DSFX)
|
|
{
|
|
AudioSource audioSource2 = this._audioSource;
|
|
}
|
|
this.CGAGMEPMANK();
|
|
Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
SFXAudioSource.MPKCPHBIANI mpkcphbiani;
|
|
mpkcphbiani.System.IDisposable.Dispose();
|
|
mpkcphbiani.<>1__state = (int)((ulong)0L);
|
|
mpkcphbiani.<>4__this = this;
|
|
KFBABPAPIMB kfbabpapimb = instance.Run(this, mpkcphbiani);
|
|
this.BGAIBIBPFDO = kfbabpapimb;
|
|
}
|
|
|
|
// Token: 0x06001019 RID: 4121 RVA: 0x00045E84 File Offset: 0x00044084
|
|
[Token(Token = "0x6001019")]
|
|
[Address(RVA = "0x1251C70", Offset = "0x1250C70", VA = "0x181251C70")]
|
|
public Task PlayAsync(AudioClip OAMCCIEIHAP, SFXAudioSource.GOHCEDIKCDM HDLOOKJBKAH, CancellationToken NDAAKGFBPKE)
|
|
{
|
|
Task task;
|
|
return task;
|
|
}
|
|
|
|
// Token: 0x0600101A RID: 4122 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600101A")]
|
|
[Address(RVA = "0x1251660", Offset = "0x1250660", VA = "0x181251660")]
|
|
private void CGAGMEPMANK()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600101B RID: 4123 RVA: 0x00045E98 File Offset: 0x00044098
|
|
[Token(Token = "0x600101B")]
|
|
[Address(RVA = "0x1251B10", Offset = "0x1250B10", VA = "0x181251B10")]
|
|
public void Loop()
|
|
{
|
|
if (this._audioSource.isPlaying)
|
|
{
|
|
this._audioSource.loop = true;
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600101C RID: 4124 RVA: 0x00045EC8 File Offset: 0x000440C8
|
|
[Token(Token = "0x600101C")]
|
|
[Address(RVA = "0x1252060", Offset = "0x1251060", VA = "0x181252060")]
|
|
public void Scrub(float MOPKOPOKKEE)
|
|
{
|
|
if (this._audioSource.isPlaying)
|
|
{
|
|
float time = this._audioSource.time;
|
|
this._audioSource.time = MOPKOPOKKEE;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600101D RID: 4125 RVA: 0x00045F04 File Offset: 0x00044104
|
|
[Token(Token = "0x600101D")]
|
|
[Address(RVA = "0x12520C0", Offset = "0x12510C0", VA = "0x1812520C0")]
|
|
public void Stop()
|
|
{
|
|
this._audioSource.Stop();
|
|
AudioSource audioSource = this._audioSource;
|
|
int num = 0;
|
|
audioSource.clip = num;
|
|
}
|
|
|
|
// Token: 0x0600101E RID: 4126 RVA: 0x00045F34 File Offset: 0x00044134
|
|
[Token(Token = "0x600101E")]
|
|
[Address(RVA = "0x1251AC0", Offset = "0x1250AC0", VA = "0x181251AC0")]
|
|
public void CancelAudioSourceRelease()
|
|
{
|
|
if (this.BGAIBIBPFDO != 0)
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600101F RID: 4127 RVA: 0x00045F4C File Offset: 0x0004414C
|
|
[Token(Token = "0x600101F")]
|
|
[Address(RVA = "0x1251FB0", Offset = "0x1250FB0", VA = "0x181251FB0")]
|
|
public void Release()
|
|
{
|
|
AudioSource audioSource = this._audioSource;
|
|
this.<NDNEPMGFCHA>k__BackingField = (ulong)0L;
|
|
int num = 0;
|
|
audioSource.loop = num != 0;
|
|
bool flag = GlobalPool.ONCPNMDGGKG.Release<SFXAudioSource>(this);
|
|
Action<SFXAudioSource> jpnnfkgoanc = this.JPNNFKGOANC;
|
|
if (jpnnfkgoanc != 0)
|
|
{
|
|
jpnnfkgoanc(this);
|
|
}
|
|
this.JPNNFKGOANC = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x06001020 RID: 4128 RVA: 0x00045FA4 File Offset: 0x000441A4
|
|
[Token(Token = "0x6001020")]
|
|
[Address(RVA = "0x1251F50", Offset = "0x1250F50", VA = "0x181251F50")]
|
|
public IEnumerator<KENFJGFMIPM> ReleaseAfterPlaying()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001020)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<KENFJGFMIPM> SFXAudioSource::ReleaseAfterPlaying()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(MPKCPHBIANI::System.IDisposable.Dispose, ldloc:MPKCPHBIANI(var_0))
|
|
stfld:int32(MPKCPHBIANI::<>1__state, ldloc:MPKCPHBIANI(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:SFXAudioSource(MPKCPHBIANI::<>4__this, ldloc:MPKCPHBIANI(var_0), ldloc:SFXAudioSource(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: 0x06001021 RID: 4129 RVA: 0x00045FC8 File Offset: 0x000441C8
|
|
[Token(Token = "0x6001021")]
|
|
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
|
public SFXAudioSource()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000CC1 RID: 3265
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000CC1")]
|
|
public bool Is3DSFX;
|
|
|
|
// Token: 0x04000CC2 RID: 3266
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000CC2")]
|
|
private Action<SFXAudioSource> JPNNFKGOANC;
|
|
|
|
// Token: 0x04000CC3 RID: 3267
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000CC3")]
|
|
private CDJFFFCFLMF BGAIBIBPFDO;
|
|
|
|
// Token: 0x04000CC5 RID: 3269
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000CC5")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
private AudioSource _audioSource;
|
|
|
|
// Token: 0x04000CC6 RID: 3270
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000CC6")]
|
|
private JIMCFNAHGJE IHAFPFJCHII;
|
|
|
|
// Token: 0x04000CC7 RID: 3271
|
|
[Token(Token = "0x4000CC7")]
|
|
private const string BJFHFEPEEBE = "SafePlaySFXAudioSourceSounds";
|
|
|
|
// Token: 0x020001F9 RID: 505
|
|
[Token(Token = "0x20001F9")]
|
|
public struct GOHCEDIKCDM
|
|
{
|
|
// Token: 0x17000262 RID: 610
|
|
// (get) Token: 0x06001022 RID: 4130 RVA: 0x00045FDC File Offset: 0x000441DC
|
|
[Token(Token = "0x17000262")]
|
|
public float HIPMJPMKHLF
|
|
{
|
|
[Token(Token = "0x6001022")]
|
|
[Address(RVA = "0x124A060", Offset = "0x1249060", VA = "0x18124A060")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001022)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single SFXAudioSource/GOHCEDIKCDM::ELONCNNLBBM()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_00:
|
|
brtrue(IL_00, ceq:bool(ldfld:valuetype [mscorlib]System.Nullable`1<float32>(GOHCEDIKCDM::POJACKKBHAG, ldloc:valuetype SFXAudioSource/GOHCEDIKCDM&(this)), ldc.i4:int32[exp:valuetype [mscorlib]System.Nullable`1<float32>](0)))
|
|
}
|
|
|
|
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
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: 0x04000CC8 RID: 3272
|
|
[Token(Token = "0x4000CC8")]
|
|
private const float MJJNHINFGOM = 1f;
|
|
|
|
// Token: 0x04000CC9 RID: 3273
|
|
[Token(Token = "0x4000CC9")]
|
|
private const float OODIDMIIIBE = 1f;
|
|
|
|
// Token: 0x04000CCA RID: 3274
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4000CCA")]
|
|
public float? NFNKDJHOJME;
|
|
|
|
// Token: 0x04000CCB RID: 3275
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4000CCB")]
|
|
public float? POJACKKBHAG;
|
|
|
|
// Token: 0x04000CCC RID: 3276
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000CCC")]
|
|
public Vector3 FEDGOFKEGEF;
|
|
|
|
// Token: 0x04000CCD RID: 3277
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000CCD")]
|
|
public Transform HJMFBBOMFJC;
|
|
|
|
// Token: 0x04000CCE RID: 3278
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000CCE")]
|
|
public AudioRolloff AOKNLGDPBMG;
|
|
|
|
// Token: 0x04000CCF RID: 3279
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000CCF")]
|
|
public float CIKMGKIELHD;
|
|
|
|
// Token: 0x04000CD0 RID: 3280
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x4000CD0")]
|
|
public float DDNKMDNPDKI;
|
|
}
|
|
}
|