scripts
This commit is contained in:
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using Photon.Pun;
|
||||
using RecRoom;
|
||||
using RecRoom.Core.Pools;
|
||||
using RecRoom.Networking.RPC;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000396 RID: 918
|
||||
[Token(Token = "0x2000396")]
|
||||
[StructLayout(3)]
|
||||
public class PlayerProgression : MonoBehaviourPun
|
||||
{
|
||||
// Token: 0x06001D06 RID: 7430 RVA: 0x0007994C File Offset: 0x00077B4C
|
||||
[Token(Token = "0x6001D06")]
|
||||
[Address(RVA = "0x1496000", Offset = "0x1494A00", VA = "0x181496000", Slot = "13")]
|
||||
protected override void Awake()
|
||||
{
|
||||
base..ctor();
|
||||
Player component = base.GetComponent<Player>();
|
||||
this.KNMLNJFFDME = component;
|
||||
}
|
||||
|
||||
// Token: 0x06001D07 RID: 7431 RVA: 0x00079970 File Offset: 0x00077B70
|
||||
[Token(Token = "0x6001D07")]
|
||||
[Address(RVA = "0x1496190", Offset = "0x1494B90", VA = "0x181496190")]
|
||||
public void PlayLevelUpFeedback()
|
||||
{
|
||||
PhotonView photonView = base.photonView;
|
||||
RPCActions.RPCAction<PlayerProgression.NIAKDKNGBEJ> rpcaction = new RPCActions.RPCAction(this.RpcPlayLevelUpFeedback);
|
||||
int num = 0;
|
||||
photonView.RpcAll<PlayerProgression.NIAKDKNGBEJ>(rpcaction, (PlayerProgression.NIAKDKNGBEJ)num);
|
||||
}
|
||||
|
||||
// Token: 0x06001D08 RID: 7432 RVA: 0x000799A4 File Offset: 0x00077BA4
|
||||
[Token(Token = "0x6001D08")]
|
||||
[Address(RVA = "0x14960F0", Offset = "0x1494AF0", VA = "0x1814960F0")]
|
||||
public void PlayCheerFeedback()
|
||||
{
|
||||
PhotonView photonView = base.photonView;
|
||||
RPCActions.RPCAction<PlayerProgression.NIAKDKNGBEJ> rpcaction = new RPCActions.RPCAction(this.RpcPlayLevelUpFeedback);
|
||||
photonView.RpcAll<PlayerProgression.NIAKDKNGBEJ>(rpcaction, (PlayerProgression.NIAKDKNGBEJ)((uint)1));
|
||||
}
|
||||
|
||||
// Token: 0x06001D09 RID: 7433 RVA: 0x000799D4 File Offset: 0x00077BD4
|
||||
[Token(Token = "0x6001D09")]
|
||||
[Address(RVA = "0x1496050", Offset = "0x1494A50", VA = "0x181496050")]
|
||||
public void PlayCandlesFeedback()
|
||||
{
|
||||
PhotonView photonView = base.photonView;
|
||||
RPCActions.RPCAction<PlayerProgression.NIAKDKNGBEJ> rpcaction = new RPCActions.RPCAction(this.RpcPlayLevelUpFeedback);
|
||||
photonView.RpcAll<PlayerProgression.NIAKDKNGBEJ>(rpcaction, (PlayerProgression.NIAKDKNGBEJ)((uint)2));
|
||||
}
|
||||
|
||||
// Token: 0x06001D0A RID: 7434 RVA: 0x00079A04 File Offset: 0x00077C04
|
||||
[Token(Token = "0x6001D0A")]
|
||||
[Address(RVA = "0x1496230", Offset = "0x1494C30", VA = "0x181496230")]
|
||||
[PunRPC]
|
||||
private void RpcPlayLevelUpFeedback(PlayerProgression.NIAKDKNGBEJ MBAJNJHNODE)
|
||||
{
|
||||
if (MBAJNJHNODE != PlayerProgression.NIAKDKNGBEJ.LevelUp)
|
||||
{
|
||||
if (MBAJNJHNODE != PlayerProgression.NIAKDKNGBEJ.LevelUp)
|
||||
{
|
||||
if (MBAJNJHNODE != PlayerProgression.NIAKDKNGBEJ.Cheer)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.KNMLNJFFDME.playerAudio.OnCheered();
|
||||
}
|
||||
this.KNMLNJFFDME.playerAudio.OnCheered();
|
||||
}
|
||||
this.KNMLNJFFDME.playerAudio.OnLevelUp();
|
||||
PooledParticle pooledParticle = this.levelUpParticlesPrefab;
|
||||
PooledParticle pooledParticle2 = GlobalPool.ONCPNMDGGKG.Acquire<PooledParticle>(pooledParticle);
|
||||
int num = 0;
|
||||
if (pooledParticle2 != num)
|
||||
{
|
||||
int num2 = 0;
|
||||
pooledParticle2.Play(num2 != 0, -1f);
|
||||
PlayerFloorPositionFollowing component = pooledParticle2.GetComponent<PlayerFloorPositionFollowing>();
|
||||
int num3 = 0;
|
||||
if (!(component != num3))
|
||||
{
|
||||
Transform transform = pooledParticle2.transform;
|
||||
Player knmlnjffdme = this.KNMLNJFFDME;
|
||||
Vector3 vector;
|
||||
float z = vector.z;
|
||||
Transform transform2 = pooledParticle2.transform;
|
||||
float z2 = Vector3.right.z;
|
||||
float z3 = Vector3.forward.z;
|
||||
}
|
||||
Player knmlnjffdme2 = this.KNMLNJFFDME;
|
||||
Player knmlnjffdme3 = this.KNMLNJFFDME;
|
||||
PlayerProgression.LocalPlayerAcquiredLevelUpParticleEvent.Invoke(pooledParticle2);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001D0B RID: 7435 RVA: 0x00079AF8 File Offset: 0x00077CF8
|
||||
[Token(Token = "0x6001D0B")]
|
||||
[Address(RVA = "0x6A4030", Offset = "0x6A2A30", VA = "0x1806A4030")]
|
||||
public PlayerProgression()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001D0C RID: 7436 RVA: 0x00079B0C File Offset: 0x00077D0C
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x6001D0C")]
|
||||
[Address(RVA = "0x14965A0", Offset = "0x1494FA0", VA = "0x1814965A0")]
|
||||
static PlayerProgression()
|
||||
{
|
||||
int num;
|
||||
ActionEvent<PooledParticle> actionEvent = new ActionEvent(4, num != 0);
|
||||
num = 0;
|
||||
PlayerProgression.LocalPlayerAcquiredLevelUpParticleEvent = actionEvent;
|
||||
}
|
||||
|
||||
// Token: 0x0400164C RID: 5708
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400164C")]
|
||||
[SerializeField]
|
||||
[Header("Feedback")]
|
||||
private PooledParticle levelUpParticlesPrefab;
|
||||
|
||||
// Token: 0x0400164D RID: 5709
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400164D")]
|
||||
[SerializeField]
|
||||
private PooledParticle cheerParticlesPrefab;
|
||||
|
||||
// Token: 0x0400164E RID: 5710
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400164E")]
|
||||
[SerializeField]
|
||||
private PooledParticle blowingOutCandlesParticlesPrefab;
|
||||
|
||||
// Token: 0x0400164F RID: 5711
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400164F")]
|
||||
private Player KNMLNJFFDME;
|
||||
|
||||
// Token: 0x04001650 RID: 5712
|
||||
[Token(Token = "0x4001650")]
|
||||
public static readonly ActionEvent<PooledParticle> LocalPlayerAcquiredLevelUpParticleEvent;
|
||||
|
||||
// Token: 0x02000397 RID: 919
|
||||
[Token(Token = "0x2000397")]
|
||||
public enum NIAKDKNGBEJ
|
||||
{
|
||||
// Token: 0x04001652 RID: 5714
|
||||
[Token(Token = "0x4001652")]
|
||||
LevelUp,
|
||||
// Token: 0x04001653 RID: 5715
|
||||
[Token(Token = "0x4001653")]
|
||||
Cheer,
|
||||
// Token: 0x04001654 RID: 5716
|
||||
[Token(Token = "0x4001654")]
|
||||
BlowOutCandles
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user