285 lines
12 KiB
C#
285 lines
12 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using Photon.Realtime;
|
|
using RecRoom.Core.Powerups;
|
|
using RecRoom.Networking.RPC;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core.GameManagement
|
|
{
|
|
// Token: 0x02002DCE RID: 11726
|
|
[Token(Token = "0x2002DCE")]
|
|
[StructLayout(3)]
|
|
public class GamePowerUpManager : MonoBehaviourPun, JMFAKCJLJKP
|
|
{
|
|
// Token: 0x06014E9B RID: 85659 RVA: 0x00505448 File Offset: 0x00503648
|
|
[Token(Token = "0x6014E9B")]
|
|
[Address(RVA = "0x18A7E00", Offset = "0x18A6800", VA = "0x1818A7E00", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
int num = 0;
|
|
this.InitializeOnAwake(num);
|
|
ActionEvent<Powerup> powerupInstantiatedEvent = Powerup.PowerupInstantiatedEvent;
|
|
Action<Powerup> action = new Action(this.CCOGNMNDGNF);
|
|
Powerup.PowerupInstantiatedEvent = powerupInstantiatedEvent + action;
|
|
ActionEvent<Powerup> powerupEffectsStartedEvent = Powerup.PowerupEffectsStartedEvent;
|
|
Action<Powerup> action2 = new Action(this.FMABMKJCAPC);
|
|
Powerup.PowerupEffectsStartedEvent = powerupEffectsStartedEvent + action2;
|
|
ActionEvent<Powerup> powerupDestroyedEvent = Powerup.PowerupDestroyedEvent;
|
|
Action<Powerup> action3 = new Action(this.DIBDHPMEKOL);
|
|
Powerup.PowerupDestroyedEvent = powerupDestroyedEvent + action3;
|
|
ActionEvent<NGFENBEJIDN, Photon.Realtime.Player> powerupActivationRequestedEvent = Powerup.PowerupActivationRequestedEvent;
|
|
Action<NGFENBEJIDN, Photon.Realtime.Player> action4 = new Action(this.DBKKCNDKPDG);
|
|
ActionEvent<NGFENBEJIDN> actionEvent;
|
|
Powerup.PowerupActivationRequestedEvent = actionEvent;
|
|
GameCombatManager combatManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager;
|
|
Action<Photon.Realtime.Player> action5 = new Action(this.OCPBOKCMPFA);
|
|
combatManager.PlayerHealthChangeEvent += action5;
|
|
}
|
|
|
|
// Token: 0x06014E9C RID: 85660 RVA: 0x00505508 File Offset: 0x00503708
|
|
[Token(Token = "0x6014E9C")]
|
|
[Address(RVA = "0x18A8C30", Offset = "0x18A7630", VA = "0x1818A8C30", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
GameManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
int num = 0;
|
|
if (instance != num)
|
|
{
|
|
GameCombatManager combatManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager;
|
|
Action<Photon.Realtime.Player> action = new Action(this.OCPBOKCMPFA);
|
|
combatManager.PlayerHealthChangeEvent -= action;
|
|
}
|
|
ActionEvent<Powerup> powerupInstantiatedEvent = Powerup.PowerupInstantiatedEvent;
|
|
Action<Powerup> action2 = new Action(this.CCOGNMNDGNF);
|
|
Powerup.PowerupInstantiatedEvent = powerupInstantiatedEvent - action2;
|
|
ActionEvent<Powerup> powerupEffectsStartedEvent = Powerup.PowerupEffectsStartedEvent;
|
|
Action<Powerup> action3 = new Action(this.FMABMKJCAPC);
|
|
Powerup.PowerupEffectsStartedEvent = powerupEffectsStartedEvent - action3;
|
|
ActionEvent<Powerup> powerupDestroyedEvent = Powerup.PowerupDestroyedEvent;
|
|
Action<Powerup> action4 = new Action(this.DIBDHPMEKOL);
|
|
Powerup.PowerupDestroyedEvent = powerupDestroyedEvent - action4;
|
|
ActionEvent<NGFENBEJIDN, Photon.Realtime.Player> powerupActivationRequestedEvent = Powerup.PowerupActivationRequestedEvent;
|
|
Action<NGFENBEJIDN, Photon.Realtime.Player> action5 = new Action(this.DBKKCNDKPDG);
|
|
ActionEvent<NGFENBEJIDN> actionEvent;
|
|
Powerup.PowerupActivationRequestedEvent = actionEvent;
|
|
}
|
|
|
|
// Token: 0x06014E9D RID: 85661 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014E9D")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "15")]
|
|
public void InitializeOnAwake(GameManager ONLEICCNNBI)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014E9E RID: 85662 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014E9E")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "16")]
|
|
public void CleanupOnDestroy()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014E9F RID: 85663 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014E9F")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "19")]
|
|
public void OnGameStart()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014EA0 RID: 85664 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014EA0")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "20")]
|
|
public void OnGameEnd()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014EA1 RID: 85665 RVA: 0x005055D8 File Offset: 0x005037D8
|
|
[Token(Token = "0x6014EA1")]
|
|
[Address(RVA = "0x18A8710", Offset = "0x18A7110", VA = "0x1818A8710", Slot = "21")]
|
|
public void InitializeLocalPlayer(bool HOCMIMEHLLM)
|
|
{
|
|
Photon.Realtime.Player localPlayer = PhotonNetwork.LocalPlayer;
|
|
this.KAIKLDDIHGA(localPlayer);
|
|
}
|
|
|
|
// Token: 0x06014EA2 RID: 85666 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014EA2")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "22")]
|
|
public void ResetLocalPlayer(bool HOCMIMEHLLM)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014EA3 RID: 85667 RVA: 0x005055F4 File Offset: 0x005037F4
|
|
[Token(Token = "0x6014EA3")]
|
|
[Address(RVA = "0x18A8EF0", Offset = "0x18A78F0", VA = "0x1818A8EF0", Slot = "23")]
|
|
public void OnPlayerDisconnected(Photon.Realtime.Player IEKDDPPNFPF)
|
|
{
|
|
if (PhotonNetwork.IsMasterClient)
|
|
{
|
|
this.KAIKLDDIHGA(IEKDDPPNFPF);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014EA4 RID: 85668 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014EA4")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "17")]
|
|
public void InitializeOnStart()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014EA5 RID: 85669 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014EA5")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "18")]
|
|
public void OnUpdate()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014EA6 RID: 85670 RVA: 0x00505614 File Offset: 0x00503814
|
|
[Token(Token = "0x6014EA6")]
|
|
[Address(RVA = "0x18A8060", Offset = "0x18A6A60", VA = "0x1818A8060")]
|
|
private void CCOGNMNDGNF(Powerup MFDDFDIABBI)
|
|
{
|
|
this.HAOKNIJAKLE.Add(MFDDFDIABBI);
|
|
if (MFDDFDIABBI.<LKGEFFJKJLP>k__BackingField.IsLocal)
|
|
{
|
|
Debug.LogWarning("Tonemapping in Powerups is disabled for now, if we want this back we should fade in a different PostProcessingProfile");
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014EA7 RID: 85671 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014EA7")]
|
|
[Address(RVA = "0x18A81E0", Offset = "0x18A6BE0", VA = "0x1818A81E0")]
|
|
private void DIBDHPMEKOL(Powerup MFDDFDIABBI)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014EA8 RID: 85672 RVA: 0x0050564C File Offset: 0x0050384C
|
|
[Token(Token = "0x6014EA8")]
|
|
[Address(RVA = "0x18A8610", Offset = "0x18A7010", VA = "0x1818A8610")]
|
|
private void FMABMKJCAPC(Powerup MFDDFDIABBI)
|
|
{
|
|
if (MFDDFDIABBI.<LKGEFFJKJLP>k__BackingField.IsLocal)
|
|
{
|
|
RecRoomAudioClip musicClip = MFDDFDIABBI.musicClip;
|
|
if (musicClip != 0)
|
|
{
|
|
AudioClip audioClip = musicClip.audioClip;
|
|
int num = 0;
|
|
if (audioClip != num)
|
|
{
|
|
CCJPMJMBJKC musicMixer = AudioManager.CCJPMJMBJKC;
|
|
RecRoomAudioClip musicClip2 = MFDDFDIABBI.musicClip;
|
|
musicMixer.BAOCOCAOBPJ(musicClip2, MFDDFDIABBI);
|
|
AudioManager.CCJPMJMBJKC.IJEGBHGHBJK();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014EA9 RID: 85673 RVA: 0x005056B4 File Offset: 0x005038B4
|
|
[Token(Token = "0x6014EA9")]
|
|
[Address(RVA = "0x18A8120", Offset = "0x18A6B20", VA = "0x1818A8120")]
|
|
private void DBKKCNDKPDG(NGFENBEJIDN ONAGFMBFBAI, Photon.Realtime.Player IEKDDPPNFPF)
|
|
{
|
|
PhotonView photonView = base.photonView;
|
|
RPCActions.RPCAction<NGFENBEJIDN, Photon.Realtime.Player> rpcaction = new RPCActions.RPCAction(this.RpcMasterActivatePowerup);
|
|
}
|
|
|
|
// Token: 0x06014EAA RID: 85674 RVA: 0x005056DC File Offset: 0x005038DC
|
|
[Token(Token = "0x6014EAA")]
|
|
[Address(RVA = "0x18A8B90", Offset = "0x18A7590", VA = "0x1818A8B90")]
|
|
private void OCPBOKCMPFA(Photon.Realtime.Player IEKDDPPNFPF)
|
|
{
|
|
if (!NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager.PlayerIsAlive(IEKDDPPNFPF))
|
|
{
|
|
this.KAIKLDDIHGA(IEKDDPPNFPF);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06014EAB RID: 85675 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014EAB")]
|
|
[Address(RVA = "0x18A8930", Offset = "0x18A7330", VA = "0x1818A8930")]
|
|
public void MasterActivatePowerup(NGFENBEJIDN ONAGFMBFBAI, Photon.Realtime.Player IEKDDPPNFPF)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014EAC RID: 85676 RVA: 0x0050570C File Offset: 0x0050390C
|
|
[Token(Token = "0x6014EAC")]
|
|
[Address(RVA = "0x18A8F60", Offset = "0x18A7960", VA = "0x1818A8F60")]
|
|
[PunRPC]
|
|
public void RpcMasterActivatePowerup(NGFENBEJIDN ONAGFMBFBAI, Photon.Realtime.Player IEKDDPPNFPF)
|
|
{
|
|
this.MasterActivatePowerup(ONAGFMBFBAI, IEKDDPPNFPF);
|
|
}
|
|
|
|
// Token: 0x06014EAD RID: 85677 RVA: 0x00505724 File Offset: 0x00503924
|
|
[Token(Token = "0x6014EAD")]
|
|
[Address(RVA = "0x18A88E0", Offset = "0x18A72E0", VA = "0x1818A88E0")]
|
|
private void MCPJEOPPCBK(Powerup MFDDFDIABBI)
|
|
{
|
|
Debug.LogWarning("Tonemapping in Powerups is disabled for now, if we want this back we should fade in a different PostProcessingProfile");
|
|
}
|
|
|
|
// Token: 0x06014EAE RID: 85678 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014EAE")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60")]
|
|
private void OEGJBNJFJGL(float BJJEDIGOMGC)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014EAF RID: 85679 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014EAF")]
|
|
[Address(RVA = "0x18A8550", Offset = "0x18A6F50", VA = "0x1818A8550")]
|
|
private bool FIFEGCJMHLD(Photon.Realtime.Player IEKDDPPNFPF)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014EB0 RID: 85680 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014EB0")]
|
|
[Address(RVA = "0x18A8450", Offset = "0x18A6E50", VA = "0x1818A8450")]
|
|
private Powerup EJPJCJNAAMF(NGFENBEJIDN ONAGFMBFBAI, Photon.Realtime.Player IEKDDPPNFPF)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014EB1 RID: 85681 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6014EB1")]
|
|
[Address(RVA = "0x18A8770", Offset = "0x18A7170", VA = "0x1818A8770")]
|
|
private void KAIKLDDIHGA(Photon.Realtime.Player IEKDDPPNFPF)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06014EB2 RID: 85682 RVA: 0x0050573C File Offset: 0x0050393C
|
|
[Token(Token = "0x6014EB2")]
|
|
[Address(RVA = "0x18A8F70", Offset = "0x18A7970", VA = "0x1818A8F70")]
|
|
public GamePowerUpManager()
|
|
{
|
|
List<Powerup> list = new List();
|
|
this.HAOKNIJAKLE = list;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400DF2B RID: 57131
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400DF2B")]
|
|
private readonly List<Powerup> HAOKNIJAKLE;
|
|
}
|
|
}
|