234 lines
8.7 KiB
C#
234 lines
8.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Async;
|
|
using RecRoom.Core;
|
|
using RecRoom.Core.Pools;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x0200020B RID: 523
|
|
[Token(Token = "0x200020B")]
|
|
[StructLayout(3)]
|
|
public class SFXAudioSource : MonoBehaviour
|
|
{
|
|
// Token: 0x17000274 RID: 628
|
|
// (get) Token: 0x06001090 RID: 4240 RVA: 0x00047E04 File Offset: 0x00046004
|
|
// (set) Token: 0x06001091 RID: 4241 RVA: 0x00047E18 File Offset: 0x00046018
|
|
[Token(Token = "0x17000274")]
|
|
public Transform HJMFBBOMFJC
|
|
{
|
|
[Token(Token = "0x6001090")]
|
|
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
|
get;
|
|
[Token(Token = "0x6001091")]
|
|
[Address(RVA = "0x3C1290", Offset = "0x3BFC90", VA = "0x1803C1290")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000275 RID: 629
|
|
// (get) Token: 0x06001092 RID: 4242 RVA: 0x00047E2C File Offset: 0x0004602C
|
|
[Token(Token = "0x17000275")]
|
|
public AudioSource KHKHBACPMCC
|
|
{
|
|
[Token(Token = "0x6001092")]
|
|
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
|
get
|
|
{
|
|
return this._audioSource;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001093 RID: 4243 RVA: 0x00047E40 File Offset: 0x00046040
|
|
[Token(Token = "0x6001093")]
|
|
[Address(RVA = "0x1288DF0", Offset = "0x12877F0", VA = "0x181288DF0")]
|
|
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: 0x06001094 RID: 4244 RVA: 0x00047EC4 File Offset: 0x000460C4
|
|
[Token(Token = "0x6001094")]
|
|
[Address(RVA = "0x1289280", Offset = "0x1287C80", VA = "0x181289280")]
|
|
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: 0x06001095 RID: 4245 RVA: 0x00047F0C File Offset: 0x0004610C
|
|
[Token(Token = "0x6001095")]
|
|
[Address(RVA = "0x1288F00", Offset = "0x1287900", VA = "0x181288F00")]
|
|
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.Instance;
|
|
SFXAudioSource.PKJMBNLKLOD pkjmbnlklod;
|
|
pkjmbnlklod.System.IDisposable.Dispose();
|
|
pkjmbnlklod.<>1__state = (int)((ulong)0L);
|
|
pkjmbnlklod.<>4__this = this;
|
|
ISchedulerPromise schedulerPromise = instance.Run(this, pkjmbnlklod);
|
|
this.BGAIBIBPFDO = schedulerPromise;
|
|
}
|
|
|
|
// Token: 0x06001096 RID: 4246 RVA: 0x00047FA8 File Offset: 0x000461A8
|
|
[Token(Token = "0x6001096")]
|
|
[Address(RVA = "0x1288DA0", Offset = "0x12877A0", VA = "0x181288DA0")]
|
|
public void Loop()
|
|
{
|
|
if (this._audioSource.isPlaying)
|
|
{
|
|
this._audioSource.loop = true;
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001097 RID: 4247 RVA: 0x00047FD8 File Offset: 0x000461D8
|
|
[Token(Token = "0x6001097")]
|
|
[Address(RVA = "0x12891E0", Offset = "0x1287BE0", VA = "0x1812891E0")]
|
|
public void Scrub(float MOPKOPOKKEE)
|
|
{
|
|
if (this._audioSource.isPlaying)
|
|
{
|
|
float time = this._audioSource.time;
|
|
this._audioSource.time = MOPKOPOKKEE;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001098 RID: 4248 RVA: 0x00048014 File Offset: 0x00046214
|
|
[Token(Token = "0x6001098")]
|
|
[Address(RVA = "0x1289240", Offset = "0x1287C40", VA = "0x181289240")]
|
|
public void Stop()
|
|
{
|
|
this._audioSource.Stop();
|
|
AudioSource audioSource = this._audioSource;
|
|
int num = 0;
|
|
audioSource.clip = num;
|
|
}
|
|
|
|
// Token: 0x06001099 RID: 4249 RVA: 0x00048044 File Offset: 0x00046244
|
|
[Token(Token = "0x6001099")]
|
|
[Address(RVA = "0x1288D50", Offset = "0x1287750", VA = "0x181288D50")]
|
|
public void CancelAudioSourceRelease()
|
|
{
|
|
if (this.BGAIBIBPFDO != 0)
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600109A RID: 4250 RVA: 0x0004805C File Offset: 0x0004625C
|
|
[Token(Token = "0x600109A")]
|
|
[Address(RVA = "0x1289130", Offset = "0x1287B30", VA = "0x181289130")]
|
|
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: 0x0600109B RID: 4251 RVA: 0x000480B4 File Offset: 0x000462B4
|
|
[Token(Token = "0x600109B")]
|
|
[Address(RVA = "0x12890D0", Offset = "0x1287AD0", VA = "0x1812890D0")]
|
|
public IEnumerator<ISchedule> ReleaseAfterPlaying()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600109B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<RecRoom.Core.ISchedule> SFXAudioSource::ReleaseAfterPlaying()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(PKJMBNLKLOD::System.IDisposable.Dispose, ldloc:PKJMBNLKLOD(var_0))
|
|
stfld:int32(PKJMBNLKLOD::<>1__state, ldloc:PKJMBNLKLOD(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:SFXAudioSource(PKJMBNLKLOD::<>4__this, ldloc:PKJMBNLKLOD(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: 0x0600109C RID: 4252 RVA: 0x000480D8 File Offset: 0x000462D8
|
|
[Token(Token = "0x600109C")]
|
|
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
|
public SFXAudioSource()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000D2D RID: 3373
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000D2D")]
|
|
public bool Is3DSFX;
|
|
|
|
// Token: 0x04000D2E RID: 3374
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000D2E")]
|
|
private Action<SFXAudioSource> JPNNFKGOANC;
|
|
|
|
// Token: 0x04000D2F RID: 3375
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000D2F")]
|
|
private ICancelablePromise BGAIBIBPFDO;
|
|
|
|
// Token: 0x04000D31 RID: 3377
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000D31")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private AudioSource _audioSource;
|
|
}
|