331 lines
9.9 KiB
C#
331 lines
9.9 KiB
C#
using System;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000AB2 RID: 2738
|
|
[Serializable]
|
|
public class AudioRolloff
|
|
{
|
|
// Token: 0x06014F64 RID: 85860 RVA: 0x005DD87C File Offset: 0x005DBA7C
|
|
public void NIPGLOKOGPI(AudioSource IMBEAPMCGGF)
|
|
{
|
|
this.rolloffMode = IMBEAPMCGGF.rolloffMode;
|
|
this.minDistance = IMBEAPMCGGF.minDistance;
|
|
this.maxDistance = IMBEAPMCGGF.maxDistance;
|
|
if (this.rolloffMode == AudioRolloffMode.Custom)
|
|
{
|
|
this.customCurve = IMBEAPMCGGF.GetCustomCurve(AudioSourceCurveType.CustomRolloff);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F65 RID: 85861 RVA: 0x005DD8BC File Offset: 0x005DBABC
|
|
public void OKIIEIOCEFB(AudioSource IMBEAPMCGGF)
|
|
{
|
|
if (this.IsActive)
|
|
{
|
|
IMBEAPMCGGF.rolloffMode = this.rolloffMode;
|
|
IMBEAPMCGGF.minDistance = this.minDistance;
|
|
IMBEAPMCGGF.maxDistance = this.maxDistance;
|
|
if (this.rolloffMode == AudioRolloffMode.Custom)
|
|
{
|
|
IMBEAPMCGGF.SetCustomCurve(AudioSourceCurveType.CustomRolloff, this.customCurve);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F66 RID: 85862 RVA: 0x005DD914 File Offset: 0x005DBB14
|
|
public void EPFAGMAECJH(AudioSource IMBEAPMCGGF)
|
|
{
|
|
if (this.IsActive)
|
|
{
|
|
IMBEAPMCGGF.rolloffMode = this.rolloffMode;
|
|
IMBEAPMCGGF.minDistance = this.minDistance;
|
|
IMBEAPMCGGF.maxDistance = this.maxDistance;
|
|
if (this.rolloffMode == AudioRolloffMode.Custom)
|
|
{
|
|
IMBEAPMCGGF.SetCustomCurve(AudioSourceCurveType.CustomRolloff, this.customCurve);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F67 RID: 85863 RVA: 0x005DD96C File Offset: 0x005DBB6C
|
|
public void JICHFPMCEOL(AudioSource IMBEAPMCGGF)
|
|
{
|
|
if (this.IsActive)
|
|
{
|
|
IMBEAPMCGGF.rolloffMode = this.rolloffMode;
|
|
IMBEAPMCGGF.minDistance = this.minDistance;
|
|
IMBEAPMCGGF.maxDistance = this.maxDistance;
|
|
if (this.rolloffMode == (AudioRolloffMode)8)
|
|
{
|
|
IMBEAPMCGGF.SetCustomCurve(AudioSourceCurveType.SpatialBlend, this.customCurve);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F68 RID: 85864 RVA: 0x005DD9C4 File Offset: 0x005DBBC4
|
|
public void HAAGPHDLLJJ(AudioSource IMBEAPMCGGF)
|
|
{
|
|
if (this.IsActive)
|
|
{
|
|
IMBEAPMCGGF.rolloffMode = this.rolloffMode;
|
|
IMBEAPMCGGF.minDistance = this.minDistance;
|
|
IMBEAPMCGGF.maxDistance = this.maxDistance;
|
|
if (this.rolloffMode == (AudioRolloffMode)6)
|
|
{
|
|
IMBEAPMCGGF.SetCustomCurve(AudioSourceCurveType.CustomRolloff, this.customCurve);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F69 RID: 85865 RVA: 0x005DDA1C File Offset: 0x005DBC1C
|
|
public void KDIEKDPKEIM(AudioSource IMBEAPMCGGF)
|
|
{
|
|
if (this.IsActive)
|
|
{
|
|
IMBEAPMCGGF.rolloffMode = this.rolloffMode;
|
|
IMBEAPMCGGF.minDistance = this.minDistance;
|
|
IMBEAPMCGGF.maxDistance = this.maxDistance;
|
|
if (this.rolloffMode == AudioRolloffMode.Custom)
|
|
{
|
|
IMBEAPMCGGF.SetCustomCurve(AudioSourceCurveType.CustomRolloff, this.customCurve);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F6A RID: 85866 RVA: 0x005DDA74 File Offset: 0x005DBC74
|
|
public void FNBCIICEKAI(AudioSource IMBEAPMCGGF)
|
|
{
|
|
this.rolloffMode = IMBEAPMCGGF.rolloffMode;
|
|
this.minDistance = IMBEAPMCGGF.minDistance;
|
|
this.maxDistance = IMBEAPMCGGF.maxDistance;
|
|
if (this.rolloffMode == (AudioRolloffMode)6)
|
|
{
|
|
this.customCurve = IMBEAPMCGGF.GetCustomCurve(AudioSourceCurveType.SpatialBlend);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F6B RID: 85867 RVA: 0x005DDAB4 File Offset: 0x005DBCB4
|
|
public void NFGIFAKICHM(AudioSource IMBEAPMCGGF)
|
|
{
|
|
this.rolloffMode = IMBEAPMCGGF.rolloffMode;
|
|
this.minDistance = IMBEAPMCGGF.minDistance;
|
|
this.maxDistance = IMBEAPMCGGF.maxDistance;
|
|
if (this.rolloffMode == (AudioRolloffMode)3)
|
|
{
|
|
this.customCurve = IMBEAPMCGGF.GetCustomCurve(AudioSourceCurveType.CustomRolloff);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F6C RID: 85868 RVA: 0x005DDAF4 File Offset: 0x005DBCF4
|
|
public AudioRolloff(AudioSource IMBEAPMCGGF)
|
|
{
|
|
this.CPIBGJLHLBL(IMBEAPMCGGF);
|
|
this.IsActive = true;
|
|
}
|
|
|
|
// Token: 0x06014F6D RID: 85869 RVA: 0x005DDB20 File Offset: 0x005DBD20
|
|
public void GFGAKGBBMDL(AudioSource IMBEAPMCGGF)
|
|
{
|
|
if (this.IsActive)
|
|
{
|
|
IMBEAPMCGGF.rolloffMode = this.rolloffMode;
|
|
IMBEAPMCGGF.minDistance = this.minDistance;
|
|
IMBEAPMCGGF.maxDistance = this.maxDistance;
|
|
if (this.rolloffMode == (AudioRolloffMode)3)
|
|
{
|
|
IMBEAPMCGGF.SetCustomCurve(AudioSourceCurveType.SpatialBlend, this.customCurve);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F6E RID: 85870 RVA: 0x005DDB78 File Offset: 0x005DBD78
|
|
public void HOBPEFFOGAM(AudioSource IMBEAPMCGGF)
|
|
{
|
|
this.rolloffMode = IMBEAPMCGGF.rolloffMode;
|
|
this.minDistance = IMBEAPMCGGF.minDistance;
|
|
this.maxDistance = IMBEAPMCGGF.maxDistance;
|
|
if (this.rolloffMode == AudioRolloffMode.Logarithmic)
|
|
{
|
|
this.customCurve = IMBEAPMCGGF.GetCustomCurve(AudioSourceCurveType.SpatialBlend);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F6F RID: 85871 RVA: 0x005DDBB8 File Offset: 0x005DBDB8
|
|
public void DMOGOGMGLKB(AudioSource IMBEAPMCGGF)
|
|
{
|
|
this.rolloffMode = IMBEAPMCGGF.rolloffMode;
|
|
this.minDistance = IMBEAPMCGGF.minDistance;
|
|
this.maxDistance = IMBEAPMCGGF.maxDistance;
|
|
if (this.rolloffMode == (AudioRolloffMode)3)
|
|
{
|
|
this.customCurve = IMBEAPMCGGF.GetCustomCurve(AudioSourceCurveType.SpatialBlend);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F70 RID: 85872 RVA: 0x005DDBF8 File Offset: 0x005DBDF8
|
|
public void CPIBGJLHLBL(AudioSource IMBEAPMCGGF)
|
|
{
|
|
this.rolloffMode = IMBEAPMCGGF.rolloffMode;
|
|
this.minDistance = IMBEAPMCGGF.minDistance;
|
|
this.maxDistance = IMBEAPMCGGF.maxDistance;
|
|
if (this.rolloffMode == AudioRolloffMode.Custom)
|
|
{
|
|
this.customCurve = IMBEAPMCGGF.GetCustomCurve(AudioSourceCurveType.CustomRolloff);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F71 RID: 85873 RVA: 0x005DDC38 File Offset: 0x005DBE38
|
|
public void GKLMKELMFBK(AudioSource IMBEAPMCGGF)
|
|
{
|
|
if (this.IsActive)
|
|
{
|
|
IMBEAPMCGGF.rolloffMode = this.rolloffMode;
|
|
IMBEAPMCGGF.minDistance = this.minDistance;
|
|
IMBEAPMCGGF.maxDistance = this.maxDistance;
|
|
if (this.rolloffMode == (AudioRolloffMode)7)
|
|
{
|
|
IMBEAPMCGGF.SetCustomCurve(AudioSourceCurveType.SpatialBlend, this.customCurve);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F72 RID: 85874 RVA: 0x005DDC90 File Offset: 0x005DBE90
|
|
public void JBCCFJABNEJ(AudioSource IMBEAPMCGGF)
|
|
{
|
|
this.rolloffMode = IMBEAPMCGGF.rolloffMode;
|
|
this.minDistance = IMBEAPMCGGF.minDistance;
|
|
this.maxDistance = IMBEAPMCGGF.maxDistance;
|
|
if (this.rolloffMode == AudioRolloffMode.Logarithmic)
|
|
{
|
|
this.customCurve = IMBEAPMCGGF.GetCustomCurve(AudioSourceCurveType.CustomRolloff);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F73 RID: 85875 RVA: 0x005DDCD0 File Offset: 0x005DBED0
|
|
public void FEFFFPDBAFE(AudioSource IMBEAPMCGGF)
|
|
{
|
|
this.rolloffMode = IMBEAPMCGGF.rolloffMode;
|
|
this.minDistance = IMBEAPMCGGF.minDistance;
|
|
this.maxDistance = IMBEAPMCGGF.maxDistance;
|
|
if (this.rolloffMode == AudioRolloffMode.Linear)
|
|
{
|
|
this.customCurve = IMBEAPMCGGF.GetCustomCurve(AudioSourceCurveType.SpatialBlend);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F74 RID: 85876 RVA: 0x005DDD10 File Offset: 0x005DBF10
|
|
public void PNPCGOKNCIH(AudioSource IMBEAPMCGGF)
|
|
{
|
|
this.rolloffMode = IMBEAPMCGGF.rolloffMode;
|
|
this.minDistance = IMBEAPMCGGF.minDistance;
|
|
this.maxDistance = IMBEAPMCGGF.maxDistance;
|
|
if (this.rolloffMode == (AudioRolloffMode)4)
|
|
{
|
|
this.customCurve = IMBEAPMCGGF.GetCustomCurve(AudioSourceCurveType.SpatialBlend);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F75 RID: 85877 RVA: 0x005DDD50 File Offset: 0x005DBF50
|
|
public void LANGDOJABME(AudioSource IMBEAPMCGGF)
|
|
{
|
|
if (this.IsActive)
|
|
{
|
|
IMBEAPMCGGF.rolloffMode = this.rolloffMode;
|
|
IMBEAPMCGGF.minDistance = this.minDistance;
|
|
IMBEAPMCGGF.maxDistance = this.maxDistance;
|
|
if (this.rolloffMode == AudioRolloffMode.Logarithmic)
|
|
{
|
|
IMBEAPMCGGF.SetCustomCurve(AudioSourceCurveType.SpatialBlend, this.customCurve);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F76 RID: 85878 RVA: 0x005DDDA8 File Offset: 0x005DBFA8
|
|
public void BBPPOFINDMM(AudioSource IMBEAPMCGGF)
|
|
{
|
|
if (this.IsActive)
|
|
{
|
|
IMBEAPMCGGF.rolloffMode = this.rolloffMode;
|
|
IMBEAPMCGGF.minDistance = this.minDistance;
|
|
IMBEAPMCGGF.maxDistance = this.maxDistance;
|
|
if (this.rolloffMode == (AudioRolloffMode)4)
|
|
{
|
|
IMBEAPMCGGF.SetCustomCurve(AudioSourceCurveType.SpatialBlend, this.customCurve);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F77 RID: 85879 RVA: 0x005DDE00 File Offset: 0x005DC000
|
|
public void ABFKPBKDAEN(AudioSource IMBEAPMCGGF)
|
|
{
|
|
if (this.IsActive)
|
|
{
|
|
IMBEAPMCGGF.rolloffMode = this.rolloffMode;
|
|
IMBEAPMCGGF.minDistance = this.minDistance;
|
|
IMBEAPMCGGF.maxDistance = this.maxDistance;
|
|
if (this.rolloffMode == (AudioRolloffMode)4)
|
|
{
|
|
IMBEAPMCGGF.SetCustomCurve(AudioSourceCurveType.CustomRolloff, this.customCurve);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F78 RID: 85880 RVA: 0x005DDE58 File Offset: 0x005DC058
|
|
public void JKFEOMGFBDE(AudioSource IMBEAPMCGGF)
|
|
{
|
|
this.rolloffMode = IMBEAPMCGGF.rolloffMode;
|
|
this.minDistance = IMBEAPMCGGF.minDistance;
|
|
this.maxDistance = IMBEAPMCGGF.maxDistance;
|
|
if (this.rolloffMode == AudioRolloffMode.Linear)
|
|
{
|
|
this.customCurve = IMBEAPMCGGF.GetCustomCurve(AudioSourceCurveType.SpatialBlend);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F79 RID: 85881 RVA: 0x005DDE98 File Offset: 0x005DC098
|
|
public void EFENEHJLHJG(AudioSource IMBEAPMCGGF)
|
|
{
|
|
if (this.IsActive)
|
|
{
|
|
IMBEAPMCGGF.rolloffMode = this.rolloffMode;
|
|
IMBEAPMCGGF.minDistance = this.minDistance;
|
|
IMBEAPMCGGF.maxDistance = this.maxDistance;
|
|
if (this.rolloffMode == AudioRolloffMode.Linear)
|
|
{
|
|
IMBEAPMCGGF.SetCustomCurve(AudioSourceCurveType.SpatialBlend, this.customCurve);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014F7A RID: 85882 RVA: 0x005DDEF0 File Offset: 0x005DC0F0
|
|
public void LLHNCADNDGO(AudioSource IMBEAPMCGGF)
|
|
{
|
|
if (this.IsActive)
|
|
{
|
|
IMBEAPMCGGF.rolloffMode = this.rolloffMode;
|
|
IMBEAPMCGGF.minDistance = this.minDistance;
|
|
IMBEAPMCGGF.maxDistance = this.maxDistance;
|
|
if (this.rolloffMode == (AudioRolloffMode)5)
|
|
{
|
|
IMBEAPMCGGF.SetCustomCurve(AudioSourceCurveType.CustomRolloff, this.customCurve);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x040039E9 RID: 14825
|
|
public bool IsActive;
|
|
|
|
// Token: 0x040039EA RID: 14826
|
|
public AudioRolloffMode rolloffMode;
|
|
|
|
// Token: 0x040039EB RID: 14827
|
|
public float minDistance = 2f;
|
|
|
|
// Token: 0x040039EC RID: 14828
|
|
public float maxDistance = 100f;
|
|
|
|
// Token: 0x040039ED RID: 14829
|
|
[Tooltip("Only used if the rolloffMode is custom, this is the red volumetric curve.")]
|
|
public AnimationCurve customCurve;
|
|
}
|