279 lines
11 KiB
C#
279 lines
11 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.Core.Powerups;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core.GameManagement
|
|
{
|
|
// Token: 0x02003397 RID: 13207
|
|
[Token(Token = "0x2003397")]
|
|
public class GamePowerUpManager : MonoBehaviourPun, JMFAKCJLJKP
|
|
{
|
|
// Token: 0x0601700B RID: 94219 RVA: 0x00560070 File Offset: 0x0055E270
|
|
[Token(Token = "0x601700B")]
|
|
[Address(RVA = "0xA1F370", Offset = "0xA1E170", VA = "0x180A1F370", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
int num = 0;
|
|
this.InitializeOnAwake(num);
|
|
MFBGLIHGCGO<Powerup> powerupInstantiatedEvent = Powerup.PowerupInstantiatedEvent;
|
|
Action<Powerup> action = new Action(this.CCOGNMNDGNF);
|
|
Powerup.PowerupInstantiatedEvent = MFBGLIHGCGO.BPJDFPACLMK(powerupInstantiatedEvent, action);
|
|
MFBGLIHGCGO<Powerup> powerupEffectsStartedEvent = Powerup.PowerupEffectsStartedEvent;
|
|
Action<Powerup> action2 = new Action(this.FMABMKJCAPC);
|
|
Powerup.PowerupEffectsStartedEvent = MFBGLIHGCGO.BPJDFPACLMK(powerupEffectsStartedEvent, action2);
|
|
MFBGLIHGCGO<Powerup> powerupDestroyedEvent = Powerup.PowerupDestroyedEvent;
|
|
Action<Powerup> action3 = new Action(this.DIBDHPMEKOL);
|
|
Powerup.PowerupDestroyedEvent = MFBGLIHGCGO.BPJDFPACLMK(powerupDestroyedEvent, action3);
|
|
IILCGFIHJLP<NGFENBEJIDN, AGAJMBPABDL> powerupActivationRequestedEvent = Powerup.PowerupActivationRequestedEvent;
|
|
Action<NGFENBEJIDN, AGAJMBPABDL> action4 = new Action(this.DBKKCNDKPDG);
|
|
Powerup.PowerupActivationRequestedEvent = IILCGFIHJLP.BPJDFPACLMK(powerupActivationRequestedEvent, action4);
|
|
GameCombatManager combatManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager;
|
|
Action<AGAJMBPABDL> action5 = new Action(this.OCPBOKCMPFA);
|
|
combatManager.PlayerHealthChangeEvent += action5;
|
|
}
|
|
|
|
// Token: 0x0601700C RID: 94220 RVA: 0x00560138 File Offset: 0x0055E338
|
|
[Token(Token = "0x601700C")]
|
|
[Address(RVA = "0xA201A0", Offset = "0xA1EFA0", VA = "0x180A201A0", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
GameManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
int num = 0;
|
|
if (instance != num)
|
|
{
|
|
GameCombatManager combatManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager;
|
|
Action<AGAJMBPABDL> action = new Action(this.OCPBOKCMPFA);
|
|
combatManager.PlayerHealthChangeEvent -= action;
|
|
}
|
|
MFBGLIHGCGO<Powerup> powerupInstantiatedEvent = Powerup.PowerupInstantiatedEvent;
|
|
Action<Powerup> action2 = new Action(this.CCOGNMNDGNF);
|
|
Powerup.PowerupInstantiatedEvent = MFBGLIHGCGO.GMNMHGMFGOL(powerupInstantiatedEvent, action2);
|
|
MFBGLIHGCGO<Powerup> powerupEffectsStartedEvent = Powerup.PowerupEffectsStartedEvent;
|
|
Action<Powerup> action3 = new Action(this.FMABMKJCAPC);
|
|
Powerup.PowerupEffectsStartedEvent = MFBGLIHGCGO.GMNMHGMFGOL(powerupEffectsStartedEvent, action3);
|
|
MFBGLIHGCGO<Powerup> powerupDestroyedEvent = Powerup.PowerupDestroyedEvent;
|
|
Action<Powerup> action4 = new Action(this.DIBDHPMEKOL);
|
|
Powerup.PowerupDestroyedEvent = MFBGLIHGCGO.GMNMHGMFGOL(powerupDestroyedEvent, action4);
|
|
IILCGFIHJLP<NGFENBEJIDN, AGAJMBPABDL> powerupActivationRequestedEvent = Powerup.PowerupActivationRequestedEvent;
|
|
Action<NGFENBEJIDN, AGAJMBPABDL> action5 = new Action(this.DBKKCNDKPDG);
|
|
Powerup.PowerupActivationRequestedEvent = IILCGFIHJLP.GMNMHGMFGOL(powerupActivationRequestedEvent, action5);
|
|
}
|
|
|
|
// Token: 0x0601700D RID: 94221 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x601700D")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "15")]
|
|
public void InitializeOnAwake(GameManager ONLEICCNNBI)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0601700E RID: 94222 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x601700E")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "16")]
|
|
public void CleanupOnDestroy()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0601700F RID: 94223 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x601700F")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "19")]
|
|
public void OnGameStart()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06017010 RID: 94224 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6017010")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "20")]
|
|
public void OnGameEnd()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06017011 RID: 94225 RVA: 0x00560210 File Offset: 0x0055E410
|
|
[Token(Token = "0x6017011")]
|
|
[Address(RVA = "0xA1FC80", Offset = "0xA1EA80", VA = "0x180A1FC80", Slot = "21")]
|
|
public void InitializeLocalPlayer(bool HOCMIMEHLLM)
|
|
{
|
|
AGAJMBPABDL agajmbpabdl = KKPBCOOONNK.MDMMDPEKICF;
|
|
this.KAIKLDDIHGA(agajmbpabdl);
|
|
}
|
|
|
|
// Token: 0x06017012 RID: 94226 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6017012")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "22")]
|
|
public void ResetLocalPlayer(bool HOCMIMEHLLM)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06017013 RID: 94227 RVA: 0x0056022C File Offset: 0x0055E42C
|
|
[Token(Token = "0x6017013")]
|
|
[Address(RVA = "0xA20460", Offset = "0xA1F260", VA = "0x180A20460", Slot = "23")]
|
|
public void OnPlayerDisconnected(AGAJMBPABDL IEKDDPPNFPF)
|
|
{
|
|
if (KKPBCOOONNK.BNNCCCFFALC)
|
|
{
|
|
this.KAIKLDDIHGA(IEKDDPPNFPF);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06017014 RID: 94228 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6017014")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")]
|
|
public void InitializeOnStart()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06017015 RID: 94229 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6017015")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "18")]
|
|
public void OnUpdate()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06017016 RID: 94230 RVA: 0x0056024C File Offset: 0x0055E44C
|
|
[Token(Token = "0x6017016")]
|
|
[Address(RVA = "0xA1F5D0", Offset = "0xA1E3D0", VA = "0x180A1F5D0")]
|
|
private void CCOGNMNDGNF(Powerup MFDDFDIABBI)
|
|
{
|
|
this.HAOKNIJAKLE.Add(MFDDFDIABBI);
|
|
if (MFDDFDIABBI.<LKGEFFJKJLP>k__BackingField.DMKCIEPGGAB)
|
|
{
|
|
Debug.LogWarning("Tonemapping in Powerups is disabled for now, if we want this back we should fade in a different PostProcessingProfile");
|
|
}
|
|
}
|
|
|
|
// Token: 0x06017017 RID: 94231 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6017017")]
|
|
[Address(RVA = "0xA1F750", Offset = "0xA1E550", VA = "0x180A1F750")]
|
|
private void DIBDHPMEKOL(Powerup MFDDFDIABBI)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06017018 RID: 94232 RVA: 0x00560284 File Offset: 0x0055E484
|
|
[Token(Token = "0x6017018")]
|
|
[Address(RVA = "0xA1FB80", Offset = "0xA1E980", VA = "0x180A1FB80")]
|
|
private void FMABMKJCAPC(Powerup MFDDFDIABBI)
|
|
{
|
|
if (MFDDFDIABBI.<LKGEFFJKJLP>k__BackingField.DMKCIEPGGAB)
|
|
{
|
|
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: 0x06017019 RID: 94233 RVA: 0x005602EC File Offset: 0x0055E4EC
|
|
[Token(Token = "0x6017019")]
|
|
[Address(RVA = "0xA1F690", Offset = "0xA1E490", VA = "0x180A1F690")]
|
|
private void DBKKCNDKPDG(NGFENBEJIDN ONAGFMBFBAI, AGAJMBPABDL IEKDDPPNFPF)
|
|
{
|
|
PhotonView photonView = base.JDHMIOJKLCK;
|
|
DGLOJCGDOGG.FGGIMKCCBDA<NGFENBEJIDN, AGAJMBPABDL> fggimkccbda = new DGLOJCGDOGG.FGGIMKCCBDA(this.RpcMasterActivatePowerup);
|
|
}
|
|
|
|
// Token: 0x0601701A RID: 94234 RVA: 0x00560314 File Offset: 0x0055E514
|
|
[Token(Token = "0x601701A")]
|
|
[Address(RVA = "0xA20100", Offset = "0xA1EF00", VA = "0x180A20100")]
|
|
private void OCPBOKCMPFA(AGAJMBPABDL IEKDDPPNFPF)
|
|
{
|
|
if (!NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager.PlayerIsAlive(IEKDDPPNFPF))
|
|
{
|
|
this.KAIKLDDIHGA(IEKDDPPNFPF);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601701B RID: 94235 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x601701B")]
|
|
[Address(RVA = "0xA1FEA0", Offset = "0xA1ECA0", VA = "0x180A1FEA0")]
|
|
public void MasterActivatePowerup(NGFENBEJIDN ONAGFMBFBAI, AGAJMBPABDL IEKDDPPNFPF)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0601701C RID: 94236 RVA: 0x00560344 File Offset: 0x0055E544
|
|
[Token(Token = "0x601701C")]
|
|
[Address(RVA = "0xA204D0", Offset = "0xA1F2D0", VA = "0x180A204D0")]
|
|
[NFOMENMAOIA]
|
|
public void RpcMasterActivatePowerup(NGFENBEJIDN ONAGFMBFBAI, AGAJMBPABDL IEKDDPPNFPF)
|
|
{
|
|
this.MasterActivatePowerup(ONAGFMBFBAI, IEKDDPPNFPF);
|
|
}
|
|
|
|
// Token: 0x0601701D RID: 94237 RVA: 0x0056035C File Offset: 0x0055E55C
|
|
[Token(Token = "0x601701D")]
|
|
[Address(RVA = "0xA1FE50", Offset = "0xA1EC50", VA = "0x180A1FE50")]
|
|
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: 0x0601701E RID: 94238 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x601701E")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
|
|
private void OEGJBNJFJGL(float BJJEDIGOMGC)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0601701F RID: 94239 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x601701F")]
|
|
[Address(RVA = "0xA1FAC0", Offset = "0xA1E8C0", VA = "0x180A1FAC0")]
|
|
private bool FIFEGCJMHLD(AGAJMBPABDL IEKDDPPNFPF)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06017020 RID: 94240 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6017020")]
|
|
[Address(RVA = "0xA1F9C0", Offset = "0xA1E7C0", VA = "0x180A1F9C0")]
|
|
private Powerup EJPJCJNAAMF(NGFENBEJIDN ONAGFMBFBAI, AGAJMBPABDL IEKDDPPNFPF)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06017021 RID: 94241 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6017021")]
|
|
[Address(RVA = "0xA1FCE0", Offset = "0xA1EAE0", VA = "0x180A1FCE0")]
|
|
private void KAIKLDDIHGA(AGAJMBPABDL IEKDDPPNFPF)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06017022 RID: 94242 RVA: 0x00560374 File Offset: 0x0055E574
|
|
[Token(Token = "0x6017022")]
|
|
[Address(RVA = "0xA204E0", Offset = "0xA1F2E0", VA = "0x180A204E0")]
|
|
public GamePowerUpManager()
|
|
{
|
|
List<Powerup> list = new List();
|
|
this.HAOKNIJAKLE = list;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400EFC1 RID: 61377
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400EFC1")]
|
|
private readonly List<Powerup> HAOKNIJAKLE;
|
|
}
|
|
}
|