121 lines
4.0 KiB
C#
121 lines
4.0 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core.Pools;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020000BE RID: 190
|
|
[Token(Token = "0x20000BE")]
|
|
[StructLayout(3)]
|
|
public class WandProjectileParticles : PooledParticle
|
|
{
|
|
// Token: 0x06000519 RID: 1305 RVA: 0x0001A4F0 File Offset: 0x000186F0
|
|
[Token(Token = "0x6000519")]
|
|
[Address(RVA = "0x1A16F60", Offset = "0x1A15960", VA = "0x181A16F60", Slot = "4")]
|
|
protected override void Awake()
|
|
{
|
|
int num = 0;
|
|
base.Awake();
|
|
WandProjectileParticles.KJBMIGPHPCN[] array = new WandProjectileParticles.KJBMIGPHPCN[this.particleSystemsWithVelocity.Length];
|
|
this.LGBHPCABFIB = array;
|
|
float[] array2 = new float[this.particleSystemsWithVelocity.Length];
|
|
ParticleSystem[] array3 = this.particleSystemsWithVelocity;
|
|
this.ILMJPENEFMP = array2;
|
|
if (num < array3.Length)
|
|
{
|
|
ParticleSystem.MainModule main = array3[num].main;
|
|
WandProjectileParticles.KJBMIGPHPCN[] lgbhpcabfib = this.LGBHPCABFIB;
|
|
float num2;
|
|
lgbhpcabfib[1] = num2;
|
|
ParticleSystem.MainModule main2 = this.particleSystemsWithVelocity[num].main;
|
|
float[] ilmjpenefmp = this.ILMJPENEFMP;
|
|
float num3 = ParticleSystem.MainModule.get_gravityModifierMultiplier_Injected(main2);
|
|
num++;
|
|
ilmjpenefmp[0] = num3;
|
|
ParticleSystem[] array4 = this.particleSystemsWithVelocity;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600051A RID: 1306 RVA: 0x0001A5A8 File Offset: 0x000187A8
|
|
[Token(Token = "0x600051A")]
|
|
[Address(RVA = "0x1A17170", Offset = "0x1A15B70", VA = "0x181A17170")]
|
|
public void ResetVelocity()
|
|
{
|
|
int num = 0;
|
|
ParticleSystem[] array = this.particleSystemsWithVelocity;
|
|
if (num < array.Length)
|
|
{
|
|
ParticleSystem.MainModule main = array[num].main;
|
|
float num2 = this.ILMJPENEFMP[num];
|
|
ParticleSystem.MainModule.set_gravityModifierMultiplier_Injected(main, num2);
|
|
ParticleSystem.MainModule main2 = this.particleSystemsWithVelocity[num].main;
|
|
WandProjectileParticles.KJBMIGPHPCN[] lgbhpcabfib = this.LGBHPCABFIB;
|
|
WandProjectileParticles.KJBMIGPHPCN[] lgbhpcabfib2 = this.LGBHPCABFIB;
|
|
WandProjectileParticles.KJBMIGPHPCN[] lgbhpcabfib3 = this.LGBHPCABFIB;
|
|
ParticleSystem[] array2 = this.particleSystemsWithVelocity;
|
|
num++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600051B RID: 1307 RVA: 0x0001A628 File Offset: 0x00018828
|
|
[Token(Token = "0x600051B")]
|
|
[Address(RVA = "0x1A17340", Offset = "0x1A15D40", VA = "0x181A17340")]
|
|
public void StopVelocity()
|
|
{
|
|
ParticleSystem[] array = this.particleSystemsWithVelocity;
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
ParticleSystem.MainModule main = array[num].main;
|
|
int num2 = 0;
|
|
ParticleSystem.MainModule.set_gravityModifierMultiplier_Injected(main, (float)num2);
|
|
ParticleSystem.MainModule main2 = this.particleSystemsWithVelocity[num].main;
|
|
ParticleSystem[] array2 = this.particleSystemsWithVelocity;
|
|
num++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600051C RID: 1308 RVA: 0x0001A684 File Offset: 0x00018884
|
|
[Token(Token = "0x600051C")]
|
|
[Address(RVA = "0x101E160", Offset = "0x101CB60", VA = "0x18101E160")]
|
|
public WandProjectileParticles()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400046C RID: 1132
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400046C")]
|
|
[SerializeField]
|
|
private ParticleSystem[] particleSystemsWithVelocity;
|
|
|
|
// Token: 0x0400046D RID: 1133
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x400046D")]
|
|
private WandProjectileParticles.KJBMIGPHPCN[] LGBHPCABFIB;
|
|
|
|
// Token: 0x0400046E RID: 1134
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x400046E")]
|
|
private float[] ILMJPENEFMP;
|
|
|
|
// Token: 0x020000BF RID: 191
|
|
[Token(Token = "0x20000BF")]
|
|
private struct KJBMIGPHPCN
|
|
{
|
|
// Token: 0x0400046F RID: 1135
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x400046F")]
|
|
public bool IKAGKELDMJH;
|
|
|
|
// Token: 0x04000470 RID: 1136
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x4")]
|
|
[Token(Token = "0x4000470")]
|
|
public float IONKGEEGAEE;
|
|
|
|
// Token: 0x04000471 RID: 1137
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4000471")]
|
|
public float PFNGBCPCHGC;
|
|
}
|
|
}
|