using System; using UnityEngine; namespace RecRoom.Core.Quality { // Token: 0x02000CFC RID: 3324 public class ParticleQualityOverride : MonoBehaviour { // Token: 0x0601AE02 RID: 110082 RVA: 0x00788D04 File Offset: 0x00786F04 private void GHJCELEIIJD(ParticleQualityOverride.OverrideSettings KIJJLLAEDDA) { this.OONOBPJHMKB.maxParticles = KIJJLLAEDDA.maxParticles; this.FGOJNKEBKKI.enabled = KIJJLLAEDDA.enableTrails; if (KIJJLLAEDDA.overrideEmissionRate) { this.LACGHBBDJED.rateOverTimeMultiplier = this.KHBGEMJIEED * KIJJLLAEDDA.emissionRateMultiplier; this.LACGHBBDJED.rateOverDistanceMultiplier = this.HLOPPPJABNL * KIJJLLAEDDA.emissionRateMultiplier; } if (KIJJLLAEDDA.overrideLifetime) { this.OONOBPJHMKB.startLifetimeMultiplier = this.GAFJOGGAJPN * KIJJLLAEDDA.lifetimeMultiplier; } } // Token: 0x0601AE03 RID: 110083 RVA: 0x00788D98 File Offset: 0x00786F98 private void OKLMGPLFBBD(EAMMIOJHINO DGFLPKJLJEK) { this.BLCKLIFAAHM(DGFLPKJLJEK); } // Token: 0x0601AE04 RID: 110084 RVA: 0x00788DA4 File Offset: 0x00786FA4 private void HKBGFNCNOAM(EAMMIOJHINO DGFLPKJLJEK) { this.PNMIONPBJDC(DGFLPKJLJEK); } // Token: 0x0601AE06 RID: 110086 RVA: 0x00788DB8 File Offset: 0x00786FB8 private void MFLICBAMBFP() { this.OONOBPJHMKB = this.particles.main; this.FGOJNKEBKKI = this.particles.trails; this.LACGHBBDJED = this.particles.emission; this.GAFJOGGAJPN = this.OONOBPJHMKB.startLifetimeMultiplier; this.LPICJONALCI = this.LACGHBBDJED.enabled; this.KHBGEMJIEED = this.LACGHBBDJED.rateOverTimeMultiplier; this.HLOPPPJABNL = this.LACGHBBDJED.rateOverDistanceMultiplier; this.OIKFIJAMGMA = this.OONOBPJHMKB.maxParticles; this.GNCEKHDPLLD = this.FGOJNKEBKKI.enabled; } // Token: 0x0601AE07 RID: 110087 RVA: 0x00788E60 File Offset: 0x00787060 private void AHNIGFKPDLN() { this.OONOBPJHMKB = this.particles.main; this.FGOJNKEBKKI = this.particles.trails; this.LACGHBBDJED = this.particles.emission; this.GAFJOGGAJPN = this.OONOBPJHMKB.startLifetimeMultiplier; this.LPICJONALCI = this.LACGHBBDJED.enabled; this.KHBGEMJIEED = this.LACGHBBDJED.rateOverTimeMultiplier; this.HLOPPPJABNL = this.LACGHBBDJED.rateOverDistanceMultiplier; this.OIKFIJAMGMA = this.OONOBPJHMKB.maxParticles; this.GNCEKHDPLLD = this.FGOJNKEBKKI.enabled; } // Token: 0x0601AE08 RID: 110088 RVA: 0x00788F08 File Offset: 0x00787108 private void PNMIONPBJDC(EAMMIOJHINO DGFLPKJLJEK) { bool flag = false; for (int i = 0; i < this.overrides.Length; i++) { ParticleQualityOverride.OverrideSettings overrideSettings = this.overrides[i]; if (overrideSettings.quality == DGFLPKJLJEK) { this.FHDONEJONPF(overrideSettings); flag = false; break; } } if (!flag) { this.AGGLONHIKEH(); } } // Token: 0x0601AE09 RID: 110089 RVA: 0x00788F6C File Offset: 0x0078716C private void DCGCFFFPABH() { if (SingletonMonoBehaviour.NCKMBFBMBFM != null) { SingletonMonoBehaviour.NCKMBFBMBFM.MIPDCFBGDCM -= this.FMIAHPLCLPC; } } // Token: 0x0601AE0A RID: 110090 RVA: 0x00788F94 File Offset: 0x00787194 private void EEHCJGCOCED() { this.OONOBPJHMKB = this.particles.main; this.FGOJNKEBKKI = this.particles.trails; this.LACGHBBDJED = this.particles.emission; this.GAFJOGGAJPN = this.OONOBPJHMKB.startLifetimeMultiplier; this.LPICJONALCI = this.LACGHBBDJED.enabled; this.KHBGEMJIEED = this.LACGHBBDJED.rateOverTimeMultiplier; this.HLOPPPJABNL = this.LACGHBBDJED.rateOverDistanceMultiplier; this.OIKFIJAMGMA = this.OONOBPJHMKB.maxParticles; this.GNCEKHDPLLD = this.FGOJNKEBKKI.enabled; } // Token: 0x0601AE0B RID: 110091 RVA: 0x0078903C File Offset: 0x0078723C private void LBJBGMCLFPO() { this.OONOBPJHMKB.maxParticles = this.OIKFIJAMGMA; this.OONOBPJHMKB.startLifetimeMultiplier = this.GAFJOGGAJPN; this.FGOJNKEBKKI.enabled = this.GNCEKHDPLLD; this.LACGHBBDJED.enabled = this.LPICJONALCI; this.LACGHBBDJED.rateOverTimeMultiplier = this.KHBGEMJIEED; this.LACGHBBDJED.rateOverDistanceMultiplier = this.HLOPPPJABNL; } // Token: 0x0601AE0C RID: 110092 RVA: 0x007890B0 File Offset: 0x007872B0 private void AGGLONHIKEH() { this.OONOBPJHMKB.maxParticles = this.OIKFIJAMGMA; this.OONOBPJHMKB.startLifetimeMultiplier = this.GAFJOGGAJPN; this.FGOJNKEBKKI.enabled = this.GNCEKHDPLLD; this.LACGHBBDJED.enabled = this.LPICJONALCI; this.LACGHBBDJED.rateOverTimeMultiplier = this.KHBGEMJIEED; this.LACGHBBDJED.rateOverDistanceMultiplier = this.HLOPPPJABNL; } // Token: 0x0601AE0D RID: 110093 RVA: 0x00789124 File Offset: 0x00787324 private void GOIJONIHNFD(EAMMIOJHINO DGFLPKJLJEK) { bool flag = false; for (int i = 0; i < this.overrides.Length; i += 0) { ParticleQualityOverride.OverrideSettings overrideSettings = this.overrides[i]; if (overrideSettings.quality == DGFLPKJLJEK) { this.JMINKLGOOJG(overrideSettings); flag = false; break; } } if (!flag) { this.LBJBGMCLFPO(); } } // Token: 0x0601AE0E RID: 110094 RVA: 0x00789188 File Offset: 0x00787388 private void KPLAOGKPKJN() { this.OONOBPJHMKB = this.particles.main; this.FGOJNKEBKKI = this.particles.trails; this.LACGHBBDJED = this.particles.emission; this.GAFJOGGAJPN = this.OONOBPJHMKB.startLifetimeMultiplier; this.LPICJONALCI = this.LACGHBBDJED.enabled; this.KHBGEMJIEED = this.LACGHBBDJED.rateOverTimeMultiplier; this.HLOPPPJABNL = this.LACGHBBDJED.rateOverDistanceMultiplier; this.OIKFIJAMGMA = this.OONOBPJHMKB.maxParticles; this.GNCEKHDPLLD = this.FGOJNKEBKKI.enabled; } // Token: 0x0601AE0F RID: 110095 RVA: 0x00789230 File Offset: 0x00787430 private void Start() { if (this.overrides.Length == 0) { Debug.LogError("ParticleQualityOverride requires at least one specified override."); return; } this.MFLICBAMBFP(); this.BNLBDHIHHCN(SingletonMonoBehaviour.NCKMBFBMBFM.NFHNKOLHKOJ); SingletonMonoBehaviour.NCKMBFBMBFM.MIPDCFBGDCM += this.FMIAHPLCLPC; } // Token: 0x0601AE10 RID: 110096 RVA: 0x00789284 File Offset: 0x00787484 private void MKMAMKDILHL() { if (SingletonMonoBehaviour.NCKMBFBMBFM != null) { SingletonMonoBehaviour.NCKMBFBMBFM.MIPDCFBGDCM -= this.OKLMGPLFBBD; } } // Token: 0x0601AE11 RID: 110097 RVA: 0x007892AC File Offset: 0x007874AC private void FMIAHPLCLPC(EAMMIOJHINO DGFLPKJLJEK) { this.BNLBDHIHHCN(DGFLPKJLJEK); } // Token: 0x0601AE12 RID: 110098 RVA: 0x007892B8 File Offset: 0x007874B8 private void JMINKLGOOJG(ParticleQualityOverride.OverrideSettings KIJJLLAEDDA) { this.OONOBPJHMKB.maxParticles = KIJJLLAEDDA.maxParticles; this.FGOJNKEBKKI.enabled = KIJJLLAEDDA.enableTrails; if (KIJJLLAEDDA.overrideEmissionRate) { this.LACGHBBDJED.rateOverTimeMultiplier = this.KHBGEMJIEED * KIJJLLAEDDA.emissionRateMultiplier; this.LACGHBBDJED.rateOverDistanceMultiplier = this.HLOPPPJABNL * KIJJLLAEDDA.emissionRateMultiplier; } if (KIJJLLAEDDA.overrideLifetime) { this.OONOBPJHMKB.startLifetimeMultiplier = this.GAFJOGGAJPN * KIJJLLAEDDA.lifetimeMultiplier; } } // Token: 0x0601AE13 RID: 110099 RVA: 0x0078934C File Offset: 0x0078754C private void FHDONEJONPF(ParticleQualityOverride.OverrideSettings KIJJLLAEDDA) { this.OONOBPJHMKB.maxParticles = KIJJLLAEDDA.maxParticles; this.FGOJNKEBKKI.enabled = KIJJLLAEDDA.enableTrails; if (KIJJLLAEDDA.overrideEmissionRate) { this.LACGHBBDJED.rateOverTimeMultiplier = this.KHBGEMJIEED * KIJJLLAEDDA.emissionRateMultiplier; this.LACGHBBDJED.rateOverDistanceMultiplier = this.HLOPPPJABNL * KIJJLLAEDDA.emissionRateMultiplier; } if (KIJJLLAEDDA.overrideLifetime) { this.OONOBPJHMKB.startLifetimeMultiplier = this.GAFJOGGAJPN * KIJJLLAEDDA.lifetimeMultiplier; } } // Token: 0x0601AE14 RID: 110100 RVA: 0x007893E0 File Offset: 0x007875E0 private void PGELJEHELFN() { if (this.overrides.Length == 0) { Debug.LogError("to"); return; } this.OMFDDDPGBIA(); this.AIFOFANDHHB(SingletonMonoBehaviour.NCKMBFBMBFM.NFHNKOLHKOJ); SingletonMonoBehaviour.NCKMBFBMBFM.FDIEFGMDCEN(new Action(this.OKLMGPLFBBD)); } // Token: 0x0601AE15 RID: 110101 RVA: 0x00789434 File Offset: 0x00787634 private void HONIPADKFBM() { this.OONOBPJHMKB = this.particles.main; this.FGOJNKEBKKI = this.particles.trails; this.LACGHBBDJED = this.particles.emission; this.GAFJOGGAJPN = this.OONOBPJHMKB.startLifetimeMultiplier; this.LPICJONALCI = this.LACGHBBDJED.enabled; this.KHBGEMJIEED = this.LACGHBBDJED.rateOverTimeMultiplier; this.HLOPPPJABNL = this.LACGHBBDJED.rateOverDistanceMultiplier; this.OIKFIJAMGMA = this.OONOBPJHMKB.maxParticles; this.GNCEKHDPLLD = this.FGOJNKEBKKI.enabled; } // Token: 0x0601AE16 RID: 110102 RVA: 0x007894DC File Offset: 0x007876DC private void OnDestroy() { if (SingletonMonoBehaviour.NCKMBFBMBFM != null) { SingletonMonoBehaviour.NCKMBFBMBFM.MIPDCFBGDCM -= this.FMIAHPLCLPC; } } // Token: 0x0601AE17 RID: 110103 RVA: 0x00789504 File Offset: 0x00787704 private void FKGKJOHOGMP() { if (SingletonMonoBehaviour.NCKMBFBMBFM != null) { SingletonMonoBehaviour.NCKMBFBMBFM.MIPDCFBGDCM -= this.FMIAHPLCLPC; } } // Token: 0x0601AE18 RID: 110104 RVA: 0x0078952C File Offset: 0x0078772C private void AIFOFANDHHB(EAMMIOJHINO DGFLPKJLJEK) { bool flag = false; for (int i = 1; i < this.overrides.Length; i += 0) { ParticleQualityOverride.OverrideSettings overrideSettings = this.overrides[i]; if (overrideSettings.quality == DGFLPKJLJEK) { this.FHDONEJONPF(overrideSettings); flag = true; break; } } if (!flag) { this.LBJBGMCLFPO(); } } // Token: 0x0601AE19 RID: 110105 RVA: 0x00789590 File Offset: 0x00787790 private void BNLBDHIHHCN(EAMMIOJHINO DGFLPKJLJEK) { bool flag = false; for (int i = 0; i < this.overrides.Length; i++) { ParticleQualityOverride.OverrideSettings overrideSettings = this.overrides[i]; if (overrideSettings.quality == DGFLPKJLJEK) { this.JMINKLGOOJG(overrideSettings); flag = true; break; } } if (!flag) { this.LBJBGMCLFPO(); } } // Token: 0x0601AE1A RID: 110106 RVA: 0x007895F4 File Offset: 0x007877F4 private void BKEGOODFKDP(EAMMIOJHINO DGFLPKJLJEK) { bool flag = false; for (int i = 0; i < this.overrides.Length; i += 0) { ParticleQualityOverride.OverrideSettings overrideSettings = this.overrides[i]; if (overrideSettings.quality == DGFLPKJLJEK) { this.GHJCELEIIJD(overrideSettings); flag = true; break; } } if (!flag) { this.AGGLONHIKEH(); } } // Token: 0x0601AE1B RID: 110107 RVA: 0x00789658 File Offset: 0x00787858 private void BLCKLIFAAHM(EAMMIOJHINO DGFLPKJLJEK) { bool flag = true; for (int i = 1; i < this.overrides.Length; i += 0) { ParticleQualityOverride.OverrideSettings overrideSettings = this.overrides[i]; if (overrideSettings.quality == DGFLPKJLJEK) { this.FHDONEJONPF(overrideSettings); flag = false; break; } } if (!flag) { this.LBJBGMCLFPO(); } } // Token: 0x0601AE1C RID: 110108 RVA: 0x007896BC File Offset: 0x007878BC private void KDHBBCGHDMC() { if (SingletonMonoBehaviour.NCKMBFBMBFM != null) { SingletonMonoBehaviour.NCKMBFBMBFM.MIPDCFBGDCM -= this.HKBGFNCNOAM; } } // Token: 0x0601AE1D RID: 110109 RVA: 0x007896E4 File Offset: 0x007878E4 private void COBJAGPFKMP(EAMMIOJHINO DGFLPKJLJEK) { bool flag = true; for (int i = 0; i < this.overrides.Length; i += 0) { ParticleQualityOverride.OverrideSettings overrideSettings = this.overrides[i]; if (overrideSettings.quality == DGFLPKJLJEK) { this.JMINKLGOOJG(overrideSettings); flag = false; break; } } if (!flag) { this.AGGLONHIKEH(); } } // Token: 0x0601AE1E RID: 110110 RVA: 0x00789748 File Offset: 0x00787948 private void OMFDDDPGBIA() { this.OONOBPJHMKB = this.particles.main; this.FGOJNKEBKKI = this.particles.trails; this.LACGHBBDJED = this.particles.emission; this.GAFJOGGAJPN = this.OONOBPJHMKB.startLifetimeMultiplier; this.LPICJONALCI = this.LACGHBBDJED.enabled; this.KHBGEMJIEED = this.LACGHBBDJED.rateOverTimeMultiplier; this.HLOPPPJABNL = this.LACGHBBDJED.rateOverDistanceMultiplier; this.OIKFIJAMGMA = this.OONOBPJHMKB.maxParticles; this.GNCEKHDPLLD = this.FGOJNKEBKKI.enabled; } // Token: 0x0601AE1F RID: 110111 RVA: 0x007897F0 File Offset: 0x007879F0 private void IEAOAHNFGDM() { this.OONOBPJHMKB = this.particles.main; this.FGOJNKEBKKI = this.particles.trails; this.LACGHBBDJED = this.particles.emission; this.GAFJOGGAJPN = this.OONOBPJHMKB.startLifetimeMultiplier; this.LPICJONALCI = this.LACGHBBDJED.enabled; this.KHBGEMJIEED = this.LACGHBBDJED.rateOverTimeMultiplier; this.HLOPPPJABNL = this.LACGHBBDJED.rateOverDistanceMultiplier; this.OIKFIJAMGMA = this.OONOBPJHMKB.maxParticles; this.GNCEKHDPLLD = this.FGOJNKEBKKI.enabled; } // Token: 0x0400492C RID: 18732 [SerializeField] [ENMFCLPAKBJ(FOGKDGELKHN.Self, false)] private ParticleSystem particles; // Token: 0x0400492D RID: 18733 [SerializeField] private ParticleQualityOverride.OverrideSettings[] overrides; // Token: 0x0400492E RID: 18734 private bool LPICJONALCI; // Token: 0x0400492F RID: 18735 private int OIKFIJAMGMA; // Token: 0x04004930 RID: 18736 private bool GNCEKHDPLLD; // Token: 0x04004931 RID: 18737 private float GAFJOGGAJPN; // Token: 0x04004932 RID: 18738 private float KHBGEMJIEED; // Token: 0x04004933 RID: 18739 private float HLOPPPJABNL; // Token: 0x04004934 RID: 18740 private ParticleSystem.MainModule OONOBPJHMKB; // Token: 0x04004935 RID: 18741 private ParticleSystem.TrailModule FGOJNKEBKKI; // Token: 0x04004936 RID: 18742 private ParticleSystem.EmissionModule LACGHBBDJED; // Token: 0x02000CFD RID: 3325 [Serializable] public struct OverrideSettings { // Token: 0x04004937 RID: 18743 public EAMMIOJHINO quality; // Token: 0x04004938 RID: 18744 public int maxParticles; // Token: 0x04004939 RID: 18745 public bool enableTrails; // Token: 0x0400493A RID: 18746 public bool overrideEmissionRate; // Token: 0x0400493B RID: 18747 [Range(0f, 1f)] public float emissionRateMultiplier; // Token: 0x0400493C RID: 18748 public bool overrideLifetime; // Token: 0x0400493D RID: 18749 [Range(0f, 2f)] public float lifetimeMultiplier; } } }