328 lines
14 KiB
C#
328 lines
14 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: 0x06001006 RID: 4102 RVA: 0x0004597C File Offset: 0x00043B7C
|
|
// (set) Token: 0x06001007 RID: 4103 RVA: 0x00045990 File Offset: 0x00043B90
|
|
[Token(Token = "0x17000260")]
|
|
public Transform HJMFBBOMFJC
|
|
{
|
|
[Token(Token = "0x6001006")]
|
|
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
|
get;
|
|
[Token(Token = "0x6001007")]
|
|
[Address(RVA = "0x4437E0", Offset = "0x4425E0", VA = "0x1804437E0")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000261 RID: 609
|
|
// (get) Token: 0x06001008 RID: 4104 RVA: 0x000459A4 File Offset: 0x00043BA4
|
|
[Token(Token = "0x17000261")]
|
|
public AudioSource KHKHBACPMCC
|
|
{
|
|
[Token(Token = "0x6001008")]
|
|
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
|
get
|
|
{
|
|
return this._audioSource;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001009 RID: 4105 RVA: 0x000459B8 File Offset: 0x00043BB8
|
|
[Token(Token = "0x6001009")]
|
|
[Address(RVA = "0xA3B680", Offset = "0xA3A480", VA = "0x180A3B680")]
|
|
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: 0x0600100A RID: 4106 RVA: 0x00045A3C File Offset: 0x00043C3C
|
|
[Token(Token = "0x600100A")]
|
|
[Address(RVA = "0xA3BC40", Offset = "0xA3AA40", VA = "0x180A3BC40")]
|
|
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: 0x0600100B RID: 4107 RVA: 0x00045A84 File Offset: 0x00043C84
|
|
[Token(Token = "0x600100B")]
|
|
[Address(RVA = "0xA3B8B0", Offset = "0xA3A6B0", VA = "0x180A3B8B0")]
|
|
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._audioSource.Play();
|
|
Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
SFXAudioSource.FLEHNHBLFBE flehnhblfbe;
|
|
flehnhblfbe.System.IDisposable.Dispose();
|
|
flehnhblfbe.<>1__state = (int)((ulong)0L);
|
|
flehnhblfbe.<>4__this = this;
|
|
KFBABPAPIMB kfbabpapimb = instance.Run(this, flehnhblfbe);
|
|
this.BGAIBIBPFDO = kfbabpapimb;
|
|
}
|
|
|
|
// Token: 0x0600100C RID: 4108 RVA: 0x00045B20 File Offset: 0x00043D20
|
|
[Token(Token = "0x600100C")]
|
|
[Address(RVA = "0xA3B790", Offset = "0xA3A590", VA = "0x180A3B790")]
|
|
public Task PlayAsync(AudioClip OAMCCIEIHAP, SFXAudioSource.GOHCEDIKCDM HDLOOKJBKAH, CancellationToken NDAAKGFBPKE)
|
|
{
|
|
Task task;
|
|
return task;
|
|
}
|
|
|
|
// Token: 0x0600100D RID: 4109 RVA: 0x00045B34 File Offset: 0x00043D34
|
|
[Token(Token = "0x600100D")]
|
|
[Address(RVA = "0xA3B630", Offset = "0xA3A430", VA = "0x180A3B630")]
|
|
public void Loop()
|
|
{
|
|
if (this._audioSource.isPlaying)
|
|
{
|
|
this._audioSource.loop = true;
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600100E RID: 4110 RVA: 0x00045B64 File Offset: 0x00043D64
|
|
[Token(Token = "0x600100E")]
|
|
[Address(RVA = "0xA3BBA0", Offset = "0xA3A9A0", VA = "0x180A3BBA0")]
|
|
public void Scrub(float MOPKOPOKKEE)
|
|
{
|
|
if (this._audioSource.isPlaying)
|
|
{
|
|
float time = this._audioSource.time;
|
|
this._audioSource.time = MOPKOPOKKEE;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600100F RID: 4111 RVA: 0x00045BA0 File Offset: 0x00043DA0
|
|
[Token(Token = "0x600100F")]
|
|
[Address(RVA = "0xA3BC00", Offset = "0xA3AA00", VA = "0x180A3BC00")]
|
|
public void Stop()
|
|
{
|
|
this._audioSource.Stop();
|
|
AudioSource audioSource = this._audioSource;
|
|
int num = 0;
|
|
audioSource.clip = num;
|
|
}
|
|
|
|
// Token: 0x06001010 RID: 4112 RVA: 0x00045BD0 File Offset: 0x00043DD0
|
|
[Token(Token = "0x6001010")]
|
|
[Address(RVA = "0xA3B5E0", Offset = "0xA3A3E0", VA = "0x180A3B5E0")]
|
|
public void CancelAudioSourceRelease()
|
|
{
|
|
if (this.BGAIBIBPFDO != 0)
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001011 RID: 4113 RVA: 0x00045BE8 File Offset: 0x00043DE8
|
|
[Token(Token = "0x6001011")]
|
|
[Address(RVA = "0xA3BAE0", Offset = "0xA3A8E0", VA = "0x180A3BAE0")]
|
|
public void Release()
|
|
{
|
|
AudioSource audioSource = this._audioSource;
|
|
this.<NDNEPMGFCHA>k__BackingField = (ulong)0L;
|
|
int num = 0;
|
|
audioSource.loop = num != 0;
|
|
AudioSource audioSource2 = this._audioSource;
|
|
int num2 = 0;
|
|
audioSource2.clip = num2;
|
|
bool flag = GlobalPool.ONCPNMDGGKG.Release<SFXAudioSource>(this);
|
|
Action<SFXAudioSource> jpnnfkgoanc = this.JPNNFKGOANC;
|
|
if (jpnnfkgoanc != 0)
|
|
{
|
|
jpnnfkgoanc(this);
|
|
}
|
|
this.JPNNFKGOANC = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x06001012 RID: 4114 RVA: 0x00045C54 File Offset: 0x00043E54
|
|
[Token(Token = "0x6001012")]
|
|
[Address(RVA = "0xA3BA80", Offset = "0xA3A880", VA = "0x180A3BA80")]
|
|
public IEnumerator<KENFJGFMIPM> ReleaseAfterPlaying()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001012)
|
|
|
|
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(FLEHNHBLFBE::System.IDisposable.Dispose, ldloc:FLEHNHBLFBE(var_0))
|
|
stfld:int32(FLEHNHBLFBE::<>1__state, ldloc:FLEHNHBLFBE(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:SFXAudioSource(FLEHNHBLFBE::<>4__this, ldloc:FLEHNHBLFBE(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: 0x06001013 RID: 4115 RVA: 0x00045C78 File Offset: 0x00043E78
|
|
[Token(Token = "0x6001013")]
|
|
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
|
public SFXAudioSource()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000CB8 RID: 3256
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000CB8")]
|
|
public bool Is3DSFX;
|
|
|
|
// Token: 0x04000CB9 RID: 3257
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000CB9")]
|
|
private Action<SFXAudioSource> JPNNFKGOANC;
|
|
|
|
// Token: 0x04000CBA RID: 3258
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000CBA")]
|
|
private CDJFFFCFLMF BGAIBIBPFDO;
|
|
|
|
// Token: 0x04000CBC RID: 3260
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000CBC")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
private AudioSource _audioSource;
|
|
|
|
// Token: 0x020001F9 RID: 505
|
|
[Token(Token = "0x20001F9")]
|
|
public struct GOHCEDIKCDM
|
|
{
|
|
// Token: 0x17000262 RID: 610
|
|
// (get) Token: 0x06001014 RID: 4116 RVA: 0x00045C8C File Offset: 0x00043E8C
|
|
[Token(Token = "0x17000262")]
|
|
public float HIPMJPMKHLF
|
|
{
|
|
[Token(Token = "0x6001014")]
|
|
[Address(RVA = "0xA3A870", Offset = "0xA39670", VA = "0x180A3A870")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001014)
|
|
|
|
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: 0x04000CBD RID: 3261
|
|
[Token(Token = "0x4000CBD")]
|
|
private const float MJJNHINFGOM = 1f;
|
|
|
|
// Token: 0x04000CBE RID: 3262
|
|
[Token(Token = "0x4000CBE")]
|
|
private const float OODIDMIIIBE = 1f;
|
|
|
|
// Token: 0x04000CBF RID: 3263
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4000CBF")]
|
|
public float? NFNKDJHOJME;
|
|
|
|
// Token: 0x04000CC0 RID: 3264
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4000CC0")]
|
|
public float? POJACKKBHAG;
|
|
|
|
// Token: 0x04000CC1 RID: 3265
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000CC1")]
|
|
public Vector3 FEDGOFKEGEF;
|
|
|
|
// Token: 0x04000CC2 RID: 3266
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000CC2")]
|
|
public Transform HJMFBBOMFJC;
|
|
|
|
// Token: 0x04000CC3 RID: 3267
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000CC3")]
|
|
public AudioRolloff AOKNLGDPBMG;
|
|
|
|
// Token: 0x04000CC4 RID: 3268
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000CC4")]
|
|
public float CIKMGKIELHD;
|
|
|
|
// Token: 0x04000CC5 RID: 3269
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x4000CC5")]
|
|
public float DDNKMDNPDKI;
|
|
}
|
|
}
|